Tools
qdbug.txt
Associated article: The Win32 Debug API
Tags: .NET Tools
Published source code accompanying the article by Fritz Lowrey in which he examines the Win32 Debug API, a set of functions that provides a number of useful tools for both the debugger and the debugged. Since these functions are supported by the operating system, it doesn't matter whether the program being debugged has been compiled or optimized in Debug or Release mode, nor does it make any difference what language or tool you opt to use. Also see QDBUG.ZIP.
The Win32 Debug API
by Fritz Lowery
Listing One
// Get token for this process
HANDLE token;
if(OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &token) == false)
{
printf("OpenProcessToken Failed: 0x%Xn", GetLastError());
exit(-1);
}
//Get LUID for ...


