C:/Web/handle/src/handle.c File Reference

#include "handle.h"

Go to the source code of this file.

Functions

void banner (void)
void EnableDebugPrivilege ()
LPWSTR GetObjectInfo (HANDLE hObject, OBJECT_INFORMATION_CLASS objInfoClass)
DWORD QueryObjectName (HANDLE handle, char *txt)
DWORD WINAPI FilenameFromHandle (PVOID lpParameter)
void process_owner (HANDLE htoken)
DWORD GetOption (LPWSTR lpwsType, LPWSTR lpwsName)
int main (int argc, char *argv[])
DWORD WINAPI GetFileNameThread (void *handle)

Variables

NTQUERYOBJECT NtQueryObject
NTQUERYSYSTEMINFORMATION NtQuerySystemInformation
NTQUERYINFORMATIONPROCESS NtQueryInformationProcess
NTDEVICEIOCONTROLFILE NtDeviceIoControlFile
NTQUERYINFORMATIONTHREAD NtQueryInformationThread
NTQUERYINFORMATIONFILE NtQueryInformationFile
char crap [512]


Function Documentation

void banner ( void   ) 

Definition at line 291 of file handle.c.

void EnableDebugPrivilege (  ) 

Definition at line 298 of file handle.c.

Referenced by main().

DWORD WINAPI FilenameFromHandle ( PVOID  lpParameter  ) 

DWORD WINAPI GetFileNameThread ( void *  handle  ) 

Definition at line 256 of file handle.c.

References crap, and NtQueryInformationFile.

Referenced by QueryObjectName().

LPWSTR GetObjectInfo ( HANDLE  hObject,
OBJECT_INFORMATION_CLASS  objInfoClass 
)

Definition at line 234 of file handle.c.

References _UNICODE_STRING::Buffer, _UNICODE_STRING::Length, NtQueryObject, STATUS_BUFFER_OVERFLOW, STATUS_INFO_LENGTH_MISMATCH, and STATUS_SUCCESS.

Referenced by main().

DWORD GetOption ( LPWSTR  lpwsType,
LPWSTR  lpwsName 
)

Definition at line 28 of file handle.c.

References OBJFILE, OBJPROCESS, OBJTHREAD, OBJTOKEN, and OBJUNKNOWN.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 44 of file handle.c.

References crap, EnableDebugPrivilege(), GetObjectInfo(), GetOption(), _SYSTEM_HANDLE::Handle, _SYSTEM_HANDLE_INFORMATION::Handles, IOCTL_TDI_QUERY_INFORMATION, NtDeviceIoControlFile, NtQueryInformationFile, NtQueryInformationProcess, NtQueryInformationThread, NtQueryObject, NtQuerySystemInformation, ObjectNameInformation, ObjectTypeInformation, OBJFILE, OBJPROCESS, OBJTHREAD, OBJTOKEN, process_owner(), ProcessBasicInformation, QueryObjectName(), STATUS_INFO_LENGTH_MISMATCH, STATUS_SUCCESS, SystemHandleInformation, TDI_QUERY_ADDRESS_INFO, ThreadBasicInformation, _SYSTEM_HANDLE_INFORMATION::uCount, _SYSTEM_HANDLE::uIdProcess, and _PROCESS_BASIC_INFORMATION::UniqueProcessId.

void process_owner ( HANDLE  htoken  ) 

Definition at line 207 of file handle.c.

Referenced by main().

DWORD QueryObjectName ( HANDLE  handle,
char *  txt 
)

Definition at line 267 of file handle.c.

References GetFileNameThread().

Referenced by main().


Variable Documentation

char crap[512]

Definition at line 41 of file handle.c.

Referenced by GetFileNameThread(), and main().

NTDEVICEIOCONTROLFILE NtDeviceIoControlFile

Definition at line 12 of file handle.c.

Referenced by main().

NTQUERYINFORMATIONFILE NtQueryInformationFile

Definition at line 14 of file handle.c.

Referenced by GetFileNameThread(), and main().

NTQUERYINFORMATIONPROCESS NtQueryInformationProcess

Definition at line 11 of file handle.c.

Referenced by main().

NTQUERYINFORMATIONTHREAD NtQueryInformationThread

Definition at line 13 of file handle.c.

Referenced by main().

NTQUERYOBJECT NtQueryObject

Definition at line 9 of file handle.c.

Referenced by GetObjectInfo(), and main().

NTQUERYSYSTEMINFORMATION NtQuerySystemInformation

Definition at line 10 of file handle.c.

Referenced by main().


Generated on Fri Feb 22 14:14:32 2008 for Handle by  doxygen 1.5.4