Lines Matching refs:buf
246 char *buf = new char[size]; in getHandleType() local
247 status = sNtQueryObjectFunc(h, 2, buf, size, NULL); in getHandleType()
257 const char *c = buf + 96; in getHandleType()
258 const char *e = buf + 96 + size; in getHandleType()
260 char *dest = buf; in getHandleType()
266 type->set(buf, dest - buf); in getHandleType()
270 free(buf); in getHandleType()
285 char *buf = new char[size]; in isFileHandleType() local
286 status = sNtQueryObjectFunc(handle, 2, buf, size, NULL); in isFileHandleType()
295 const char *c = buf + 96; in isFileHandleType()
309 free(buf); in isFileHandleType()
326 char buf[MAX_PATH*2 + 4]; in FileNameThreadFunc() local
329 DWORD status = sNtQueryInformationFileFunc(info->handle, iob, buf, sizeof(buf), 9); in FileNameThreadFunc()
336 DWORD len = ((DWORD *)buf)[0]; in FileNameThreadFunc()
343 unsigned char *dest = (unsigned char *)buf + 4; in FileNameThreadFunc()
344 unsigned char *src = (unsigned char *)buf + 4; in FileNameThreadFunc()
353 info->outStr->set(buf + 4, len); in FileNameThreadFunc()
413 char buf[MAX_PATH]; in getProcessName() local
420 unsigned char *dest = (unsigned char *)buf; in getProcessName()
430 outStr->set(buf, len); in getProcessName()
432 if (strcmp(buf, "javaw.exe") == 0) { in getProcessName()