Skip to main content

Problem:

GetSystemMetrics is an API that can be used to collect details from Windows. In this example it is collecting the resolution currently in use.

Resolution:

INTRODUCTION

==========

GetSystemMetrics is an Api that can be used to collect details from Windows. In this example it is collecting the resolution currently in use.

SOURCE FILES:

=========

Program Files     Description

----------------     -----------------------------------------------------------

GSM.CBL

Copy Files:

----------------     -----------------------------------------------------------

GSM.CPY

REQUIREMENTS:

==========

Ensure that the USER32.LIB is linked with the EXE.

NOTE:

====

For details on the parameters that can be retrieved by this call go to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/sysinfo_8fjn.asp

==========================================================

Keywords: demonstration, sample, example, demo, win32 api, getsystemmetrics.zip

demo.ex

demo.ne

Attachments:

getsystemmetrics.zip

Old KB# 4179