Windows Media Format SDK banner art
PreviousNext

IWMWriterNetworkSink::Open

The Open method opens a network port.

Syntax

HRESULT Open(
  DWORD*  pdwPortNum
);

Parameters

  pdwPortNum

[in, out]  On input, either specifies the port number required, or specifies zero and the sink selects a suitable port, the number of which is returned in this parameter on output.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Meaning
E_INVALIDARG The pdwPortNum parameter is NULL.
NS_E_INVALID_REQUEST The writer is not in an appropriate state.

Remarks

This method claims the network port number. To release the port, close the network sink.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.