¡@

Home 

c++ Programming Glossary: ntstatus

How to get list of GDI handles

http://stackoverflow.com/questions/13905661/how-to-get-list-of-gdi-handles

for pure 32 and 64 bit processes typedef NTSTATUS NTAPI _NtQueryInformationProcess IN HANDLE ProcessHandle ULONG.. OUT PULONG ReturnLength OPTIONAL typedef NTSTATUS NTAPI _NtReadVirtualMemory IN HANDLE ProcessHandle IN PVOID.. for 32 bit process on WOW64 typedef NTSTATUS NTAPI _NtWow64ReadVirtualMemory64 IN HANDLE ProcessHandle IN..

Windows 7 timing functions - How to use GetSystemTimeAdjustment correctly?

http://stackoverflow.com/questions/7685762/windows-7-timing-functions-how-to-use-getsystemtimeadjustment-correctly

A first estimate is provided by the hidden API call NTSTATUS NtQueryTimerResolution OUT PULONGMinimumResolution OUT LONGMaximumResolution.. The ActualResolution can be set by using the API call NTSTATUS NtSetTimerResolution IN ULONGRequestedResolution IN BOOLEANSet..

Determine path to registry key from HKEY handle in C++

http://stackoverflow.com/questions/937044/determine-path-to-registry-key-from-hkey-handle-in-c

snippet. #include windows.h #include string typedef LONG NTSTATUS #ifndef STATUS_SUCCESS #define STATUS_SUCCESS NTSTATUS 0x00000000L.. NTSTATUS #ifndef STATUS_SUCCESS #define STATUS_SUCCESS NTSTATUS 0x00000000L #endif #ifndef STATUS_BUFFER_TOO_SMALL #define STATUS_BUFFER_TOO_SMALL.. STATUS_BUFFER_TOO_SMALL #define STATUS_BUFFER_TOO_SMALL NTSTATUS 0xC0000023L #endif std wstring GetKeyPathFromKKEY HKEY key std..