ReactOS 0.4.15-dev-8621-g4b051b9
|
Go to the source code of this file.
_In_ THREADINFOCLASS _In_reads_bytes_ | ( | ThreadInformationLength | ) |
_IRQL_requires_max_ | ( | PASSIVE_LEVEL | ) |
Queries information details about a security descriptor.
Computes the quota size of a security descriptor.
Assigns a security descriptor for a new object.
An extended function that assigns a security descriptor for a new object.
Frees a security descriptor.
An extended function that sets new information data to a security descriptor.
Modifies some information data about a security descriptor.
[in] | SecurityInformation | Security information details to be queried from a security descriptor. |
[out] | SecurityDescriptor | The returned security descriptor with security information data. |
[in,out] | Length | The returned length of a security descriptor. |
[in,out] | ObjectsSecurityDescriptor | The returned object security descriptor. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | AutoInheritFlags | Flags bitmask inheritation, influencing how the security descriptor can be inherited and if it can be in the first place. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | SecurityDescriptor | A security descriptor to be freed from memory. |
[in] | _ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | _ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | ObjectType | The type of the new object. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | AutoInheritFlags | Automatic inheritance flags that influence how access control entries within ACLs from security descriptors are inherited. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | SecurityDescriptor | A security descriptor. |
[out] | QuotaInfoSize | The returned quota size of the given security descriptor to the caller. The function may return 0 to this parameter if the descriptor doesn't have a group or a discretionary access control list (DACL) even. |
Definition at line 923 of file Messaging.c.
NTSYSCALLAPI NTSTATUS NTAPI NtAlertResumeThread | ( | _In_ HANDLE | ThreadHandle, |
_Out_opt_ PULONG | SuspendCount | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtAlertThread | ( | _In_ HANDLE | ThreadHandle | ) |
NTSYSCALLAPI NTSTATUS NTAPI NtApphelpCacheControl | ( | _In_ APPHELPCACHESERVICECLASS | Service, |
_In_opt_ PAPPHELP_CACHE_SERVICE_LOOKUP | ServiceData | ||
) |
Definition at line 728 of file apphelp.c.
Referenced by BaseDumpAppcompatCache(), BaseFlushAppcompatCache(), BasepShimCacheRemoveEntry(), BasepShimCacheSearch(), and CallApphelp().
NTSYSCALLAPI NTSTATUS NTAPI NtAssignProcessToJobObject | ( | _In_ HANDLE | JobHandle, |
_In_ HANDLE | ProcessHandle | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtCreateJobObject | ( | _Out_ PHANDLE | JobHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ POBJECT_ATTRIBUTES | ObjectAttributes | ||
) |
NTSTATUS NTAPI NtCreateJobSet | ( | _In_ ULONG | NumJob, |
_In_ PJOB_SET_ARRAY | UserJobSet, | ||
_In_ ULONG | Flags | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtCreateProcess | ( | _Out_ PHANDLE | ProcessHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_opt_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ HANDLE | ParentProcess, | ||
_In_ BOOLEAN | InheritObjectTable, | ||
_In_opt_ HANDLE | SectionHandle, | ||
_In_opt_ HANDLE | DebugPort, | ||
_In_opt_ HANDLE | ExceptionPort | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtCreateProcessEx | ( | _Out_ PHANDLE | ProcessHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_opt_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ HANDLE | ParentProcess, | ||
_In_ ULONG | Flags, | ||
_In_opt_ HANDLE | SectionHandle, | ||
_In_opt_ HANDLE | DebugPort, | ||
_In_opt_ HANDLE | ExceptionPort, | ||
_In_ BOOLEAN | InJob | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtCreateThread | ( | _Out_ PHANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_opt_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ HANDLE | ProcessHandle, | ||
_Out_ PCLIENT_ID | ClientId, | ||
_In_ PCONTEXT | ThreadContext, | ||
_In_ PINITIAL_TEB | UserStack, | ||
_In_ BOOLEAN | CreateSuspended | ||
) |
FORCEINLINE struct _TEB * NtCurrentTeb | ( | VOID | ) |
Definition at line 420 of file psfuncs.h.
NTSYSCALLAPI NTSTATUS NTAPI NtImpersonateThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ HANDLE | ThreadToImpersonate, | ||
_In_ PSECURITY_QUALITY_OF_SERVICE | SecurityQualityOfService | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtIsProcessInJob | ( | _In_ HANDLE | ProcessHandle, |
_In_opt_ HANDLE | JobHandle | ||
) |
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtOpenProcess | ( | _Out_ PHANDLE | ProcessHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_opt_ PCLIENT_ID | ClientId | ||
) |
_Must_inspect_result_ __kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtOpenProcessToken | ( | _In_ HANDLE | ProcessHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_Out_ PHANDLE | TokenHandle | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtOpenThread | ( | _Out_ PHANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ PCLIENT_ID | ClientId | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtOpenThreadToken | ( | _In_ HANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ BOOLEAN | OpenAsSelf, | ||
_Out_ PHANDLE | TokenHandle | ||
) |
Opens a token that is tied to a thread handle.
[out] | ThreadHandle | Thread handle where the token is about to be opened. |
[in] | DesiredAccess | The request access right for the token. |
[in] | OpenAsSelf | If set to TRUE, the access check will be made with the security context of the process of the calling thread (opening as self). Otherwise the access check will be made with the security context of the calling thread instead. |
[out] | TokenHandle | The opened token handle returned to the caller for use. |
Definition at line 2474 of file token.c.
NTSYSCALLAPI NTSTATUS NTAPI NtOpenThreadTokenEx | ( | _In_ HANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ BOOLEAN | OpenAsSelf, | ||
_In_ ULONG | HandleAttributes, | ||
_Out_ PHANDLE | TokenHandle | ||
) |
Opens a token that is tied to a thread handle.
[out] | ThreadHandle | Thread handle where the token is about to be opened. |
[in] | DesiredAccess | The request access right for the token. |
[in] | OpenAsSelf | If set to TRUE, the access check will be made with the security context of the process of the calling thread (opening as self). Otherwise the access check will be made with the security context of the calling thread instead. |
[in] | HandleAttributes | Handle attributes for the opened thread token handle. |
[out] | TokenHandle | The opened token handle returned to the caller for use. |
Definition at line 2331 of file token.c.
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInformationJobObject | ( | _In_ HANDLE | JobHandle, |
_In_ JOBOBJECTINFOCLASS | JobInformationClass, | ||
_Out_bytecap_(JobInformationLength) PVOID | JobInformation, | ||
_In_ ULONG | JobInformationLength, | ||
_Out_ PULONG | ReturnLength | ||
) |
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtQueryInformationProcess | ( | _In_ HANDLE | ProcessHandle, |
_In_ PROCESSINFOCLASS | ProcessInformationClass, | ||
_Out_ PVOID | ProcessInformation, | ||
_In_ ULONG | ProcessInformationLength, | ||
_Out_opt_ PULONG | ReturnLength | ||
) |
Definition at line 59 of file query.c.
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInformationThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ THREADINFOCLASS | ThreadInformationClass, | ||
_Out_ PVOID | ThreadInformation, | ||
_In_ ULONG | ThreadInformationLength, | ||
_Out_opt_ PULONG | ReturnLength | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtRegisterThreadTerminatePort | ( | _In_ HANDLE | TerminationPort | ) |
NTSYSCALLAPI NTSTATUS NTAPI NtResumeProcess | ( | _In_ HANDLE | ProcessHandle | ) |
NTSYSCALLAPI NTSTATUS NTAPI NtResumeThread | ( | _In_ HANDLE | ThreadHandle, |
_Out_opt_ PULONG | SuspendCount | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtSetInformationJobObject | ( | _In_ HANDLE | JobHandle, |
_In_ JOBOBJECTINFOCLASS | JobInformationClass, | ||
_In_bytecount_(JobInformationLength) PVOID | JobInformation, | ||
_In_ ULONG | JobInformationLength | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtSetInformationProcess | ( | _In_ HANDLE | ProcessHandle, |
_In_ PROCESSINFOCLASS | ProcessInformationClass, | ||
_In_ PVOID | ProcessInformation, | ||
_In_ ULONG | ProcessInformationLength | ||
) |
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtSetInformationThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ THREADINFOCLASS | ThreadInformationClass, | ||
_In_reads_bytes_(ThreadInformationLength) PVOID | ThreadInformation, | ||
_In_ ULONG | ThreadInformationLength | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtSuspendProcess | ( | _In_ HANDLE | ProcessHandle | ) |
NTSYSCALLAPI NTSTATUS NTAPI NtSuspendThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ PULONG | PreviousSuspendCount | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtTerminateJobObject | ( | _In_ HANDLE | JobHandle, |
_In_ NTSTATUS | ExitStatus | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtTerminateProcess | ( | _In_ HANDLE | ProcessHandle, |
_In_ NTSTATUS | ExitStatus | ||
) |
NTSYSCALLAPI NTSTATUS NTAPI NtTerminateThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ NTSTATUS | ExitStatus | ||
) |
NTKERNELAPI VOID NTAPI PsChargePoolQuota | ( | _In_ PEPROCESS | Process, |
_In_ POOL_TYPE | PoolType, | ||
_In_ SIZE_T | Amount | ||
) |
Charges the pool quota of a given process. The kind of pool quota to charge is determined by the PoolType parameter.
[in] | Process | The process which quota is to be charged. |
[in] | PoolType | The pool type to choose to charge quotas (e.g. PagedPool or NonPagedPool). |
[in] | Amount | The amount of quotas to charge into a process. |
Definition at line 775 of file quota.c.
Referenced by FsRtlCancelNotify(), and FsRtlNotifyFilterReportChange().
NTKERNELAPI NTSTATUS NTAPI PsChargeProcessNonPagedPoolQuota | ( | _In_ PEPROCESS | Process, |
_In_ SIZE_T | Amount | ||
) |
Charges the non paged pool quota of a given process.
[in] | Process | The process which non paged quota is to be charged. |
[in] | Amount | The amount of quotas to charge into a process. |
Definition at line 811 of file quota.c.
Referenced by MiCreatePebOrTeb(), MiMapLockedPagesInUserSpace(), MiMapViewOfDataSection(), NtAllocateVirtualMemory(), NtFreeVirtualMemory(), and START_TEST().
NTKERNELAPI NTSTATUS NTAPI PsChargeProcessPagedPoolQuota | ( | _In_ PEPROCESS | Process, |
_In_ SIZE_T | Amount | ||
) |
Charges the paged pool quota of a given process.
[in] | Process | The process which paged quota is to be charged. |
[in] | Amount | The amount of quotas to charge into a process. |
Definition at line 839 of file quota.c.
Referenced by ExpAllocateHandleTable(), ExpAllocateTablePagedPool(), ExpAllocateTablePagedPoolNoZero(), and START_TEST().
NTKERNELAPI NTSTATUS NTAPI PsChargeProcessPoolQuota | ( | _In_ PEPROCESS | Process, |
_In_ POOL_TYPE | PoolType, | ||
_In_ SIZE_T | Amount | ||
) |
Charges the process' quota pool. The type of quota to be charged depends upon the PoolType parameter.
[in] | Process | The process which quota is to be charged. |
[in] | PoolType | The type of quota pool to charge (e.g. PagedPool or NonPagedPool). |
[in] | Amount | The amount of quotas to charge into a process. |
Definition at line 872 of file quota.c.
Referenced by ExAllocatePoolWithQuotaTag(), PsChargePoolQuota(), PsChargeProcessNonPagedPoolQuota(), and PsChargeProcessPagedPoolQuota().
NTKERNELAPI VOID NTAPI PsEstablishWin32Callouts | ( | _In_ PWIN32_CALLOUTS_FPNS | CalloutData | ) |
NTKERNELAPI ULONG NTAPI PsGetCurrentProcessSessionId | ( | VOID | ) |
Definition at line 1133 of file process.c.
Referenced by ExpWin32SessionCallout(), IntCreateDesktop(), IntDestroyMenuObject(), NtSetInformationObject(), NtUserSwitchDesktop(), ObpLookupObjectName(), and VideoPortUseDeviceInSession().
NTKERNELAPI PVOID NTAPI PsGetCurrentProcessWin32Process | ( | VOID | ) |
Definition at line 1183 of file process.c.
Referenced by _Function_class_(), CheckWinstaAttributeAccess(), co_IntGraphicsCheck(), co_IntSetParent(), co_IntSetWindowLongPtr(), co_IntUserManualGuiCheck(), co_UserDestroyWindow(), DC_bAllocDcAttr(), DC_vFreeDcAttr(), DecrementCurrentProcessGdiHandleCount(), DesktopHeapAddressToUser(), DesktopHeapGetUserDelta(), FontLink_PrepareFontInfo(), GDI_CleanupForProcess(), GetBrushAttrPool(), GetControlColor(), GetFontFamilyInfoForSubstitutes(), GetW32ProcessInfo(), handle_internal_message(), IdlePing(), IdlePong(), IncrementCurrentProcessGdiHandleCount(), IntAllowSetForegroundWindow(), IntGdiAddFontMemResource(), IntGdiCleanupPrivateFontsForProcess(), IntGdiLoadFontsFromMemory(), IntGdiRemoveFontMemResource(), IntGdiSetRegionOwner(), IntGetFontFamilyInfo(), IntLoadHookModule(), IntLoadSystenIcons(), IntLockSetForegroundWindow(), IntMapDesktopView(), IntUnmapDesktopView(), IntWinStaOkToClose(), NtUserCallHwndParam(), NtUserCallOneParam(), NtUserDestroyCursor(), NtUserFindExistingCursorIcon(), NtUserGetComboBoxInfo(), NtUserGetListBoxInfo(), NtUserSetSystemCursor(), NtUserSetWindowFNID(), REGION_bAllocRgnAttr(), REGION_vCleanup(), TextIntRealizeFont(), UserDbgAssertThreadInfo(), UserGetDCEx(), UserGetProcessWindowStation(), UserHeapAddressToUser(), UserSetProcessWindowStation(), UserSystemParametersInfo(), and UserUnregisterUserApiHook().
NTKERNELAPI HANDLE NTAPI PsGetCurrentThreadProcessId | ( | VOID | ) |
Definition at line 755 of file thread.c.
Referenced by intDdCreateDirectDrawLocal().
NTKERNELAPI PVOID NTAPI PsGetCurrentThreadWin32Thread | ( | VOID | ) |
Definition at line 805 of file thread.c.
Referenced by AllocateUserMessage(), CaretSystemTimerProc(), co_HOOK_CallHooks(), co_IntActivateKeyboardLayout(), co_IntCallHookProc(), co_IntCallSentMessageCallback(), co_IntCallWindowProc(), co_IntClientLoadLibrary(), co_IntClientThreadSetup(), co_IntCreateDefaultImeWindow(), co_IntFixCaret(), co_IntGetPeekMessage(), co_IntLoadDefaultCursors(), co_IntLoadSysMenuTemplate(), co_IntPaintWindows(), co_IntPeekMessage(), co_IntProcessKeyboardMessage(), co_IntProcessMouseMessage(), co_IntSendActivateMessages(), co_IntSendMessageTimeoutSingle(), co_IntSendMessageWithCallBack(), co_IntSetActiveWindow(), co_IntSetCaretPos(), co_IntSetForegroundAndFocusWindow(), co_IntWaitMessage(), co_MsqDispatchOneSentMessage(), co_MsqReplyMessage(), co_MsqSendMessage(), co_MsqSendMessageAsync(), co_UserDestroyWindow(), co_UserHideCaret(), co_UserSetCapture(), co_UserSetFocus(), co_UserShowCaret(), co_WinPosSearchChildren(), co_WinPosSetWindowPos(), co_WinPosShowWindow(), DECREASE_THREAD_LOCK_COUNT(), DefWndDoSizeMove(), DefWndStartSizeMove(), DesktopHeapGetUserDelta(), DesktopThreadMain(), GetW32ThreadInfo(), handle_internal_message(), IdlePing(), INCREASE_THREAD_LOCK_COUNT(), IntAddAtom(), IntCallWndProc(), IntCallWndProcRet(), IntCbAllocateMemory(), IntCbFreeMemory(), IntCreateDesktop(), IntDeactivateWindow(), IntDefWindowProc(), IntDeRegisterShellHookWindow(), IntDesktopOkToClose(), IntDestroyOwnedWindows(), IntDispatchMessage(), IntDrawScrollBar(), IntGetAndReferenceClass(), IntGetAtomName(), IntGetCapture(), IntGetCurrentThreadDesktopWindow(), IntGetImeCompatFlags(), IntGetNextHook(), IntGetQueueStatus(), IntGetThreadDesktopWindow(), IntGetThreadFocusWindow(), IntInitMessagePumpHook(), IntInvalidateWindows(), IntIsClipboardOpenByMe(), IntMsqClearWakeMask(), IntMsqSetWakeMask(), IntNotifyImeShowStatus(), IntNotifyWinEvent(), IntQueryTrackMouseEvent(), IntRegisterShellHookWindow(), IntReleaseCapture(), IntRemoveHook(), IntSendDestroyMsg(), IntSendSyncPaint(), IntSetThreadDesktop(), IntSetTimer(), IntTrackMouseEvent(), IntTrackPopupMenuEx(), IntTranslateKbdMessage(), IntUnhookWindowsHook(), IntUninitMessagePumpHook(), IntUserSetActiveWindow(), MENU_DoNextMenu(), MENU_InitTracking(), MENU_TrackMenu(), MsqGetMessageExtraInfo(), MsqSetMessageExtraInfo(), NtUserBlockInput(), NtUserCallNoParam(), NtUserCallOneParam(), NtUserCallTwoParam(), NtUserCreateAcceleratorTable(), NtUserCreateCaret(), NtUserGetAppImeLevel(), NtUserGetCaretPos(), NtUserGetGUIThreadInfo(), NtUserGetKeyboardLayoutName(), NtUserGetKeyboardState(), NtUserGetKeyNameText(), NtUserGetThreadState(), NtUserLockWorkStation(), NtUserMapVirtualKeyEx(), NtUserQueryWindow(), NtUserSendInput(), NtUserSetAppImeLevel(), NtUserSetKeyboardState(), NtUserSetThreadState(), NtUserSetWindowsHookEx(), NtUserSetWinEventHook(), NtUserToUnicodeEx(), NtUserValidateTimerCallback(), NtUserVkKeyScanEx(), NtUserWaitForInputIdle(), PostTimerMessages(), UserCreateInputContext(), UserDbgAssertThreadInfo(), UserDerefObjectCo(), UserDestroyMenu(), UserEnterExclusive(), UserGetActiveWindow(), UserGetCPD(), UserGetKeyboardLayout(), UserGetKeyState(), UserGhostThreadEntry(), UserInitialize(), UserOpenClipboard(), UserOpenInputDesktop(), UserRefObjectCo(), UserRegisterHotKey(), UserRegisterUserApiHook(), UserSendKeyboardInput(), UserSendMouseInput(), UserSetActiveWindow(), UserSetCursor(), UserShowCursor(), and UserUnregisterUserApiHook().
NTKERNELAPI BOOLEAN NTAPI PsGetProcessExitProcessCalled | ( | _In_ PEPROCESS | Process | ) |
NTKERNELAPI NTSTATUS NTAPI PsGetProcessExitStatus | ( | _In_ PEPROCESS | Process | ) |
NTKERNELAPI PVOID NTAPI PsGetProcessSecurityPort | ( | _In_ PEPROCESS | Process | ) |
NTKERNELAPI ULONG NTAPI PsGetProcessSessionId | ( | _In_ PEPROCESS | Process | ) |
NTKERNELAPI PVOID NTAPI PsGetProcessWin32Process | ( | _In_ PEPROCESS | Process | ) |
NTKERNELAPI PVOID NTAPI PsGetProcessWin32WindowStation | ( | _In_ PEPROCESS | Process | ) |
NTKERNELAPI ULONG NTAPI PsGetThreadFreezeCount | ( | _In_ PETHREAD | Thread | ) |
NTKERNELAPI BOOLEAN NTAPI PsGetThreadHardErrorsAreDisabled | ( | _In_ PETHREAD | Thread | ) |
NTKERNELAPI HANDLE NTAPI PsGetThreadId | ( | _In_ PETHREAD | Thread | ) |
NTKERNELAPI PEPROCESS NTAPI PsGetThreadProcess | ( | _In_ PETHREAD | Thread | ) |
NTKERNELAPI PTEB NTAPI PsGetThreadTeb | ( | _In_ PETHREAD | Thread | ) |
NTKERNELAPI PVOID NTAPI PsGetThreadWin32Thread | ( | _In_ PETHREAD | Thread | ) |
NTKERNELAPI BOOLEAN NTAPI PsIsSystemProcess | ( | _In_ PEPROCESS | Process | ) |
NTKERNELAPI BOOLEAN NTAPI PsIsThreadImpersonating | ( | _In_ PETHREAD | Thread | ) |
NTKERNELAPI NTSTATUS NTAPI PsLookupProcessThreadByCid | ( | _In_ PCLIENT_ID | Cid, |
_Out_opt_ PEPROCESS * | Process, | ||
_Out_ PETHREAD * | Thread | ||
) |
NTKERNELAPI VOID NTAPI PsReturnPoolQuota | ( | _In_ PEPROCESS | Process, |
_In_ POOL_TYPE | PoolType, | ||
_In_ SIZE_T | Amount | ||
) |
Returns the pool quota that the process was taking up.
[in] | Process | The process which quota is to be returned. |
[in] | PoolType | The type of quota pool to return (e.g. PagedPool or NonPagedPool). |
[in] | Amount | The amount of quotas to return from a process. |
Definition at line 907 of file quota.c.
Referenced by ExFreePoolWithTag(), ExReturnPoolQuota(), PsReturnProcessNonPagedPoolQuota(), and PsReturnProcessPagedPoolQuota().
NTKERNELAPI VOID NTAPI PsReturnProcessNonPagedPoolQuota | ( | _In_ PEPROCESS | Process, |
_In_ SIZE_T | Amount | ||
) |
Returns the non paged quota pool that the process was taking up.
[in] | Process | The process which non paged quota is to be returned. |
[in] | Amount | The amount of quotas to return from a process. |
Definition at line 938 of file quota.c.
Referenced by MiCreatePebOrTeb(), MiMapLockedPagesInUserSpace(), MiMapViewOfDataSection(), MiUnmapLockedPagesInUserSpace(), MiUnmapViewOfSection(), MmCleanProcessAddressSpace(), MmDeleteTeb(), NtAllocateVirtualMemory(), NtFreeVirtualMemory(), PspDeleteProcess(), and START_TEST().
Returns the paged pool quota that the process was taking up.
[in] | Process | The process which paged pool quota is to be returned. |
[in] | Amount | The amount of quotas to return from a process. |
Definition at line 965 of file quota.c.
Referenced by ExpAllocateHandleTable(), ExpFreeHandleTable(), ExpFreeTablePagedPool(), FsRtlCancelNotify(), FsRtlNotifyCleanup(), FsRtlNotifyCompleteIrp(), FsRtlNotifyFilterReportChange(), and START_TEST().
NTKERNELAPI VOID NTAPI PsRevertThreadToSelf | ( | _Inout_ PETHREAD | Thread | ) |
NTKERNELAPI NTSTATUS NTAPI PsSetProcessSecurityPort | ( | _Inout_ PEPROCESS | Process, |
_In_ PVOID | SecurityPort | ||
) |
NTKERNELAPI NTSTATUS NTAPI PsSetProcessWin32Process | ( | _Inout_ PEPROCESS | Process, |
_In_opt_ PVOID | Win32Process, | ||
_In_opt_ PVOID | OldWin32Process | ||
) |
Definition at line 1257 of file process.c.
Referenced by AllocW32Process(), and ExitProcessCallback().
NTKERNELAPI VOID NTAPI PsSetProcessWindowStation | ( | _Inout_ PEPROCESS | Process, |
_In_opt_ PVOID | WindowStation | ||
) |
NTKERNELAPI VOID NTAPI PsSetThreadHardErrorsAreDisabled | ( | _Inout_ PETHREAD | Thread, |
_In_ BOOLEAN | Disabled | ||
) |
NTKERNELAPI PVOID NTAPI PsSetThreadWin32Thread | ( | _Inout_ PETHREAD | Thread, |
_In_opt_ PVOID | Win32Thread, | ||
_In_opt_ PVOID | OldWin32Thread | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwAlertResumeThread | ( | _In_ HANDLE | ThreadHandle, |
_Out_opt_ PULONG | SuspendCount | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwAssignProcessToJobObject | ( | _In_ HANDLE | JobHandle, |
_In_ HANDLE | ProcessHandle | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwCreateJobObject | ( | _Out_ PHANDLE | JobHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ POBJECT_ATTRIBUTES | ObjectAttributes | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwCreateProcess | ( | _Out_ PHANDLE | ProcessHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_opt_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ HANDLE | ParentProcess, | ||
_In_ BOOLEAN | InheritObjectTable, | ||
_In_opt_ HANDLE | SectionHandle, | ||
_In_opt_ HANDLE | DebugPort, | ||
_In_opt_ HANDLE | ExceptionPort | ||
) |
Referenced by RtlCreateUserProcess().
NTSYSAPI NTSTATUS NTAPI ZwCreateThread | ( | _Out_ PHANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_opt_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ HANDLE | ProcessHandle, | ||
_Out_ PCLIENT_ID | ClientId, | ||
_In_ PCONTEXT | ThreadContext, | ||
_In_ PINITIAL_TEB | UserStack, | ||
_In_ BOOLEAN | CreateSuspended | ||
) |
Referenced by RtlCreateUserThread().
NTSYSAPI NTSTATUS NTAPI ZwImpersonateThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ HANDLE | ThreadToImpersonate, | ||
_In_ PSECURITY_QUALITY_OF_SERVICE | SecurityQualityOfService | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwOpenThread | ( | _Out_ PHANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ POBJECT_ATTRIBUTES | ObjectAttributes, | ||
_In_ PCLIENT_ID | ClientId | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwOpenThreadToken | ( | _In_ HANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ BOOLEAN | OpenAsSelf, | ||
_Out_ PHANDLE | TokenHandle | ||
) |
Referenced by IntGetCurrentAccessToken(), RtlAdjustPrivilege(), and RtlpOpenThreadToken().
NTSYSAPI NTSTATUS NTAPI ZwOpenThreadTokenEx | ( | _In_ HANDLE | ThreadHandle, |
_In_ ACCESS_MASK | DesiredAccess, | ||
_In_ BOOLEAN | OpenAsSelf, | ||
_In_ ULONG | HandleAttributes, | ||
_Out_ PHANDLE | TokenHandle | ||
) |
Referenced by RtlFormatCurrentUserKeyPath().
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationJobObject | ( | _In_ HANDLE | JobHandle, |
_In_ JOBOBJECTINFOCLASS | JobInformationClass, | ||
_Out_bytecap_(JobInformationLength) PVOID | JobInformation, | ||
_In_ ULONG | JobInformationLength, | ||
_Out_ PULONG | ReturnLength | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationProcess | ( | _In_ HANDLE | ProcessHandle, |
_In_ PROCESSINFOCLASS | ProcessInformationClass, | ||
_Out_ PVOID | ProcessInformation, | ||
_In_ ULONG | ProcessInformationLength, | ||
_Out_opt_ PULONG | ReturnLength | ||
) |
Referenced by lie_about_fs_type(), RtlCreateUserProcess(), RtlEncodePointer(), RtlSetProcessIsCritical(), and START_TEST().
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ THREADINFOCLASS | ThreadInformationClass, | ||
_Out_ PVOID | ThreadInformation, | ||
_In_ ULONG | ThreadInformationLength, | ||
_Out_opt_ PULONG | ReturnLength | ||
) |
Referenced by RtlSetThreadIsCritical().
Referenced by ExpLoadInitialProcess().
NTSYSAPI NTSTATUS NTAPI ZwSetInformationJobObject | ( | _In_ HANDLE | JobHandle, |
_In_ JOBOBJECTINFOCLASS | JobInformationClass, | ||
_In_ PVOID | JobInformation, | ||
_In_ ULONG | JobInformationLength | ||
) |
NTSYSAPI NTSTATUS NTAPI ZwSetInformationProcess | ( | _In_ HANDLE | ProcessHandle, |
_In_ PROCESSINFOCLASS | ProcessInformationClass, | ||
_In_ PVOID | ProcessInformation, | ||
_In_ ULONG | ProcessInformationLength | ||
) |
Referenced by RtlSetProcessIsCritical().
NTSYSAPI NTSTATUS NTAPI ZwSuspendThread | ( | _In_ HANDLE | ThreadHandle, |
_In_ PULONG | PreviousSuspendCount | ||
) |
Referenced by RtlAssert().
Definition at line 866 of file psfuncs.h.
Referenced by BaseExitThreadPoolThread(), BaseSrvBSMThread(), CdfsChkdsk(), ChkdskEx(), CsrDereferenceNtSession(), DbgkExitProcess(), DbgkExitThread(), Ext2Chkdsk(), NtfsChkdsk(), NtTerminateJobObject(), NtTerminateProcess(), NtTerminateThread(), PspExitThread(), PspTerminateProcess(), PspTerminateThreadByPointer(), PsTerminateProcess(), PsTerminateSystemThread(), RtlpExitThread(), test_query_process_basic(), VfatChkdsk(), and VfatxChkdsk().
_In_ THREADINFOCLASS ThreadInformationClass |
Definition at line 840 of file psfuncs.h.
Referenced by NtQueryInformationThread(), NtSetInformationThread(), NtUserQueryInformationThread(), and NtUserSetInformationThread().
_In_ THREADINFOCLASS _In_ ULONG ThreadInformationLength |
Definition at line 842 of file psfuncs.h.
Referenced by NtQueryInformationThread(), NtSetInformationThread(), NtUserSetInformationThread(), and PspQueryDescriptorThread().
Definition at line 725 of file psfuncs.h.
Referenced by AdjustTokenGroups(), AdjustTokenPrivileges(), BasepReplaceProcessThreadTokens(), CreateDefaultProcessSecurityCommon(), CreateProcessInternalW(), DuplicateTokenAsEffective(), GetCallerLuid(), GetSiteSidFromToken(), GetTokenInformation(), IntGetCurrentAccessToken(), IsPrivilegeEnabled(), IsTokenRestricted(), LogonUserExW(), LsapIsTrustedClient(), LsapLogonUser(), LsarSetSecurityObject(), MyLogonUser(), NtAdjustGroupsToken(), NtAdjustPrivilegesToken(), NtCreateToken(), NtOpenProcessToken(), NtOpenProcessTokenEx(), NtOpenThreadToken(), NtOpenThreadTokenEx(), NtQueryInformationToken(), NtSetInformationProcess(), NtSetInformationThread(), NtSetInformationToken(), OpenProcessToken(), OpenThreadToken(), PsAssignImpersonationToken(), PspSetPrimaryToken(), RtlAdjustPrivilege(), RtlCreateUserSecurityObject(), RtlDefaultNpAcl(), RtlFormatCurrentUserKeyPath(), RtlpGetImpersonationToken(), RtlpOpenThreadToken(), RtlRemovePrivileges(), SamrSetSecurityObject(), SepCreateToken(), SepOpenThreadToken(), SetThreadToken(), SetTokenInformation(), SHTestTokenMembership(), and START_TEST().