IObexResponse::GetLastResponseCode (Windows Embedded CE 6.0)
1/6/2010
This method retrieves the last response code sent by an OBEX server.
Syntax
HRESULT GetLastResponseCode(
BYTE *pResponseCode
);
Parameters
- pResponseCode
[in, out] Pointer to the buffer that receives the last response code sent by an OBEX server.
Return Value
This method returns S_OK if the response code was successfully retrieved. GetLastResponseCode returns E_FAIL to indicate that no last response code could be retrieved because data was not transferred between the OBEX server and the client application.
Remarks
The following code example shows how to retrieve the last response code.
// Assume that pMyStream has already been initialized
IObexResponse *pResp;
BYTE lastResponse;
hr = pMyStream->QueryInterface(IID_IObexResponse,(void**)&pResp);
if (FAILED(hr))
goto cleanup;
hr = pResp->GetLastResponseCode(&lastResponse);
if (FAILED(hr))
goto cleanup;
Requirements:
OS Versions: Windows CE 5.0 and later.
Header: Obex.h, Obex.idl
Link Library: Uuid.lib