Home | History | Annotate | Download | only in find_lock

Lines Matching refs:HANDLE

86     HANDLE UniqueProcess;

87 HANDLE UniqueThread;
150 typedef DWORD (WINAPI *NtQueryInformationFileFuncPtr)(HANDLE, PVOID, PVOID, DWORD, DWORD);
151 typedef DWORD (WINAPI *NtQueryObjectFuncPtr)(HANDLE, DWORD, VOID*, DWORD, VOID*);
187 HANDLE tokenH;
239 static bool getHandleType(HANDLE h, CString *type) {
278 static char isFileHandleType(HANDLE handle) {
282 int status = sNtQueryObjectFunc(handle, 2, NULL, 0, &size);
286 status = sNtQueryObjectFunc(handle, 2, buf, size, NULL);
315 HANDLE handle;
329 DWORD status = sNtQueryInformationFileFunc(info->handle, iob, buf, sizeof(buf), 9);
338 // We can't handle wide Unicode. What we do is convert it into
361 static bool getFileName(HANDLE handle, CString *outStr) {
363 info.handle = handle;
371 HANDLE th = (HANDLE)_beginthreadex(NULL, // security
387 if (WaitForSingleObject(th /*handle*/, 200 /*ms*/) == WAIT_TIMEOUT) {
388 TerminateThread(th /*handle*/, 0 /*retCode*/);
415 // We can't handle wide Unicode. What we do is convert it into
518 // Query system for all handle information.
550 *error = "Failed to allocate system handle info buffer";
554 // Query all the handle objects
575 const HANDLE currProcessH = GetCurrentProcess();
577 HANDLE remoteProcessH = NULL;
628 HANDLE handle = (HANDLE) sysh.wValue;
630 HANDLE remoteH = NULL;
644 // only open the remote process handle if it's a different id.
665 // Duplicate the remote handle
667 handle, // hSourceHandle
687 // We found the first file handle. Remember it's system_handle object type
694 // Try to get a filename out of that file or directory handle.