CeRapiInit (RAPI)

Send Feedback

This function syncronously initializes the communication layers between the desktop and the target Windows CE-based device. CeRapiInit or CeRapiInitEx must be called before calling any of the other RAPI functions.

HRESULT CeRapiInit ();



Return Values

E_SUCCESS indicates success. CERAPI_E_ALREADYINITIALIZED indicates that RAPI has already been initialized. E_FAIL indicates failure.


A call to CeRapiInit does not return until the connection is made, an error occurs, or another thread calls CeRapiUninit. The CeRapiInitEx method does not block the calling thread. Instead, it uses an event to signal when initialization is complete.


Pocket PC: Pocket PC 2002 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: Rapi.h
Library: Rapi.lib

See Also

Remote API Functions | CeRapiInitEx |


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.