Access/VBA Library

GetSystemMetrics32

Retrieves the specified system metric or system configuration setting.

See also: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx

Syntax

GetSystemMetrics32( nIndex )
Parameters
Name Type Description
nIndex Long Required. The system metric or configuration setting to be retrieved.
Return value

Long : The requested system metric or configuration setting or 0 when function fails.

Code
Private Declare Function GetSystemMetrics32 Lib "user32" Alias "GetSystemMetrics" (ByVal nIndex As Long) As Long

Remarks

  • API is used to determine the width and height of the screen.

See also

  • ScreenWidth
  • ScreenHeight