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. |
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 |
See Also
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.