Lines Matching refs:handle
15 // that can be generated when handle tracing is enabled.
16 NTSTATUS QueryObjectTypeInformation(HANDLE handle,
25 status = QueryObject(handle, ObjectTypeInformation, buffer, *size, size);
56 // Grab all the handle names.
92 HANDLE handle = NULL;
99 reinterpret_cast<size_t&>(handle) += kHandleOffset;
104 rc = QueryObjectTypeInformation(handle, type_info, &size);
110 rc = QueryObjectTypeInformation(handle, type_info, &size);
123 // Check if we're looking for this type of handle.
130 // Move on to the next handle if this name doesn't match.
131 if (!GetHandleName(handle, &handle_name) || !names.count(handle_name))
135 if (!::SetHandleInformation(handle, HANDLE_FLAG_PROTECT_FROM_CLOSE, 0))
137 if (!::CloseHandle(handle))