Skip to content

Latest commit

 

History

History
100 lines (56 loc) · 2.8 KB

inapenforcementclientconnection-setconnectionid-method.md

File metadata and controls

100 lines (56 loc) · 2.8 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
INapEnforcementClientConnection SetConnectionId method (NapEnforcementClient.h)
Is used to set the unique ID of the connection and must be set by the enforcement client as soon as the connection is created.
69d1a891-bc86-4c8a-b614-ebcdaa4a9057
SetConnectionId method NAP
SetConnectionId method NAP , INapEnforcementClientConnection interface
INapEnforcementClientConnection interface NAP , SetConnectionId method
apiref
INapEnforcementClientConnection.SetConnectionId
qagent.dll
COM
reference
05/31/2018

INapEnforcementClientConnection::SetConnectionId method

Note

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

The INapEnforcementClientConnection::SetConnectionId method is used to set the unique ID of the connection and must be set by the enforcement client as soon as the connection is created.

Syntax

HRESULT SetConnectionId(
  [in] const ConnectionId *connectionId
);

Parameters

connectionId [in]

A pointer to a ConnectionId that uniquely identifies a connection.

Return value

Other COM-specific error codes also may be returned.

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

Remarks

This ConnectionID is primarily used for logging purposes.

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

INapEnforcementClientConnection