obfuncs.inc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {%MainUnit ndk.pas}
  2. {
  3. Native Development Kit for Native NT
  4. This file is part of the Free Pascal run time library.
  5. This unit contains functions for use with the Object Manager.
  6. Copyright (c) 2010 by Sven Barth
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. function NtOpenDirectoryObject(
  14. FileHandle: PHANDLE;
  15. DesiredAccess: ACCESS_MASK;
  16. ObjectAttributes: POBJECT_ATTRIBUTES
  17. ): NTSTATUS; external ntdll;
  18. function NtQueryDirectoryObject(
  19. DirectoryHandle: HANDLE;
  20. Buffer: PVOID;
  21. BufferLength: ULONG;
  22. ReturnSingleEntry: NT_BOOLEAN;
  23. RestartScan: NT_BOOLEAN;
  24. Context: PULONG;
  25. ReturnLength: PULONG {OPTIONAL}
  26. ): NTSTATUS; external ntdll;
  27. function NtQueryObject(
  28. ObjectHandle: HANDLE;
  29. ObjectInformationClass: OBJECT_INFORMATION_CLASS;
  30. ObjectInformation: PVOID;
  31. Length: ULONG;
  32. ResultLength: PULONG {OPTIONAL}
  33. ): NTSTATUS; external ntdll;
  34. function NtWaitForSingleObject(
  35. _Object: HANDLE;
  36. Alertable: NT_BOOLEAN;
  37. Time: PLARGE_INTEGER
  38. ): NTSTATUS; external ntdll;