cwbCO_GetWindowHandle

Purpose

This function gets, for the specified system object, the window handle, if any, that currently is associated with it.

Syntax

 
UINT CWB_ENTRY cwbCO_GetWindowHandle(
                             cwbCO_SysHandle       system,
                             HWND                 *windowHandle );

Parameters

cwbCO_SysHandle system - input
Handle that previously was returned from cwbCO_CreateSystem or cwbCO_CreateSystemLike. It identifies the iSeries™ system.
HWND * pWindowHandle - output
Returns the window handle associated with the system object, or NULL if no window handle is associated with it.

Return Codes

The following list shows common return values.

CWB_OK
Successful completion.
CWB_INVALID_API_HANDLE
Invalid system handle.
CWB_INVALID_POINTER
The windowHandle pointer is NULL.

Usage

None.