Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function reports errors that occur during RAPI method calls.
Syntax
HRESULT CeRapiGetError(void); |
Parameters
None.
Return Value
This function returns a HRESULT with errors that are be specific to RAPI function calls. This function should be used in conjuction with CeGetLastErrorthat checks for errors that are not related to RAPI.
Code Example
The following code example illustrates how to use CeRapiGetErrorand CeGetLastErrorto get error information after a RAPI function call.
Copy Code | |
---|---|
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
Header | rapi.h |
Library | rapi.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2002 and later, Smartphone 2002 and later |