Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: cloud_print/virtual_driver/win/port_monitor/spooler_win.h

Issue 2541123003: Resurrect the cloud printer driver. (Closed)
Patch Set: Remove cross-compiling option for the portmon dll. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_SPOOLER_WIN_H_
6 #define CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_SPOOLER_WIN_H_
7
8 #include <windows.h>
9
10 // Compatible structures and prototypes are also defined in the Windows DDK in
11 // winsplp.h.
12 #ifndef _WINSPLP_
13
14 typedef struct {
15 DWORD size;
16 BOOL(WINAPI* pfnEnumPorts)
17 (HANDLE,
18 wchar_t*,
19 DWORD level,
20 BYTE* ports,
21 DWORD ports_size,
22 DWORD* needed_bytes,
23 DWORD* returned);
24
25 BOOL(WINAPI* pfnOpenPort)(HANDLE monitor_data, wchar_t*, HANDLE* handle);
26
27 void* pfnOpenPortEx; // Unused.
28
29 BOOL(WINAPI* pfnStartDocPort)
30 (HANDLE port_handle, wchar_t* printer_name, DWORD job_id, DWORD, BYTE*);
31
32 BOOL(WINAPI* pfnWritePort)
33 (HANDLE port, BYTE* buffer, DWORD buffer_size, DWORD* bytes_written);
34
35 BOOL(WINAPI* pfnReadPort)(HANDLE, BYTE*, DWORD, DWORD* bytes_read);
36
37 BOOL(WINAPI* pfnEndDocPort)(HANDLE port_handle);
38
39 BOOL(WINAPI* pfnClosePort)(HANDLE port_handle);
40
41 void* pfnAddPort; // Unused.
42
43 void* pfnAddPortEx; // Unused.
44
45 void* pfnConfigurePort; // Unused.
46
47 void* pfnDeletePort; // Unused.
48
49 void* pfnGetPrinterDataFromPort; // Unused.
50
51 void* pfnSetPortTimeOuts; // Unusued.
52
53 BOOL(WINAPI* pfnXcvOpenPort)
54 (HANDLE monitor, const wchar_t*, ACCESS_MASK granted_access, HANDLE* handle);
55
56 DWORD(WINAPI* pfnXcvDataPort)
57 (HANDLE xcv_handle,
58 const wchar_t* data_name,
59 BYTE*,
60 DWORD,
61 BYTE* output_data,
62 DWORD output_data_bytes,
63 DWORD* output_data_bytes_needed);
64
65 BOOL(WINAPI* pfnXcvClosePort)(HANDLE handle);
66
67 VOID(WINAPI* pfnShutdown)(HANDLE monitor_handle);
68 } MONITOR2;
69
70 typedef struct {
71 DWORD size;
72
73 BOOL(WINAPI* pfnAddPortUI)
74 (const wchar_t*, HWND hwnd, const wchar_t* monitor_name, wchar_t**);
75
76 BOOL(WINAPI* pfnConfigurePortUI)
77 (const wchar_t*, HWND hwnd, const wchar_t* port_name);
78
79 BOOL(WINAPI* pfnDeletePortUI)
80 (const wchar_t*, HWND hwnd, const wchar_t* port_name);
81 } MONITORUI;
82
83 typedef struct {
84 DWORD cbSize;
85 HANDLE hSpooler;
86 HKEY hckRegistryRoot;
87 void* pMonitorReg; // Unused
88 BOOL bLocal;
89 LPCWSTR pszServerName;
90 } MONITORINIT;
91
92 MONITOR2* WINAPI InitializePrintMonitor2(MONITORINIT* monitor_init,
93 HANDLE* monitor_handle);
94
95 MONITORUI* WINAPI InitializePrintMonitorUI(void);
96
97 #endif // ifdef USE_WIN_DDK
98 #endif // CLOUD_PRINT_VIRTUAL_DRIVER_WIN_PORT_MONITOR_SPOOLER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698