GetSystemMetrics(SM_CMOUSEBUTTONS) Fails Under Win32s

ID: 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 :
Version : WINDOWS:1.15,1.15a,1.20
Platform : WINDOWS
Issue type :


Last Reviewed: January 18, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.