Process Structure Routines

This section describes the subset of system-supplied PsXxx support routines that can be used by kernel-mode file systems and file system filter drivers. However, these routines cannot be used by device drivers.

In addition to the routines documented here, file systems and file system filter drivers can also call any of the PsXxx routines that are described in the Kernel-Mode Driver Architecture Reference section and that are declared in Ntifs.h.

In this section

TopicDescription

PsChargePoolQuota

The PsChargePoolQuota routine charges pool quota of the specified pool type to the specified process.

PsDereferenceImpersonationToken

The PsDereferenceImpersonationToken routine decrements the reference count of an impersonation token.

PsDereferencePrimaryToken

The PsDereferencePrimaryToken routine decrements the reference count of a primary token.

PsIsDiskCountersEnabled

The enabled state of the per process disk I/O counters is returned by the PsIsDiskCountersEnabled routine.

PsGetProcessExitTime

The PsGetProcessExitTime routine returns the exit time for the current process.

PsImpersonateClient

The PsImpersonateClient routine causes a server thread to impersonate a client.

PsIsThreadTerminating

The PsIsThreadTerminating routine checks whether a thread is terminating.

PsLookupProcessByProcessId

The PsLookupProcessByProcessId routine accepts the process ID of a process and returns a referenced pointer to EPROCESS structure of the process.

PsLookupThreadByThreadId

The PsLookupThreadByThreadId routine accepts the thread ID of a thread and returns a referenced pointer to the ETHREAD structure of the thread.

PsReferenceImpersonationToken

The PsReferenceImpersonationToken routine increments the reference count of the impersonation token for the specified thread.

PsReferencePrimaryToken

The PsReferencePrimaryToken routine increments the reference count of the primary token for the specified process.

PsReturnPoolQuota

The PsReturnPoolQuota routine returns pool quota of the specified pool type to the specified process.

PsRevertToSelf

The PsRevertToSelf routine ends the calling thread's impersonation of a client.

PsUpdateDiskCounters

The PsUpdateDiskCounters routine updates the disk I/O counters of a given process.

 

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.