GetExtents
InstallShield 2022 » InstallScript Language Reference
The GetExtents function retrieves the dimensions of a screen—in pixels. The width of the screen is returned in nvDx and the height is returned in nvDy. For example, a standard VGA monitor returns 640 in nvDx and 480 in nvDy.
Note:The screen dimensions of the target machine can be gotten through the Windows Installer service by using the ScreenX and ScreenY properties.
Syntax
GetExtents ( nvDx, nvDy );
Parameters
| Parameter | Description | 
| nvDx | Returns the width of the screen in pixels. | 
| nvDy | Returns the height of the screen in pixels. | 
Return Values
| Return Value | Description | 
| 0 | Indicates that the function successfully retrieved the dimensions of a screen. | 
| < 0 | Indicates that the function was unable to retrieve the values. | 
See Also