INapEnforcementClientBinding::CreateConnection method

Note

The Network Access Protection platform is not available starting with Windows 10

The INapEnforcementClientBinding::CreateConnection factory method is used by enforcers to create connection objects.

Syntax

HRESULT CreateConnection(
  [out] INapEnforcementClientConnection **connection
);

Parameters

connection [out]

A COM pointer to a new INapEnforcementClientConnection interface returned by the NAP system.

Return value

Other COM-specific error codes also may be returned.

Return code Description
S_OK
The operation is successful.
E_ACCESSDENIED
Permissions error, access denied.
E_OUTOFMEMORY
System resource limit, could not perform the operation.

Remarks

The enforcement client must call the INapEnforcementClientBinding::Initialize method before calling this or any other method of the INapEnforcementClientBinding interface.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
NapEnforcementClient.h
IDL
NapEnforcementClient.idl
DLL
Qagent.dll

See also

INapEnforcementClientBinding

INapEnforcementClientConnection