Cicode Programming Reference > Cicode Function Categories > Window Functions Introduction > WinGetWndHnd

WinGetWndHnd

Gets the window handle for the current window. The window handle may be used by 'C' programs and CitectSCADA Wnd... functions. You may pass the windows handle to a 'C' program by using the DLL functions.

Syntax

WinGetWndHnd()

Return Value

The window handle if successful, otherwise 0 (zero) is returned. Be aware that this is not the same as a CitectSCADA window number returned from the WinNumber() function.

Related Functions

DLLCall, WinNew, WndFind, WndShow

Example

INT hWnd;
hWnd = WinGetWndHnd();
WinShow(hWnd,6); //iconize the window

See Also

Window Functions