IUPnPService interface

The IUPnPService interface enables an application to query state variables and invoke actions on an instance of a service.

When to implement

You should not implement this interface. The Microsoft standard implementation provides complete functionality.

When to use

Use this interface to control a device.

Note  For C++, all properties are retrieved by a method that is called by prepending get_ to the name of the property. For example, if the property's name is SomeState, then get_SomeState retrieves the property.

Members

The IUPnPService interface inherits from the IDispatch interface. IUPnPService also has these types of members:

Methods

The IUPnPService interface has these methods.

MethodDescription
AddCallback

Registers a service callback.

InvokeAction

Invokes the specified action.

QueryStateVariable

Returns the value of the specified state variable.

 

Properties

The IUPnPService interface has these properties.

PropertyDescription

Id

Service ID for the service.

LastTransportStatus

HTTP status of the last request sent to the service on the device. The request is either to invoke an action or query the value of a non-evented state variable.

ServiceTypeIdentifier

Service type identifier for the service.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

None supported

Header

Upnp.h

DLL

Upnp.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft