Microsoft KB Archive/124836

{|
 * width="100%"|

GetSystemMetrics(SM_CMOUSEBUTTONS) Fails Under Win32s

 * }

Q124836

-

The information in this article applies to:


 * Microsoft Win32s versions 1.15, 1.15a, 1.20

-

SUMMARY
Under Win32s, the Win32 API GetSystemMetrics is implemented as a direct thunk to Windows version 3.1. Therefore, the call will return whatever Windows version 3.1 would return for a similar call to the Windows API GetSystemMetrics.

GetSystemMetrics returns zero for all unrecognized parameters. Under Windows, this includes the new flag SM_CMOUSEBUTTONS, which was introduced in the Win32 API. Therefore, avoid using the SM_CMOUSEBUTTONS flag when your Win32-based application is running under Win32s.

Additional query words:

Keywords :

Issue type :

Technology : kbWin32sSearch kbWin32s115 kbWin32s120