IRAPISession::CeRapiInit
This method syncronously initializes the communication layers between the desktop and the target Windows CE-based device. IRAPISession::CeRapiInit must be called before calling any of the other methods of the IRAPISession interface.
HRESUL CeRapiInit();
Parameters
None.
Return Values
E_SUCCESS indicates success. CERAPI_E_ALREADYINITIALIZED indicates that RAPI2 has already been initialized. E_FAIL indicates failure.
Remarks
A call to IRAPISession::CeRapiInit does not return until the connection is made, an error occurs, or another thread calls IRAPISession::CeRapiUninit.
Requirements
OS Versions: Windows CE 5.01 and later.
Header: Rapi2.h.
Link Library: Ole32.lib, Rapiuuid.lib
See Also
IRAPISession::IUnknown | IRAPISession::CeRapiUninit
Send Feedback on this topic to the authors