|
ReactOS 0.4.17-dev-444-g71ee754
|
#include <ntoskrnl.h>#include <debug.h>
Go to the source code of this file.
Macros | |
| #define | NDEBUG |
Variables | |
| PHANDLE_TABLE | ObpKernelHandleTable = NULL |
| #define NDEBUG |
Definition at line 17 of file obhandle.c.
Definition at line 3411 of file obhandle.c.
Referenced by _At_(), _main(), _tmain(), AccessCheckEmptyMappingTest(), AccessGrantedMultipleObjectsTests(), AccessGrantedNoDaclTests(), AccessGrantedTests(), AccpCloseObjectHandle(), add_boot_rename_entry(), AddCodepageToRegistry(), AddFontsSettingsToRegistry(), AddHotkeySettings(), AddKbLayoutsToRegistry(), AddVolumeToList(), AfdBind(), AfdConnect(), AfdGetInformation(), AfdSend(), AfdSendTo(), AfdSetInformation(), alloc_console(), AllocConsole(), AssignDriveLetter(), AssignNextDriveLetter(), BaseComputeProcessDllPath(), BaseGetNamedObjectDirectory(), BaseInitializeStaticServerData(), BasepCopyFileExW(), BasepIsProcessAllowed(), BasepMapFile(), BasepMoveFileDelayed(), BasepNotifyTrackingService(), BasepOpenFileForMove(), BasepSxsCloseHandles(), BaseSrvCleanupVDMResources(), BaseSrvCreatePairWaitHandles(), BaseSrvDestroyConsoleRecord(), BaseSrvDestroyPairWaitHandles(), BaseSrvIsVdmAllowed(), Beep(), CabinetExtractFile(), CallApphelpWithImage(), CallCacheControl(), check_boot_options(), CheckForGlobalDriveLetter(), CheckTokenMembership(), clean_main(), ClientThread(), CloseCabinet(), CloseDefaultKeys(), CloseDevice(), CloseHandle(), CloseIniBootLoaderStore(), closeTcpFile(), CmGetSystemDriverList(), CmInitSystem1(), CmpCreateControlSet(), CmpCreateHardwareProfile(), CmpInitializeHardwareConfiguration(), CmpInitializeMachineDependentConfiguration(), CmpInitializeRegistryNode(), CmpSetSystemValues(), CmpSetupConfigurationTree(), CmpSetVersionData(), CommandDumpSector(), CommandPartInfo(), CON_API(), ConCfgOpenUserSettings(), ConDrvDeinitInputBuffer(), ConnectConsole(), ConnectRegistry(), ConSrvDeleteConsole(), ConSrvInitConsole(), ConvertNtPathToWin32Path(), create_classes_root_hkey(), create_key(), create_pseudo_console(), create_registry_key(), create_special_root_hkey(), CreateBaseAcls(), CreateContext(), CreateDirectoryExW(), CreateDirectoryW(), CreateDisk(), CreateHardLinkW(), CreateIoCompletionPort(), CreateKeyTest(), CreateNestedKey(), CreatePartitionList(), CreatePipe(), CreateProcessAsUserCommon(), CreateProcessInternalW(), CreatePseudoConsole(), CreateRegistryFile(), CreateRemoteThread(), CreateRemoteThreadEx(), CreateSymbolicLinkW(), CreateSymLinkKey(), CreateWindowStationW(), CSR_API(), CsrApiPortInitialize(), CsrCreateRemoteThread(), CsrGetProcessLuid(), CsrpCheckRequestThreads(), CsrpConnectToServer(), CsrProcessRefcountZero(), CsrSbApiRequestThread(), CsrSetProcessSecurity(), CsrSrvCreateSharedSection(), CsrThreadRefcountZero(), DbgUiIssueRemoteBreakin(), DebugActiveProcess(), DebugActiveProcessStop(), DefineDosDeviceW(), DeleteDriveLetter(), DeleteFileW(), DeleteKeyTest(), DeleteSymLinkKey(), DeleteValueTest(), DenyAccessTests(), DestroyProtoHive(), DisablePredefinedHandleTableInternal(), DismountVolume(), do_enumeratekey(), DoesPathExist_UStr(), DumpDisk(), DumpPartition(), DumpRegistryData(), enum_modules64(), EnumerateKeyTest(), EnumerateValueTest(), ExpandSymbolicLink(), ExpCreateSystemRootLink(), ExpInitializeCallbacks(), Ext2CloseDevice(), FindClose(), FindFirstChangeNotificationW(), FindFirstFileExW(), FindFirstStreamW(), FindNTOSInstallations(), FormatEx2(), FreeConsole(), get_file_id(), get_manifest_in_associated_manifest(), get_manifest_in_manifest_file(), get_manifest_in_pe_file(), get_perflib_key(), get_proc_address64(), get_registry_locale_info(), get_system_root(), GetAutomountState(), GetCallerLuid(), GetCompressedFileSizeW(), GetComputerIdentifier(), GetComputerNameFromRegistry(), GetConsoleIMECommandLine(), GetCPFileNameFromRegistry(), GetDeviceInfo_UStr(), GetDiskFreeSpaceExW(), GetDiskFreeSpaceW(), GetDisplayIdentifier(), GetDllList(), GetDosDevicesProtection(), GetDriveTypeW(), GetFileSecurityW(), GetFileSystem(), GetFileSystemName_UStr(), GetLogicalDrives(), GetNTObjectSymbolicLinkTarget(), GetRegInt(), GetSocketInformation(), GetSourcePaths(), GetTempFileNameW(), GetTimeouts(), GetToken(), GetTokenProcess(), GetUserGeoID(), GetVolumeInformationW(), GetVolumeNameForRoot(), GetVolumePathNameW(), GrantedAccessTests(), GRAPHICS_BUFFER_Destroy(), GRAPHICS_BUFFER_Initialize(), GuiApplyUserSettings(), GuiConsoleShowConsoleProperties(), GuiDeinitFrontEnd(), GuiInit(), GuiInitFrontEnd(), IcmpCloseHandle(), ImpersonateLoggedOnUser(), InferFileSystem(), InfOpenFile(), InfWriteFile(), IniCacheLoad(), IniCacheSave(), InitFunctionPtrs(), InitializeFmIfsOnce(), InitializeUserModePnpManager(), InitLogPort(), InitVolumeDeviceName(), InstallBootCodeToDisk(), InstallBootCodeToFile(), InstallBootManagerAndBootEntries(), InstallDevice(), InstallDriver(), InstallSetupInfFile(), IntAllocConsole(), IntAttachConsole(), IntGetCodePageEntry(), IntIsLogOnSession(), IopCreateRootDirectories(), IopInitializePlugPlayServices(), IopMarkBootPartition(), is_mounted_multi_device(), IsAcpiComputer(), IsShimInfrastructureDisabled(), IsThisARootDirectory(), IsValidLanguageGroup(), IsValidNTOSInstallation(), JapaneseEra_IsFirstYearGannen(), JapaneseEra_Load(), keyed_event_thread(), KsecOpenDevice(), LdrOpenImageFileOptionsKey(), LdrpCheckForKnownDll(), LdrpCheckForLoadedDll(), LdrpCreateDllSection(), LdrpDisableProcessCompatGuidDetection(), LdrpInitializeProcess(), LdrpMapDll(), LdrQueryImageFileExecutionOptionsEx(), LdrVerifyImageMatchesChecksum(), ListDirectory(), LoadModule(), LoadSymbolsRoutine(), LOCALE_InitRegistry(), LogfBackupFile(), LogfClose(), LogfCreate(), lookup_assembly(), lookup_winsxs(), LsaConnectUntrusted(), LsapAddNotification(), LsapCheckLogonProcess(), LsapCloseDbObject(), LsapCloseLsaPort(), LsapCreateDatabaseKeys(), LsapCreateDbObject(), LsapDeleteDbObject(), LsapDeregisterLogonProcess(), LsapEnumLogonSessions(), LsapGetLogonSessionData(), LsapGetObjectAttribute(), LsapIsDatabaseInstalled(), LsapIsTrustedClient(), LsapLogonUser(), LsapOpenDbObject(), LsapRegCloseKey(), LsapRegDeleteSubKey(), LsapRemoveNotification(), LsapSetObjectAttribute(), LsarSetSecurityObject(), main(), MapFile(), MountVolume(), MoveFileWithProgressW(), MsafdUpdateConnectionContext(), MyDeleteFile(), NetpGetClientLogonId(), NetUserChangePassword(), NLS_EnumLanguageGroupLocales(), NLS_EnumSystemLanguageGroups(), NlsInit(), NlsUninit(), NtQueryOpenSubKeys(), ObDuplicateObject(), ObInitSystem(), ObpCreateDosDevicesDirectory(), open_cross_process_connection(), open_key(), open_subkey(), open_wow6432node_parent(), OpenAndMapFile(), OpenBootStore_UStr(), OpenFile(), OpenIniBootLoaderStore(), OpenWindowStationW(), nt_handle::operator=(), ParamsValidationTests(), ParamValidationNoObjsList(), parse_file(), Phase1InitializationDiscard(), PipGetDriverTagPriority(), PortThreadRoutine(), PrintProcess(), PrintThreads(), PrivMoveFileIdentityW(), ProcessDisplayRegistry(), ProcessIdToSessionId(), ProcessLocaleRegistry(), ProfileLoopFunction(), QueryDeviceInformation(), QueryDosDeviceW(), QueryDosVolumeNameForNtDeviceName(), QueryTokenImpersonationTests(), QueryTokenIsSandboxInert(), QueryTokenPrivilegesAndGroupsTests(), QueryTokenRestrictedSidsTest(), read_nt_symlink(), ReadBlock(), ReadBootCodeFromFile(), RegCleanupRegistry(), RegCloseKey(), RegCopyTreeW(), RegDeleteKeyExW(), RegInitializeRegistry(), RegisterUncProvider(), registry_callback(), RegOverridePredefKey(), RegpCopyTree(), RegReplaceKeyW(), RegRestoreKeyW(), RegSaveKeyW(), RegSetKeyValueA(), RegSetKeyValueW(), RemapPredefinedHandleInternal(), RemoveDirectoryW(), ReplaceFileW(), resolve_symlink(), ResolveArcNameNtSymLink(), RSetServiceObjectSecurity(), RtlCreateActivationContext(), RtlCreateTimerQueue(), RtlCreateUserSecurityObject(), RtlCreateUserThread(), RtlDefaultNpAcl(), RtlDeleteCriticalSection(), RtlDeleteResource(), RtlDeleteTimer(), RtlDeleteTimerQueueEx(), RtlDeregisterWaitEx(), RtlImpersonateSelf(), RtlInitializeRXact(), RtlNewSecurityGrantedAccess(), RtlpCloseKeyedEvent(), RtlpExecuteIoWorkItem(), RtlpExecuteWorkItem(), RtlpIoWorkerThreadProc(), RtlpIsIoPending(), RtlpStartWorkerThread(), RtlQueryRegistryValues(), RtlQueueWorkItem(), RtlRegisterWait(), RtlReleaseRelativeName(), RtlSetCurrentDirectory_U(), RtlSetIoCompletionCallback(), RXactpCommit(), SampRegCloseKey(), SampRegDeleteKey(), SamrSetSecurityObject(), SaveBootSector(), ScmCheckDriver(), ScmConvertToBootPathName(), ScmGetDriverStatus(), ScrubAutomount(), SdbCloseDatabase(), SdbDeletePermLayerKeys(), SdbpCloseMemMappedFile(), SdbpGetPermLayersInternal(), SdbpOpenMemMappedFile(), SdbRegisterDatabaseEx(), SdbSetPermLayerKeys(), SdbUnregisterDatabase(), ServerThread(), SetActiveComputerNameToRegistry(), SetAutomountState(), SetComputerNameToRegistry(), SetDefaultPagefile(), SetFileAttributesW(), SetFileSecurityW(), SetGeoID(), SetLocaleInfoW(), SetMountedDeviceValue(), SetRosSpecificInfo(), SetSocketInformation(), SetupCopyFile(), SetupCreateSingleDirectory(), SetupDeleteFile(), SetupMoveFile(), SetUserGeoID(), SetValueTest1(), SetValueTest2(), SetVolumeLabelW(), SmExecPgm(), SmExecuteProgram(), SmLookupSubsystem(), SmpAcquirePrivilege(), SmpConfigureObjectDirectories(), SmpCreateDynamicEnvironmentVariables(), SmpCreateVolumeDescriptors(), SmpDeletePagingFile(), SmpDereferenceSubsystem(), SmpExecPgm(), SmpExecuteImage(), SmpExecuteInitialCommand(), SmpGetPagingFileSize(), SmpGetVolumeFreeSpace(), SmpHandleConnectionRequest(), SmpInit(), SmpInitializeDosDevices(), SmpInitializeKnownDllsInternal(), SmpLoadDataFromRegistry(), SmpLoadSubSystem(), SmpProcessFileRenames(), SmpQueryRegistrySosOption(), SmpReleasePrivilege(), SmpSbCreateSession(), SmpStartCsr(), SmpTranslateSystemPartitionInformation(), SockCreateOrReferenceAsyncThread(), SpeakerCleanup(), start_debugger(), START_TEST(), StartAuthenticationPort(), subtest_empty_name_pipe_operations(), subtest_pipe_name(), subtest_query_process_debug_port_custom_dacl(), TerminateUserModePnpManager(), test1(), test2(), test3(), test5(), test6(), test7(), test9(), Test_ApphelpCheckRunApp(), test_completion_port_scheduling(), test_debuggee_dbgport(), Test_Device_StorDeviceNumber(), Test_EmptyFile(), test_exception_dispatcher(), test_image_mappings(), Test_ImageSection(), test_init_block(), test_keyed_events(), Test_KeyFullInformation(), Test_KeyNameInformation(), test_mutant(), test_notifications(), test_nt_names(), test_nt_wow64(), test_NtAllocateReserveObject(), test_NtMapViewOfSection(), test_NtMapViewOfSectionEx(), test_NtOpenKey(), test_object_permanence(), Test_Other(), Test_PageFileSection(), test_perflib_key(), test_query_image_information(), test_query_process(), test_query_process_debug_object_handle(), test_query_region_information(), Test_RawSize(), Test_recv(), Test_SectionBasicInformation(), Test_SectionContents(), test_semaphore(), test_syscalls(), Test_ThreadHideFromDebuggerClass(), Test_ThreadNameInformation(), test_tp_multi_wait(), TestCreateOpen_(), TestSend(), TestSendTo(), TestTcp(), TestUdp(), TH32CreateSnapshotSectionInitialize(), timer_queue_thread_proc(), tp_ioqueue_lock(), tp_new_worker_thread(), tp_timerqueue_lock(), tp_waitqueue_lock(), UnhandledExceptionFilter(), UnMapFile(), UserpFormatMessages(), VfatFormat(), VfatxFormat(), wait_pipe(), Wait_thread_proc(), WaitNamedPipeW(), waitqueue_thread_proc(), WinExec(), WriteGptPartitions(), WriteMbrPartitions(), WritePartitions(), WSPAccept(), WSPBind(), WSPCloseSocket(), WSPConnect(), WSPDuplicateSocket(), WSPEnumNetworkEvents(), WSPEventSelect(), WSPGetPeerName(), WSPGetSockName(), WSPListen(), WSPRecv(), WSPRecvFrom(), WSPSelect(), WSPSend(), WSPSendTo(), WSPShutdown(), WSPSocket(), CEnumNTDirectory::~CEnumNTDirectory(), mountmgr::~mountmgr(), and nt_handle::~nt_handle().
| NTSTATUS NTAPI NtDuplicateObject | ( | IN HANDLE | SourceProcessHandle, |
| IN HANDLE | SourceHandle, | ||
| IN HANDLE TargetProcessHandle | OPTIONAL, | ||
| OUT PHANDLE TargetHandle | OPTIONAL, | ||
| IN ACCESS_MASK | DesiredAccess, | ||
| IN ULONG | HandleAttributes, | ||
| IN ULONG | Options | ||
| ) |
Definition at line 3419 of file obhandle.c.
Referenced by BaseSrvCreatePairWaitHandles(), BaseSrvDestroyPairWaitHandles(), ConSrvAllocateConsole(), ConSrvInheritConsole(), CSR_API(), CsrCreateRemoteThread(), DuplicateHandle(), GRAPHICS_BUFFER_Destroy(), GRAPHICS_BUFFER_Initialize(), GuiApplyUserSettings(), GuiConsoleShowConsoleProperties(), GuiInit(), LsapAddNotification(), LsapLogonUser(), RemapPredefinedHandleInternal(), RtlpIoWorkerThreadProc(), RtlpIsIoPending(), SmpExecPgm(), SmpExecuteInitialCommand(), SmpLoadSubSystem(), SmpSbCreateSession(), START_TEST(), and StuffStdHandle().
Definition at line 2030 of file obhandle.c.
Referenced by NtTerminateProcess(), and PspTerminateProcess().
Definition at line 3388 of file obhandle.c.
Referenced by _IRQL_requires_max_(), CheckDirectorySecurity__(), CheckKeySecurity__(), CmpAddToHiveFileList(), CmpLinkKeyToHive(), CmpRemoveFromHiveFileList(), DbgkCreateThread(), DbgkMapViewOfSection(), DbgkpFreeDebugEvent(), DbgkpOpenHandles(), DbgkpPostFakeModuleMessages(), DbgkpPostFakeThreadMessages(), DisplayBootBitmap(), ExitThreadCallback(), ExpCreateSystemRootLink(), ExpCreateWorkerThread(), ExpInitializeWorkerThreads(), ExpInitNls(), InitThreadCallback(), IntCopyRegistryKey(), IntCreateDesktop(), IntCreateNewRegistryPath(), IntResolveDesktop(), IntSetupDeviceSettingsKey(), IntVideoPortInbvCleanup(), IoCreateController(), IoCreateDevice(), IoCreateStreamFileObjectEx(), IopDetectResourceConflict(), IopOpenLinkOrRenameTarget(), IopReassignSystemRoot(), IopStoreSystemPartitionInformation(), KernelModeTest(), KmtStartThread(), LpcpCreatePort(), MmCreatePhysicalMemorySection(), NotificationCallback(), NtLoadKeyEx(), NtQueryInformationProcess(), NtSaveKeyEx(), NtSaveMergedKeys(), NtSecureConnectPort(), NtSetDefaultLocale(), NtSetInformationFile(), NtUnloadKey2(), NtUserCloseDesktop(), NtUserCloseWindowStation(), NtUserResolveDesktop(), PnpRootCreateDevice(), PspCreateProcess(), PspCreateThread(), PspExitThread(), PspInitPhase0(), RawInputThreadMain(), RunTest(), ScrInbvCleanup(), SepOpenThreadToken(), SepRmCommandServerThread(), SepRmCommandServerThreadInit(), SeRmInitPhase1(), START_TEST(), TestAllInformation(), TestConnect(), TestCreateNamedPipe(), TestDuplicate(), TestIoCreateFile(), TestObRootSecurity(), TestPhysicalMemorySection(), TestReadWrite(), TestRelativeNames(), TestSharedCacheMap(), UserModeTest(), and UserSetProcessWindowStation().
Definition at line 48 of file obhandle.c.
Referenced by ObClearProcessHandleTable(), ObDuplicateObject(), ObFindHandleForObject(), ObGetProcessHandleCount(), and ObInitProcess().
| NTSTATUS NTAPI ObDuplicateObject | ( | IN PEPROCESS | SourceProcess, |
| IN HANDLE | SourceHandle, | ||
| IN PEPROCESS TargetProcess | OPTIONAL, | ||
| IN PHANDLE TargetHandle | OPTIONAL, | ||
| IN ACCESS_MASK | DesiredAccess, | ||
| IN ULONG | HandleAttributes, | ||
| IN ULONG | Options, | ||
| IN KPROCESSOR_MODE | PreviousMode | ||
| ) |
Definition at line 2207 of file obhandle.c.
Referenced by DbgkpOpenHandles(), and NtDuplicateObject().
| BOOLEAN NTAPI ObFindHandleForObject | ( | IN PEPROCESS | Process, |
| IN PVOID | Object, | ||
| IN POBJECT_TYPE | ObjectType, | ||
| IN POBJECT_HANDLE_INFORMATION | HandleInformation, | ||
| OUT PHANDLE | Handle | ||
| ) |
Definition at line 2859 of file obhandle.c.
Referenced by IntGetDesktopObjectHandle(), and IntResolveDesktop().
Definition at line 56 of file obhandle.c.
Referenced by ExpQuerySystemProcessInformation(), and NtQueryInformationProcess().
Definition at line 2093 of file obhandle.c.
Referenced by PspCreateProcess().
| NTSTATUS NTAPI ObInsertObject | ( | IN PVOID | Object, |
| IN PACCESS_STATE AccessState | OPTIONAL, | ||
| IN ACCESS_MASK | DesiredAccess, | ||
| IN ULONG | ObjectPointerBias, | ||
| OUT PVOID *NewObject | OPTIONAL, | ||
| OUT PHANDLE | Handle | ||
| ) |
Definition at line 2938 of file obhandle.c.
Referenced by _IRQL_requires_max_(), CmpCreateRegistryRoot(), CreateClientPort(), ExCreateCallback(), HalpDmaAllocateChildAdapter(), IntCreateWindowStation(), IoCreateController(), IoCreateDevice(), IoCreateDriver(), IoCreateStreamFileObjectEx(), IopInitializeDriverModule(), LpcpCreatePort(), MmCreatePhysicalMemorySection(), NtCreateDebugObject(), NtCreateDirectoryObject(), NtCreateEvent(), NtCreateEventPair(), NtCreateIoCompletion(), NtCreateJobObject(), NtCreateMutant(), NtCreateProfile(), NtCreateSection(), NtCreateSemaphore(), NtCreateSymbolicLinkObject(), NtCreateTimer(), NtDuplicateToken(), NtFilterToken(), NtSecureConnectPort(), ObtCreateObjects(), PspCreateProcess(), PspCreateThread(), SeFilterToken(), SepCreateToken(), SepInitializationPhase1(), SepOpenThreadToken(), and SeSubProcessToken().
Definition at line 3534 of file obhandle.c.
Definition at line 2163 of file obhandle.c.
Referenced by PspDeleteProcess(), and PspExitThread().
| NTSTATUS NTAPI ObOpenObjectByName | ( | IN POBJECT_ATTRIBUTES | ObjectAttributes, |
| IN POBJECT_TYPE | ObjectType, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| IN PACCESS_STATE | PassedAccessState, | ||
| IN ACCESS_MASK | DesiredAccess, | ||
| IN OUT PVOID | ParseContext, | ||
| OUT PHANDLE | Handle | ||
| ) |
Definition at line 2535 of file obhandle.c.
Referenced by CmLoadKey(), CmpLinkHiveToMaster(), CreateGreenFdo(), ExCreateCallback(), GetObjectType(), IntCreateDesktop(), IntCreateWindowStation(), IntResolveDesktop(), IoFastQueryNetworkAttributes(), IopCreateFile(), IopQueryAttributesFile(), NtCreateKey(), NtDeleteFile(), NtOpenDirectoryObject(), NtOpenEvent(), NtOpenEventPair(), NtOpenIoCompletion(), NtOpenJobObject(), NtOpenKey(), NtOpenMutant(), NtOpenProcess(), NtOpenSection(), NtOpenSemaphore(), NtOpenSymbolicLinkObject(), NtOpenThread(), NtOpenTimer(), NtQueryOpenSubKeys(), NtUnloadKey2(), NtUserOpenDesktop(), NtUserOpenWindowStation(), ObtCreateObjectTypes(), and START_TEST().
| NTSTATUS NTAPI ObOpenObjectByPointer | ( | IN PVOID | Object, |
| IN ULONG | HandleAttributes, | ||
| IN PACCESS_STATE | PassedAccessState, | ||
| IN ACCESS_MASK | DesiredAccess, | ||
| IN POBJECT_TYPE | ObjectType, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| OUT PHANDLE | Handle | ||
| ) |
Definition at line 2745 of file obhandle.c.
Referenced by AfdBindSocket(), CheckSection_(), CmpConvertHandleToKernelHandle(), DbgkOpenProcessDebugPort(), DbgkpOpenHandles(), IntGetDesktopObjectHandle(), IntResolveDesktop(), NtOpenProcess(), NtOpenProcessTokenEx(), NtOpenThread(), RawInputThreadMain(), SepOpenThreadToken(), SerenumDetectLegacyDevice(), SerenumDetectPnpDevice(), SermouseDetectLegacyDevice(), START_TEST(), UserOpenInputDesktop(), and WmipOpenGuidObject().
| NTSTATUS NTAPI ObpChargeQuotaForObject | ( | IN POBJECT_HEADER | ObjectHeader, |
| IN POBJECT_TYPE | ObjectType, | ||
| OUT PBOOLEAN | NewObject | ||
| ) |
Definition at line 431 of file obhandle.c.
Referenced by ObInsertObject(), ObpIncrementHandleCount(), and ObpIncrementUnnamedHandleCount().
Definition at line 1730 of file obhandle.c.
Referenced by NtClose(), and ObCloseHandle().
| BOOLEAN NTAPI ObpCloseHandleCallback | ( | IN PHANDLE_TABLE_ENTRY | HandleTableEntry, |
| IN HANDLE | Handle, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 1927 of file obhandle.c.
Referenced by ObClearProcessHandleTable(), and ObKillProcess().
| NTSTATUS NTAPI ObpCloseHandleTableEntry | ( | IN PHANDLE_TABLE | HandleTable, |
| IN PHANDLE_TABLE_ENTRY | HandleEntry, | ||
| IN HANDLE | Handle, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| IN BOOLEAN | IgnoreHandleProtection | ||
| ) |
Definition at line 685 of file obhandle.c.
Referenced by ObpCloseHandle(), and ObpCloseHandleCallback().
| NTSTATUS NTAPI ObpCreateHandle | ( | IN OB_OPEN_REASON | OpenReason, |
| IN PVOID | Object, | ||
| IN POBJECT_TYPE Type | OPTIONAL, | ||
| IN PACCESS_STATE | AccessState, | ||
| IN ULONG | AdditionalReferences, | ||
| IN ULONG | HandleAttributes, | ||
| IN POBP_LOOKUP_CONTEXT | Context, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| OUT PVOID * | ReturnedObject, | ||
| OUT PHANDLE | ReturnedHandle | ||
| ) |
Definition at line 1497 of file obhandle.c.
Referenced by ObInsertObject(), ObOpenObjectByName(), and ObOpenObjectByPointer().
| NTSTATUS NTAPI ObpCreateUnnamedHandle | ( | IN PVOID | Object, |
| IN ACCESS_MASK | DesiredAccess, | ||
| IN ULONG | AdditionalReferences, | ||
| IN ULONG | HandleAttributes, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| OUT PVOID * | ReturnedObject, | ||
| OUT PHANDLE | ReturnedHandle | ||
| ) |
Definition at line 1312 of file obhandle.c.
Referenced by ObInsertObject().
| VOID NTAPI ObpDecrementHandleCount | ( | IN PVOID | ObjectBody, |
| IN PEPROCESS | Process, | ||
| IN ACCESS_MASK | GrantedAccess, | ||
| IN POBJECT_TYPE | ObjectType | ||
| ) |
Definition at line 530 of file obhandle.c.
Referenced by ObDuplicateObject(), ObpCloseHandleTableEntry(), ObpCreateHandle(), and ObpCreateUnnamedHandle().
| BOOLEAN NTAPI ObpDuplicateHandleCallback | ( | IN PEPROCESS | Process, |
| IN PHANDLE_TABLE | HandleTable, | ||
| IN PHANDLE_TABLE_ENTRY | OldEntry, | ||
| IN PHANDLE_TABLE_ENTRY | HandleTableEntry | ||
| ) |
Definition at line 1963 of file obhandle.c.
Referenced by ObInitProcess().
| BOOLEAN NTAPI ObpEnumFindHandleProcedure | ( | IN PHANDLE_TABLE_ENTRY | HandleEntry, |
| IN HANDLE | Handle, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 211 of file obhandle.c.
Referenced by ObFindHandleForObject().
| NTSTATUS NTAPI ObpIncrementHandleCount | ( | IN PVOID | Object, |
| IN PACCESS_STATE AccessState | OPTIONAL, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| IN ULONG | HandleAttributes, | ||
| IN PEPROCESS | Process, | ||
| IN OB_OPEN_REASON | OpenReason | ||
| ) |
Definition at line 811 of file obhandle.c.
Referenced by ObDuplicateObject(), ObpCreateHandle(), and ObpDuplicateHandleCallback().
| NTSTATUS NTAPI ObpIncrementHandleDataBase | ( | IN POBJECT_HEADER | ObjectHeader, |
| IN PEPROCESS | Process, | ||
| IN OUT PULONG | NewProcessHandleCount | ||
| ) |
Definition at line 333 of file obhandle.c.
Referenced by ObpIncrementHandleCount(), and ObpIncrementUnnamedHandleCount().
| NTSTATUS NTAPI ObpIncrementUnnamedHandleCount | ( | IN PVOID | Object, |
| IN PACCESS_MASK | DesiredAccess, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| IN ULONG | HandleAttributes, | ||
| IN PEPROCESS | Process | ||
| ) |
Definition at line 1090 of file obhandle.c.
Referenced by ObpCreateUnnamedHandle().
| POBJECT_HANDLE_COUNT_ENTRY NTAPI ObpInsertHandleCount | ( | IN POBJECT_HEADER | ObjectHeader | ) |
Definition at line 259 of file obhandle.c.
Referenced by ObpIncrementHandleDataBase().
| NTSTATUS NTAPI ObpReferenceProcessObjectByHandle | ( | IN HANDLE | Handle, |
| IN PEPROCESS | Process, | ||
| IN PHANDLE_TABLE | HandleTable, | ||
| IN KPROCESSOR_MODE | AccessMode, | ||
| OUT PVOID * | Object, | ||
| OUT POBJECT_HANDLE_INFORMATION | HandleInformation, | ||
| OUT PACCESS_MASK | AuditMask | ||
| ) |
Definition at line 85 of file obhandle.c.
Referenced by ObDuplicateObject().
|
static |
Internal callback used by ObSetHandleAttributes(). Updates the attributes of a handle given by its handle table entry.
This routine sets or clears the OBJ_INHERIT attribute and the internal close-protection bit corresponding to the protect-from-close handle attribute.
| [in,out] | HandleTableEntry | Pointer to an entry in a process' handle table, representing the handle whose attributes are to be modified. |
| [in] | Context | Pointer-sized value to an OBP_SET_HANDLE_ATTRIBUTES_CONTEXT structure, that supplies the requested handle attribute values and the caller mode captured by ObSetHandleAttributes(). |
PEX_CHANGE_HANDLE_CALLBACK). It updates per-handle state rather than the underlying object. Requests to make a handle inheritable fail if the target object type does not permit the OBJ_INHERIT attribute. Definition at line 1872 of file obhandle.c.
Referenced by ObSetHandleAttributes().
| NTSTATUS NTAPI ObpValidateAccessMask | ( | IN PACCESS_STATE | AccessState | ) |
Definition at line 488 of file obhandle.c.
Referenced by ObInsertObject(), and ObOpenObjectByName().
| PHANDLE_TABLE NTAPI ObReferenceProcessHandleTable | ( | IN PEPROCESS | Process | ) |
Definition at line 26 of file obhandle.c.
Referenced by ObClearProcessHandleTable(), ObDuplicateObject(), ObFindHandleForObject(), ObGetProcessHandleCount(), and ObInitProcess().
| NTSTATUS NTAPI ObSetHandleAttributes | ( | _In_ HANDLE | Handle, |
| _In_ POBJECT_HANDLE_ATTRIBUTE_INFORMATION | HandleFlags, | ||
| _In_ KPROCESSOR_MODE | PreviousMode | ||
| ) |
Sets the attributes (inheritable and protect-from-close) of an existing object handle.
| [in] | Handle | Handle whose attributes are to be modified. |
| [in] | HandleFlags | Pointer to an OBJECT_HANDLE_ATTRIBUTE_INFORMATION structure specifying the new values for the handle's inherit and protect-from-close attributes. |
| [in] | PreviousMode | Processor mode of the original caller. This is used to determine whether Handle may refer to a kernel handle. |
OBJ_INHERIT attribute. Definition at line 3318 of file obhandle.c.
Referenced by NtSetInformationObject().
| PHANDLE_TABLE ObpKernelHandleTable = NULL |
Definition at line 20 of file obhandle.c.
Referenced by NtWaitForMultipleObjects(), ObInitSystem(), ObpCloseHandle(), ObpCreateHandle(), ObpCreateUnnamedHandle(), ObpReferenceProcessObjectByHandle(), ObQueryObjectAuditingByHandle(), ObReferenceFileObjectForWrite(), ObReferenceObjectByHandle(), and ObSetHandleAttributes().