Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method is used for Microsoft® Visual Basic® .NET clients. It sends an event to the device host with the list of DISPIDs that have changed. The device host then queries the service object to obtain the new values of the state variables.

Syntax

HRESULT OnStateChangedSafe(
  VARIANT 
varsadispidChanges
);

Parameters

varsadispidChanges

[in] Array of DISPIDs in a SafeArray.

Return Value

If the method succeeds, the return value is S_OK. Otherwise, the method returns one of the COM error codes that are defined in Winerror.h.

Requirements

Header upnphost.h
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later