# GETUNITQQ (W*S)

QuickWin Function: Returns the unit number corresponding to the specified Windows* handle.

## Module

USE IFQWIN

result = GETUNITQQ (whandle)

whandle | (Input) INTEGER(4) on IA-32 architecture; INTEGER(8) on Intel® 64 architecture. The Windows handle to the window; this is a unique ID.

## Results

The result type is INTEGER(4). The result is the unit number corresponding to the specified Windows handle. If whandle does not exist, it returns -1 .

This routine is the inverse of GETHWNDQQ.

Parent topic: QuickWin Library Routines

## See Also

GETHWNDQQ