Files
mirror-processhacker/2.x/trunk/KProcessHacker/include/ex.h
T
wj32 a6b4f20c0c fixed ObpAccessProtectCloseBit value
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3106 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2010-05-08 06:51:03 +00:00

59 lines
1.6 KiB
C

/*
* Process Hacker Driver -
* executive
*
* Copyright (C) 2009 wj32
*
* This file is part of Process Hacker.
*
* Process Hacker is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Process Hacker is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Process Hacker. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _EX_H
#define _EX_H
/* Handles */
typedef struct _HANDLE_TABLE_ENTRY
{
union
{
PVOID Object;
ULONG ObAttributes;
ULONG_PTR Value;
};
union
{
ACCESS_MASK GrantedAccess;
LONG NextFreeTableEntry;
};
} HANDLE_TABLE_ENTRY, *PHANDLE_TABLE_ENTRY;
struct _HANDLE_TABLE;
typedef struct _HANDLE_TABLE HANDLE_TABLE, *PHANDLE_TABLE;
typedef BOOLEAN (NTAPI *PEX_ENUM_HANDLE_CALLBACK)(
__inout struct _HANDLE_TABLE_ENTRY *HandleTableEntry,
__in HANDLE Handle,
__in PVOID Context
);
BOOLEAN NTAPI ExEnumHandleTable(
__in struct _HANDLE_TABLE *HandleTable,
__in PEX_ENUM_HANDLE_CALLBACK EnumHandleProcedure,
__inout PVOID Context,
__out_opt PHANDLE Handle
);
#endif