Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelper Methods

The ProcessHelper type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAdjustTokenPrivileges(IntPtr, Boolean, TokenPrivileges, Int32, IntPtr, IntPtr) The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in an access token requires access.

AdjustTokenPrivileges function

Public methodStatic memberAdjustTokenPrivileges(IntPtr, Boolean, TokenPrivileges, UInt32, TokenPrivileges, UInt32) The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in an access token requires access.

AdjustTokenPrivileges function

Public methodStatic memberCloseHandle Closes an open object handle.

CloseHandle function

Public methodStatic memberCreateProcess Creates a new process and its primary thread. The new process runs in the security context of the calling process.

CreateProcess function

Public methodStatic memberCreateProcessAsUser Creates a new process and its primary thread. The new process runs in the security context of the user represented by the specified token.

CreateProcessAsUser function

Public methodStatic memberCreateToolhelp32Snapshot Takes a snapshot of the specified processes, as well as the heaps, modules, and threads used by these processes.

CreateToolhelp32Snapshot function

Public methodStatic memberDuplicateHandle Duplicates an object handle.

DuplicateHandle function

Public methodStatic memberDuplicateTokenEx The DuplicateTokenEx function creates a new access token that duplicates an existing token. This function can create either a primary token or an impersonation token.

DuplicateTokenEx function

Public methodStatic memberEnumProcesses Retrieves the process identifier for each process object in the system.

EnumProcesses function

Public methodStatic memberGetCurrentProcess Retrieves a pseudo handle for the current process.

GetCurrentProcess function

Public methodStatic memberGetCurrentProcessId Retrieves the process identifier of the calling process.

GetProcessAffinityMask function

Public methodStatic memberGetExitCodeProcess Retrieves the termination status of the specified process.

GetExitCodeProcess function

Public methodStatic memberGetPriorityClass Retrieves the priority class for the specified process. This value, together with the priority value of each thread of the process, determines each thread's base priority level.

GetPriorityClass function

Public methodStatic memberGetProcessAffinityMask Retrieves the process affinity mask for the specified process and the system affinity mask for the system.

GetProcessAffinityMask function

Public methodStatic memberGetProcessHandleCount Retrieves the number of open handles that belong to the specified process.

GetProcessHandleCount function

Public methodStatic memberGetProcessIoCounters Retrieves accounting information for all I/O operations performed by the specified process.

GetProcessIoCounters function

Public methodStatic memberGetProcessMemoryInfo Retrieves information about the memory usage of the specified process.

GetProcessMemoryInfo function

Public methodStatic memberGetProcessTimes Retrieves timing information for the specified process.

GetProcessTimes function

Public methodStatic memberGetThreadTimes Retrieves timing information for the specified thread.

GetThreadTimes function

Public methodStatic memberIsImmersiveProcess Determines whether the process belongs to a Windows Store app.

IsImmersiveProcess function

Public methodStatic memberIsProcessInJob Determines whether the process is running in the specified job.

IsProcessInJob function

Public methodStatic memberModule32First Retrieves information about the first module associated with a process.

Module32First function

Public methodStatic memberModule32Next Retrieves information about the next module associated with a process or thread.

Module32Next function

Public methodStatic memberOpenProcess Opens an existing local process object.

OpenProcess function

Public methodStatic memberOpenProcessToken The OpenProcessToken function opens the access token associated with a process.

OpenProcessToken function

Public methodStatic memberOpenThread Opens an existing thread object.

OpenThread function

Public methodStatic memberProcess32First Retrieves information about the first process encountered in a system snapshot.

Process32First function

Public methodStatic memberProcess32Next Retrieves information about the next process recorded in a system snapshot.

Process32Next function

Public methodStatic memberProcessIdToSessionId Retrieves the Remote Desktop Services session associated with a specified process.

ProcessIdToSessionId function

Public methodStatic memberQueryFullProcessImageName Retrieves the full name of the executable image for the specified process.

QueryFullProcessImageName function

Public methodStatic memberQueryProcessCycleTime Retrieves the sum of the cycle time of all threads of the specified process.

QueryProcessCycleTime function

Public methodStatic memberQueryThreadCycleTime Retrieves the cycle time for the specified thread.

QueryThreadCycleTime function

Public methodStatic memberSetPriorityClass Sets the priority class for the specified process. This value together with the priority value of each thread of the process determines each thread's base priority level.

SetPriorityClass function

Public methodStatic memberSetProcessAffinityMask Sets a processor affinity mask for the threads of the specified process.

SetProcessAffinityMask function

Public methodStatic memberSetProcessWorkingSetSize Sets the minimum and maximum working set sizes for the specified process.

SetProcessWorkingSetSize function

Public methodStatic memberTerminateProcess Terminates the specified process and all of its threads.

TerminateProcess function

Public methodStatic memberThread32First Retrieves information about the first thread of any process encountered in a system snapshot.

Thread32First function

Public methodStatic memberThread32Next Retrieves information about the next thread of any process encountered in the system memory snapshot.

Thread32Next function

Public methodStatic memberWaitForSingleObject Waits until the specified object is in the signaled state or the time-out interval elapses.

WaitForSingleObject function

Public methodStatic memberWaitForSingleObjectEx Waits until the specified object is in the signaled state, an I/O completion routine or asynchronous procedure call (APC) is queued to the thread, or the time-out interval elapses.

WaitForSingleObjectEx function

Public methodStatic memberWTSGetActiveConsoleSessionId Retrieves the session identifier of the console session. The console session is the session that is currently attached to the physical console. Note that it is not necessary that Remote Desktop Services be running for this function to succeed.

WTSGetActiveConsoleSessionId function

Top
See Also