WSD_STUB_FUNCTION function pointer

Describes a stub function used to handle an incoming message. This function should only be implemented in and used by generated code.

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

Possible return values include, but are not limited to, the following.

Return codeDescription
S_OK

The method succeeded.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WsdTypes.h (include Wsdapi.h)

 

 

Community Additions

ADD
Show: