The RegisterEventWindow registers a window with the printer in order to receive printing messages.
HRESULT RegisterEventWindow(
[ in ] LONG p_hWnd
);
Parameters:
p_hWnd
[in] handle to the window (cast to a LONG value), that will receive the printer messages
Return values:
S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called