PreviousNext
Macrovision

GetExtents

InstallShield 2008 ยป 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

Note

The screen dimensions of the target machine can be gotten natively through the Windows Installer service by using the ScreenX and ScreenY properties.

Syntax

GetExtents ( nvDx, nvDy );

Parameters

GetExtents Parameters 

Parameter

Description

nvDx

Returns the width of the screen in pixels.

nvDy

Returns the height of the screen in pixels.

Return Values

GetExtents 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




Copyright Information | Contact Macrovision