Skip to content

Latest commit

 

History

History
116 lines (98 loc) · 2.91 KB

nf-rpcdcep-i_rpcbindinginqlocalclientpid.md

File metadata and controls

116 lines (98 loc) · 2.91 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:rpcdcep.I_RpcBindingInqLocalClientPID
I_RpcBindingInqLocalClientPID function (rpcdcep.h)
Obtains a client process ID.
I_RpcBindingInqLocalClientPID
I_RpcBindingInqLocalClientPID function [RPC]
rpc.i_rpcbindinginqlocalclientpid
rpcdcep/I_RpcBindingInqLocalClientPID
rpc\i_rpcbindinginqlocalclientpid.htm
Rpc
af31dc1e-51b9-4789-a97f-d51ae34850cf
12/05/2018
I_RpcBindingInqLocalClientPID, I_RpcBindingInqLocalClientPID function [RPC], rpc.i_rpcbindinginqlocalclientpid, rpcdcep/I_RpcBindingInqLocalClientPID
rpcdcep.h
Rpc.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Rpcrt4.lib
Rpcrt4.dll
Windows
19H1
I_RpcBindingInqLocalClientPID
rpcdcep/I_RpcBindingInqLocalClientPID
c++
APIRef
kbSyntax
DllExport
Rpcrt4.dll
I_RpcBindingInqLocalClientPID

I_RpcBindingInqLocalClientPID function

-description

[The I_RpcBindingInqLocalClientPID function is available for use in the operating systems specified in the Requirements section. Instead, call RpcServerInqCallAttributes.]

The I_RpcBindingInqLocalClientPID function obtains a client process ID.

-parameters

-param Binding [in, optional]

RPC_BINDING_HANDLE that specifies the binding handle for an explicit RPC binding from the client to a server application.

-param Pid [out]

Contains the process ID of the client that issued the call upon return.

-returns

Value Meaning
RPC_S_OK
The function call was successful.
RPC_S_NO_CALL_ACTIVE
The current thread does not have an active RPC call.
RPC_S_INVALID_BINDING
The RPC binding handle is invalid.
 
Note  For a list of valid error codes, see RPC Return Values.
 

-remarks

The client process ID is only returned in ClientBinding when the "ncalrpc" protocol sequence is used. Until the process terminates, the process ID value uniquely identifies it on the client. When the process terminates, the process ID can be used by new processes.