Smart Device Functions:
Search Results for "SetProcessDPIAware" in [All]
static extern bool SetProcessDPIAware();
Declare Function SetProcessDPIAware Lib "user32.dll" () As Boolean
As of Windows Vista, SHIL_SMALL, SHIL_LARGE, and SHIL_EXTRALARGE scale with dots per inch (dpi) if the process is marked as dpi-aware. To set these types to be dpi-aware, call SetProcessDPIAware. SHIL_JUMBO is fixed at 256 pixels regardless of the dpi-aware setting.
Sets the current process as dots per inch (dpi) aware. Call this before your application displays an UI to disable the scaling that Windows Vista would otherwise do to your application. A good place is just before you call Application.EnableVisualStyle(). It's also a good idea to ensure you're actually running on Vista before calling this, because you'll get an exception on downlevel platforms.
3/16/2007 8:31:41 AM - anonymous