IFWXUdpDestination::SetProtocol
Method
Associates the UDP destination with a given protocol and
performs access control based on the user's permission to access
the protocol.
HRESULT SetProtocol(
REFGUID ProtocolGuid,
DWORD dwFlags
);
Parameters
- ProtocolGuid
- [in] GUID of the protocol to attempt to associate with the
destination.
- dwFlags
- [in] This flag parameter can be a combination of the following
values:
Value |
Description |
0 |
"Send" is allowed for the destination. |
FWX_FLAG_BIDIRECTIONAL |
"Send-Receive" is allowed for the destination. |
Return Values
- S_OK
- The method succeeded.
- E_INVALIDARG
- Invalid (non-zero) value was passed to the Reserved
parameter.
- FWX_E_BAD_CONTEXT
- The method was not called in the context of an event
handler.
- FWX_E_PROTOCOL_RULES_DENIED
- The protocol rules do not allow the user to use the protocol
specified by the ProtocolGuid parameter.