delphi - How do I discover the image-quality settings of a Remote Desktop session? -


i using devexpress skins. implemented switch disable skins manually. need because of terminal server (i need have flat save on connection bandwith).

anyway, manual switch isn't because user must continously use when using application locally or remotely. of course user cares look.

i leave manual switch add automatic switch checks windows settings performance (i don't know how tell in english, anyway, mean setting performance lets version of windows look, windows '98). (if possible) have unique function works on every windows version (2k, xp, vista, 7, , server counterparts).

please note not interested in merely knowing whether system running in rdp, whether performance settings set high image quality or not.

you can use jwawinsta unit in delphi jedi apilib.

more can use winstationqueryinformationw winstationclient info class returns winstationclient structure.

in structure winstationclientflags member bitfield can contain mask of following constant:

  ts_perf_disable_nothing = $0;   ts_perf_disable_wallpaper = $1;   ts_perf_disable_fullwindowdrag = $2;   ts_perf_disable_menuanimations = $4;   ts_perf_disable_theming = $8;   ts_perf_enable_enhanced_graphics = $10;   ts_perf_disable_cursor_shadow = $20;   ts_perf_disable_cursorsettings = $40;   ts_perf_enable_font_smoothing= $80;   ts_perf_enable_desktop_composition = $100;   ts_perf_default_nonperfclient_setting = $40000000;   ts_perf_reserved1 = $80000000; 

further more structure returns colordepth member.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -