CeRapiInit (RAPI) (Compact 7)

3/12/2014

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

Syntax

HRESULT CeRapiInit ();

Parameters

None.

Return Value

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

Remarks

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.

Requirements

Header

rapi.h

Library

rapi.lib

See Also

Reference

RAPI Functions
CeRapiInitEx (RAPI)
RAPIINIT