Diff

Not logged in

Differences From Artifact [fa72ba923e60f447]:

To Artifact [fe52fc6495d0d1f8]:


4 4 * Windows API header module * 5 5 * * 6 6 * Translated from MinGW Windows headers * 7 7 * * 8 8 * Placed into public domain * 9 9 \***********************************************************************/ 10 10 module win32.winspool; 11 -pragma(lib, "winspool.lib"); 11 +pragma(lib, "winspool"); 12 12 13 13 private import win32.w32api, win32.windef, win32.wingdi; 14 14 private import win32.winbase; // for SYSTEMTIME 15 15 16 16 // FIXME: clean up Windows version support 17 17 18 18 const DI_CHANNEL=1; ................................................................................ 631 631 632 632 struct PRINTER_NOTIFY_INFO_DATA { 633 633 WORD Type; 634 634 WORD Field; 635 635 DWORD Reserved; 636 636 DWORD Id; 637 637 union _NotifyData { 638 - DWORD adwData[2]; 638 + DWORD[2] adwData; 639 639 struct Data { 640 640 DWORD cbBuf; 641 641 PVOID pBuf; 642 642 } 643 643 } 644 644 _NotifyData NotifyData; 645 645 } 646 646 alias PRINTER_NOTIFY_INFO_DATA* PPRINTER_NOTIFY_INFO_DATA, LPPRINTER_NOTIFY_INFO_DATA; 647 647 648 648 struct PRINTER_NOTIFY_INFO { 649 649 DWORD Version; 650 650 DWORD Flags; 651 651 DWORD Count; 652 - PRINTER_NOTIFY_INFO_DATA aData[1]; 652 + PRINTER_NOTIFY_INFO_DATA[1] aData; 653 653 } 654 654 alias PRINTER_NOTIFY_INFO* PPRINTER_NOTIFY_INFO, LPPRINTER_NOTIFY_INFO; 655 655 656 656 struct FORM_INFO_1A { 657 657 DWORD Flags; 658 658 LPSTR pName; 659 659 SIZEL Size; ................................................................................ 749 749 BOOL EnumPrintProcessorsA(LPSTR, LPSTR, DWORD, PBYTE, DWORD, PDWORD, PDWORD); 750 750 BOOL EnumPrintProcessorsW(LPWSTR, LPWSTR, DWORD, PBYTE, DWORD, PDWORD, PDWORD); 751 751 BOOL FindClosePrinterChangeNotification(HANDLE); 752 752 HANDLE FindFirstPrinterChangeNotification(HANDLE, DWORD, DWORD, PVOID); 753 753 HANDLE FindNextPrinterChangeNotification(HANDLE, PDWORD, PVOID, PVOID*); 754 754 BOOL FreePrinterNotifyInfo(PPRINTER_NOTIFY_INFO); 755 755 756 -static if (_WIN32_WINNT >= 0x0500) { 756 +static if (_WIN32_WINNT >= 0x500) { 757 757 BOOL GetDefaultPrinterA(LPSTR, LPDWORD); 758 758 BOOL GetDefaultPrinterW(LPWSTR, LPDWORD); 759 759 } 760 760 761 761 BOOL GetFormA(HANDLE, LPSTR, DWORD, PBYTE, DWORD, PDWORD); 762 762 BOOL GetFormW(HANDLE, LPWSTR, DWORD, PBYTE, DWORD, PDWORD); 763 763 BOOL GetJobA(HANDLE, DWORD, DWORD, PBYTE, DWORD, PDWORD); ................................................................................ 843 843 alias EnumPortsW EnumPorts; 844 844 alias EnumPrinterDataW EnumPrinterData; 845 845 alias EnumPrinterDriversW EnumPrinterDrivers; 846 846 alias EnumPrintersW EnumPrinters; 847 847 alias EnumPrintProcessorDatatypesW EnumPrintProcessorDatatypes; 848 848 alias EnumPrintProcessorsW EnumPrintProcessors; 849 849 850 -static if (_WIN32_WINNT >= 0x0500) { 850 +static if (_WIN32_WINNT >= 0x500) { 851 851 alias GetDefaultPrinterW GetDefaultPrinter; 852 852 } 853 853 854 854 alias GetFormW GetForm; 855 855 alias GetJobW GetJob; 856 856 alias GetPrinterW GetPrinter; 857 857 alias GetPrinterDataW GetPrinterData; ................................................................................ 915 915 alias EnumPortsA EnumPorts; 916 916 alias EnumPrinterDataA EnumPrinterData; 917 917 alias EnumPrinterDriversA EnumPrinterDrivers; 918 918 alias EnumPrintersA EnumPrinters; 919 919 alias EnumPrintProcessorDatatypesA EnumPrintProcessorDatatypes; 920 920 alias EnumPrintProcessorsA EnumPrintProcessors; 921 921 922 -static if (_WIN32_WINNT >= 0x0500) { 922 +static if (_WIN32_WINNT >= 0x500) { 923 923 alias GetDefaultPrinterA GetDefaultPrinter; 924 924 } 925 925 926 926 alias GetFormA GetForm; 927 927 alias GetJobA GetJob; 928 928 alias GetPrinterA GetPrinter; 929 929 alias GetPrinterDataA GetPrinterData;