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.

66 lines
1.6 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1993-1999 Microsoft Corporation
  3. Module Name:
  4. ntddrdr.h
  5. Abstract:
  6. This is the include file that defines all constants and types for
  7. accessing a network redirector device.
  8. Author:
  9. Manny Weiser (mannyw) 27-Jun-1993
  10. Revision History:
  11. --*/
  12. #ifndef _NTDDRDR_
  13. #define _NTDDRDR_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #define RDR_SERVER_LENGTH 80
  21. #define RDR_QUEUE_LENGTH 80
  22. //
  23. // NtDeviceIoControlFile/NtFsControlFile IoControlCode values for this device.
  24. //
  25. // Warning: Remember that the low two bits of the code specify how the
  26. // buffers are passed to the driver!
  27. //
  28. //
  29. // Method = 00 - Buffer both input and output buffers for the request
  30. // Method = 01 - Buffer input, map output buffer to an MDL as an IN buff
  31. // Method = 10 - Buffer input, map output buffer to an MDL as an OUT buff
  32. // Method = 11 - Do not buffer either the input or output
  33. //
  34. #define IOCTL_REDIR_BASE FILE_DEVICE_NETWORK_REDIRECTOR
  35. #define _REDIR_CONTROL_CODE(request, method, access) \
  36. CTL_CODE(IOCTL_REDIR_BASE, request, method, access)
  37. #define FSCTL_GET_PRINT_ID _REDIR_CONTROL_CODE(1, METHOD_BUFFERED, FILE_ANY_ACCESS)
  38. typedef struct _QUERY_PRINT_JOB_INFO {
  39. ULONG JobId; // Print job ID
  40. WCHAR ServerName[RDR_SERVER_LENGTH+1]; // Server name
  41. WCHAR QueueName[RDR_QUEUE_LENGTH+1]; // Queue name.
  42. } QUERY_PRINT_JOB_INFO, *PQUERY_PRINT_JOB_INFO;
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif // ifndef _NTDDRDR_