IWSDiscoveryPublisher::GetXMLContext method (wsddisco.h)

Gets the XML context associated with the device.

Syntax

HRESULT GetXMLContext(
  [out] IWSDXMLContext **ppContext
);

Parameters

[out] ppContext

Pointer to a pointer to an IWSDXMLContext object that represents the XML context.

Return value

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

Return code Description
S_OK
The method completed successfully.
E_INVALIDARG
ppContext is NULL.
E_ABORT
The publisher has not been started. Attaching a notification sink starts the publisher. To attach a sink, call RegisterNotificationSink.

Remarks

Returns an optional context for the XML state of the transaction. If the service layer is used then this should be the context the XML namespaces and types were registered with.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsddisco.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDXMLContext

IWSDiscoveryPublisher