Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference

[Contents][Glossary][Index][Back][Next]

AIT_CheckResolution

Description

Checks whether the specified resolution matches the resolution of the current screen.

Format

integer AIT_CheckResolution  (
  integer nWidth,     // Width of a screen to be checked
  integer nHeight     // Height of a screen to be checked
);

Parameters

nWidth (input)

Specify the width (in units of pixels) you want to check against the width of the primary display monitor screen.

nHeight (input)

Specify the height (in units of pixels) you want to check against the height of the primary display monitor screen.

Return values

This API function returns 1 if the specified resolution matches the current resolution. Otherwise, this API function returns 0. This API function returns -1 if the function fails. In this case, you can use AIT_GetLastError to acquire an extended error code. The following gives the error code that AIT_GetLastError may return.

Extended error number Error code
87 ERROR_INVALID_PARAMETER