...
Gets the window coordinates for the specified session.
Namespace: JollyGiant.Emulation
Assembly: JGSComdotNet (in JGSComdotNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Visual Basic (Declaration) |
---|
Function GetCoordinates ( _ sessionID As Object, _ ByRef x As Integer, _ ByRef y As Integer, _ ByRef cx As Integer, _ ByRef cy As Integer _ ) As StatusCode |
JavaScript |
---|
function GetCoordinates(sessionID, x, y, cx, cy); |
Parameters
sessionID
Type: System..::.ObjectThe Object
The session ID for which to retrieve the coordinates.
x
Type: System..::.Int32 %Horizontal Int32
Horizontal x position of the window in pixels.
y
Type: System..::.Int32 %Vertical Int32
Vertical y position of the window in pixels.
cx
Type: System..::.Int32 %The
The width of the window in pixels.
cy
Type: System..::.Int32 %The
The height of the window in pixels.
Return Value
The return value is a StatusCode specifying the success or failure of the method.
Status code | Description |
---|---|
Ok | The method was successful. |
WHLLNOTCONNECTED | An invalid presentation space was specified, or was not connected for window services. |
WHLLPSENDED | The session stopped. |
Exceptions
Exception | Condition |
---|---|
System.Runtime.InteropServices..::.InvalidOleVariantTypeException | The sessionID object could not be converted to a valid one-character session ID, or the value was out of range. |
See Also
IWindow Interface
GetCoordinates Overload
JollyGiant.Emulation Namespace
Send comments on this topic to Jolly Giant Software
...