WSD_STUB_FUNCTION callback function (wsdtypes.h)
Describes a stub function used to handle an incoming message. This function should only be implemented in and used by generated code.
Syntax
WSD_STUB_FUNCTION WsdStubFunction;
HRESULT WsdStubFunction(
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
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
|
The method succeeded. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wsdtypes.h (include Wsdapi.h) |