CeRapiInit

This function attempts to initialize the Microsoft® Windows® CE RAPI.

STDAPI CeRapiInit ();

Parameters

None.

Return Values

E_SUCCESS indicates success. CERAPI_E_ALREADYINITIALIZED indicates that RAPI was already initialized. E_FAIL indicates failure.

Remarks

This function is a part of the RAPI that invokes function calls on a Windows CE–based device. RAPI functions are supported only for applications that run on desktop platforms.

The functions CeRapiInit or CeRapiInitEx must be called before any remote API calls can be performed. They initialize the underlying communications layers between the desktop PC and the target platform device.

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

Requirements

Smartphone Platforms: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: rapi.h
Library: rapi.lib

See Also

CeRapiInitEx

RAPIINIT

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.