summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/ntddrdr.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /public/sdk/inc/ntddrdr.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'public/sdk/inc/ntddrdr.h')
-rw-r--r--public/sdk/inc/ntddrdr.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/public/sdk/inc/ntddrdr.h b/public/sdk/inc/ntddrdr.h
new file mode 100644
index 000000000..fc955335e
--- /dev/null
+++ b/public/sdk/inc/ntddrdr.h
@@ -0,0 +1,54 @@
+/*++ BUILD Version: 0001 // Increment this if a change has global effects
+
+Copyright (c) 1993 Microsoft Corporation
+
+Module Name:
+
+ ntddrdr.h
+
+Abstract:
+
+ This is the include file that defines all constants and types for
+ accessing a network redirector device.
+
+Author:
+
+ Manny Weiser (mannyw) 27-Jun-1993
+
+Revision History:
+
+--*/
+
+#ifndef _NTDDRDR_
+#define _NTDDRDR_
+
+#define RDR_SERVER_LENGTH 80
+#define RDR_QUEUE_LENGTH 80
+
+//
+// NtDeviceIoControlFile/NtFsControlFile IoControlCode values for this device.
+//
+// Warning: Remember that the low two bits of the code specify how the
+// buffers are passed to the driver!
+//
+//
+// Method = 00 - Buffer both input and output buffers for the request
+// Method = 01 - Buffer input, map output buffer to an MDL as an IN buff
+// Method = 10 - Buffer input, map output buffer to an MDL as an OUT buff
+// Method = 11 - Do not buffer either the input or output
+//
+
+#define IOCTL_REDIR_BASE FILE_DEVICE_NETWORK_REDIRECTOR
+
+#define _REDIR_CONTROL_CODE(request, method, access) \
+ CTL_CODE(IOCTL_REDIR_BASE, request, method, access)
+
+#define FSCTL_GET_PRINT_ID _REDIR_CONTROL_CODE(1, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+typedef struct _QUERY_PRINT_JOB_INFO {
+ ULONG JobId; // Print job ID
+ WCHAR ServerName[RDR_SERVER_LENGTH+1]; // Server name
+ WCHAR QueueName[RDR_QUEUE_LENGTH+1]; // Queue name.
+} QUERY_PRINT_JOB_INFO, *PQUERY_PRINT_JOB_INFO;
+
+#endif // ifndef _NTDDRDR_