CeRapiGetError (RAPI)

Send Feedback

This function reports errors that occur during RAPI method calls.

HRESULT CeRapiGetError(void);

Parameters

None.

Return Values

This function returns a HRESULT with errors that are be specific to RAPI function calls. This function should be used in conjuction with CeGetLastError that checks for errors that are not related to RAPI.

Code Example

The following code example illustrates how to use CeRapiGetError and CeGetLastError to get error information after a RAPI function call.

HRESULT hr = S_OK;
BOOL bRet = CeCheckPassword(TEXT("Password"));
if (!bRet)
{
   hr = CeRapiGetError();
   if(SUCCEEDED(hr)) // If no RAPI errors, call CeGetLastError for the error on device
   {
      DWORD dwErr = CeGetLastError();
   }
}

Requirements

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

See Also

Remote API Functions | CeGetLastError

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.