The CreateNetworkSocket method creates a TCP/IP socket that is associated with the session.
HRESULT CreateNetworkSocket( [in] INT Protocol, [out] IFWXNetworkSocket** piSocket );
Protocol flags. This parameter can have the following flag values:
The method will create a TCP socket.
The method will create a UDP socket.
Address of a variable that receives a pointer to the new IFWXNetworkSocket interface created.
The socket was created.
Not enough memory or resources could be allocated to process the event. The socket was not created.
Winsock or Windows error code. The method failed, and the socket was not created.
The socket created by this method is user-specific, and obeys the policy rules for the session. Connections are logged as if they were performed by the session's user.
To create a socket that is not user-specific, use IFWXFirewall::CreateNetworkSocket.
|Server||Requires Windows Server 2008.|
|Version||Requires Forefront Threat Management Gateway (TMG).|
Declared in Wspfwext.idl.
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.