次の方法で共有


IWMAddressAccess interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWMAddressAccess interface controls IP access lists on the writer network sink object. Applications can use this interface to exclude specific IP addresses, or ranges of IP addresses, from connecting to the network sink. To obtain this interface, call QueryInterface on another interface of the writer network sink object.

This interface supports only Internet Protocol version 4 (IPv4) addresses. The IWMAddressAccess2 interface inherits IWMAddressAccess and adds support for IPv6 addresses.

The following interfaces can be obtained by using the QueryInterface method of this interface.

Interface IID
IWMAddressAccess2 IID_IWMAddressAccess2
IWMClientConnections IID_IWMClientConnections
IWMClientConnections2 IID_IWMClientConnections2
IWMWriterNetworkSink IID_IWMWriterNetworkSink
IWMWriterSink IID_IWMWriterSink

Inheritance

The IWMAddressAccess interface inherits from the IUnknown interface. IWMAddressAccess also has these types of members:

Methods

The IWMAddressAccess interface has these methods.

 
IWMAddressAccess::AddAccessEntry

The AddAccessEntry method adds an entry to the IP address access list.
IWMAddressAccess::GetAccessEntry

The GetAccessEntry method retrieves an entry from the IP address access list.
IWMAddressAccess::GetAccessEntryCount

The GetAccessEntryCount method retrieves the number of entries in the IP address access list.
IWMAddressAccess::RemoveAccessEntry

The RemoveAccessEntry method removes an access entry.

Requirements

Requirement Value
Target Platform Windows
Header wmsdkidl.h

See also

Interfaces

Writer Network Sink Object