The Specify_Windows_Handle call (function name xchwnd) sets the Windows handle to which a message is sent on completion of an operation in nonblocking mode.
CM_ENTRY Specify_Windows_Handle(
HWND hwndNotify,
CM_INT32 FAR *return_code
);
The state change is dependent on the operation that completed and its return code.
An application can set the processing mode by calling Set_Processing_Mode. If the Windows handle is set to NULL, or this call is never issued, then the application must call Wait_For_Conversation to be notified when the outstanding operation completes.
When an asynchronous operation is complete, the application's window hwndNotify receives the message returned by RegisterWindowMessage with "WinAsyncCPIC" as the input string. The wParam value contains the conversation_return_code from the operation that is completing. Its values will depend on which operation was originally issued. The lParam argument contains the CM_PTR to the conversation_ID specified in the original function call.