source: trunk/eraser6/Eraser.Unlocker/NTApi.h @ 1200

Revision 1200, 1.3 KB checked in by lowjoel, 5 years ago (diff)

Depend more on the Windows SDK to provide the necessary declarations.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
RevLine 
[1065]1/*
2 * $Id$
3 * Copyright 2008 The Eraser Project
4 * Original Author: Joel Low <lowjoel@users.sourceforge.net>
5 * Modified By:
6 *
7 * This file is part of Eraser.
8 *
9 * Eraser is free software: you can redistribute it and/or modify it under the
10 * terms of the GNU General Public License as published by the Free Software
11 * Foundation, either version 3 of the License, or (at your option) any later
12 * version.
13 *
14 * Eraser is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 *
18 * A copy of the GNU General Public License can be found at
19 * <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
[1200]23#include <winternl.h>
[1065]24
25typedef struct _SYSTEM_HANDLE_INFORMATION {
26    ULONG  ProcessId;
27    UCHAR  ObjectTypeNumber;
28    UCHAR  Flags;
29    USHORT  Handle;
30    PVOID  Object;
31    ACCESS_MASK  GrantedAccess;
32} SYSTEM_HANDLE_INFORMATION, *PSYSTEM_HANDLE_INFORMATION;
33
34typedef struct _SYSTEM_HANDLES {
35    ULONG NumberOfHandles;
36    SYSTEM_HANDLE_INFORMATION Information[1];
37} SYSTEM_HANDLES, *PSYSTEM_HANDLES;
38
[1200]39const int SystemHandleInformation = 16;
40const int ObjectNameInformation = 1;
41const int ObjectAllTypesInformation = 3;
42const int ObjectHandleInformation = 4;
Note: See TracBrowser for help on using the repository browser.