/[rdesktop]/sourceforge.net/rdesktop/trunk/printer.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/rdesktop/trunk/printer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 666 by astrand, Sat Apr 17 07:28:30 2004 UTC revision 776 by jsorg71, Sat Oct 2 01:30:33 2004 UTC
# Line 3  Line 3 
3  extern RDPDR_DEVICE g_rdpdr_device[];  extern RDPDR_DEVICE g_rdpdr_device[];
4    
5  static PRINTER *  static PRINTER *
6  get_printer_data(HANDLE handle)  get_printer_data(NTHANDLE handle)
7  {  {
8          int index;          int index;
9    
# Line 83  printer_enum_devices(uint32 * id, char * Line 83  printer_enum_devices(uint32 * id, char *
83    
84  static NTSTATUS  static NTSTATUS
85  printer_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags,  printer_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags,
86                 char *filename, HANDLE * handle)                 char *filename, NTHANDLE * handle)
87  {  {
88          char cmd[256];          char cmd[256];
89          PRINTER *pprinter_data;          PRINTER *pprinter_data;
# Line 107  printer_create(uint32 device_id, uint32 Line 107  printer_create(uint32 device_id, uint32
107  }  }
108    
109  static NTSTATUS  static NTSTATUS
110  printer_close(HANDLE handle)  printer_close(NTHANDLE handle)
111  {  {
112          int i = get_device_index(handle);          int i = get_device_index(handle);
113          if (i >= 0)          if (i >= 0)
# Line 121  printer_close(HANDLE handle) Line 121  printer_close(HANDLE handle)
121  }  }
122    
123  static NTSTATUS  static NTSTATUS
124  printer_write(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)  printer_write(NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
125  {  {
126          PRINTER *pprinter_data;          PRINTER *pprinter_data;
127    

Legend:
Removed from v.666  
changed lines
  Added in v.776

  ViewVC Help
Powered by ViewVC 1.1.26