Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
956 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. oscode.h
  5. Abstract:
  6. This module contains the header definitions for NT support routines
  7. for talking to the kernel on NT systems.
  8. Author:
  9. Jim Stewart (jstew) August 14, 1996
  10. Revision History:
  11. Ofer Bar ( oferbar ) Oct 1, 1996 - Revision II changes
  12. --*/
  13. #ifndef __OSCODE_H
  14. #define __OSCODE_H
  15. DWORD
  16. MapNtStatus2WinError(
  17. NTSTATUS NtStatus
  18. );
  19. DWORD
  20. OpenDriver(
  21. OUT HANDLE *Handle,
  22. IN LPCWSTR DriverName
  23. );
  24. DWORD
  25. DeviceControl(
  26. IN HANDLE FileHandle,
  27. IN HANDLE EventHandle,
  28. IN PIO_APC_ROUTINE ApcRoutine,
  29. IN PVOID ApcContext,
  30. OUT PIO_STATUS_BLOCK pIoStatusBlock,
  31. IN ULONG Ioctl,
  32. IN PVOID setBuffer,
  33. IN ULONG setBufferSize,
  34. IN PVOID OutBuffer,
  35. IN ULONG OutBufferSize
  36. );
  37. DWORD
  38. InitializeOsSpecific(VOID);
  39. VOID
  40. DeInitializeOsSpecific(VOID);
  41. #endif