Knowledge Base

GetSystemMetrics(SM_CMOUSEBUTTONS) Fails Under Win32s

PSS ID Number: 124836

Article Last Modified on 10/30/2003


The information in this article applies to:


This article was previously published under Q124836

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.

Keywords: KB124836
Technology: kbWin32s115 kbWin32s120 kbWin32sSearch