WSD_STUB_FUNCTION (Compact 2013)
3/26/2014
This function describes a stub function used to handle an incoming message. This function should only be implemented in and used by generated code. For information on generated code, see this Microsoft Web site.
Syntax
typedef HRESULT ( *WSD_STUB_FUNCTION )(
IUnknown* server,
IWSDServiceMessaging* session,
WSD_EVENT* event
);
Parameters
- server
Pointer to the service object that was registered as a handler for messages of this type. Service objects are registered by calling one of the following methods: IWSDDeviceHost::RegisterService, IWSDDeviceHost::AddDynamicService, or IWSDServiceProxy::SubscribeToOperation.
- session
Pointer to an IWSDServiceMessaging object used for sending a fault or message response.
- Event
Pointer to a WSD_EVENT structure that contains the data for the current request.
Return Value
The following table shows the possible error code return values.
Error Code |
Description |
---|---|
S_OK |
The function succeeded. |
Requirements
Header |
wsdapi.h |
Library |
wsdapi.lib |
See Also
Reference
Web Services on Devices Functions
Web Services on Devices Reference