Rob van der Woude's Scripting Pages

Help text for GetSystemMetricsDLL.cs

(view help text of GetSystemMetricsDLL.cs as plain text)

GetSystemMetrics.dll, Version 1.02.0.0
Read-only COM wrapper DLL for WINAPI (user32.dll) GetSystemMetrics

Usage in VBScript:

Set objSystemMetrics = CreateObject( "RobvanderWoude.GetSystemMetricsDLL" )

' Read some property values
WScript.Echo objSystemMetrics.SM_CXSCREEN
WScript.Echo objSystemMetrics.SM_CMONITORS
WScript.Echo objSystemMetrics.GetPropertyValue( "SM_CMONITORS" )

' Get the DLL's version
WScript.Echo objSystemMetrics.GetVersion( )

' List all available property names
WScript.Echo objSystemMetrics.ListPropertyNames( )

' List all property names and their values
Wscript.Echo objSystemMetrics.ListPropertyValues( )

' Show this help text
Wscript.Echo objSystemMetrics.GetHelp( )

Note:     All property values are returned as 32-bit integer.

          The meaning of the returned metric values can be found at
          https://msdn.microsoft.com/library/windows/desktop/ms724385.aspx

Credits:  SystemMetric enumeration published by Gabriel T. Sharp on PInvoke.net
          http://pinvoke.net/default.aspx/Enums/SystemMetric.html

Copyright (C) 2017 Rob van der Woude
http://www.robvanderwoude.com

page last uploaded: 2022-10-05; loaded in 0.0059 seconds