Share via


ISPWindowsTokenCacheServiceContract.GetUserHandle method

Retrieves the handle to the current user process.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<OperationContractAttribute> _
Function GetUserHandle ( _
    callerPid As Integer _
) As IntPtr
'Usage
Dim instance As ISPWindowsTokenCacheServiceContract
Dim callerPid As Integer
Dim returnValue As IntPtr

returnValue = instance.GetUserHandle(callerPid)
[OperationContractAttribute]
IntPtr GetUserHandle(
    int callerPid
)

Parameters

  • callerPid
    Type: System.Int32

    The ID of the caller process.

Return value

Type: System.IntPtr
The handle to the user process.

Remarks

Classes that implement this method should return the IntPtr from a previous call to the CacheHandle(IntPtr, Int32) method with the same callerPid.

See also

Reference

ISPWindowsTokenCacheServiceContract interface

ISPWindowsTokenCacheServiceContract members

Microsoft.SharePoint.Administration.Claims namespace