Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.54 KB

CeRapiInitEx.md

File metadata and controls

54 lines (36 loc) · 1.54 KB

Home

Function name : CeRapiInitEx

Group: Remote Application Programming (RAPI) - Library: rapi


This function attempts to initialize the Windows CE remote application programming interface (RAPI) and initially returns an event handle.


Code examples:

Pocket PC: base class
Pocket PC: custom RAPI class for operating with the System Registry
Pocket PC: custom RAPI class for operating with files and folders on mobile device
PocketPC: custom RAPI class for executing routines on remote Windows CE device

Declaration:

HRESULT CeRapiInitEx(
  RAPIINIT* pRapiInit
);  

FoxPro declaration:

DECLARE INTEGER CeRapiInitEx IN rapi;
	STRING @ pRapiInit  

Parameters:

pRapiInit [in] Pointer to a RAPIINIT structure.


Return value:

S_OK indicates success. E_FAIL indicates failure.


Comments:

This non-blocking function creates an event handle, which can be retrieved from the RAPIINIT structure immediately after the call. Use WaitForSingleObject to check either for the signaled state of the event or for the time-out.

The HRESULT hrRapiInit parameter in the RAPIINIT may be not reliable.

Call CeRapiUninit even if the connection failed.