Applies to: desktop apps only
The Accept method asynchronously permits a connection on a listening socket. This method is similar to the Winsock accept function.
HRESULT Accept( [in] IFWXAcceptCompletion *pIFWXAcceptCompletion, [in] UserContextType UserData );
An opaque value that is to be passed to the IFWXAcceptCompletion::CompleteAsyncAccept notification method. This parameter provides a context to the notification.
This method returns S_OK if the call is successful; otherwise, it returns an error code.
The UserData parameter provides a context to the notification. You can use the same notification interface for receiving completion notifications from different network socket objects and differentiate between them by using different values for UserData.
Minimum supported client
Minimum supported server
|Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)|
|Forefront Threat Management Gateway (TMG) 2010|
Build date: 7/12/2010