EnumJobs stub.
Update graphics/psdrv/README. Add warnings to DRIVER_GetDriverName.
This commit is contained in:
parent
fa9724fde8
commit
bb14056c16
|
@ -1720,4 +1720,31 @@ BOOL WINAPI PrinterProperties(HWND hWnd, /* handle to parent window */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
* EnumJobsA [WINSPOOL.162]
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
BOOL WINAPI EnumJobsA(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs,
|
||||||
|
DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded,
|
||||||
|
LPDWORD pcReturned)
|
||||||
|
{
|
||||||
|
FIXME("stub\n");
|
||||||
|
if(pcbNeeded) *pcbNeeded = 0;
|
||||||
|
if(pcReturned) *pcReturned = 0;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
* EnumJobsW [WINSPOOL.163]
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
BOOL WINAPI EnumJobsW(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs,
|
||||||
|
DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded,
|
||||||
|
LPDWORD pcReturned)
|
||||||
|
{
|
||||||
|
FIXME("stub\n");
|
||||||
|
if(pcbNeeded) *pcbNeeded = 0;
|
||||||
|
if(pcReturned) *pcReturned = 0;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
|
@ -105,10 +105,16 @@ BOOL DRIVER_GetDriverName( LPCSTR device, LPSTR driver, DWORD size )
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
size = GetProfileStringA("devices", device, "", driver, size);
|
size = GetProfileStringA("devices", device, "", driver, size);
|
||||||
if(!size) return FALSE;
|
if(!size) {
|
||||||
|
WARN("Unable to find '%s' in [devices] section of win.ini\n", device);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
p = strchr(driver, ',');
|
p = strchr(driver, ',');
|
||||||
if(!p) return FALSE;
|
if(!p) {
|
||||||
|
WARN("'%s' entry in [devices] section of win.ini is malformed.\n",
|
||||||
|
device);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
TRACE("Found '%s' for '%s'\n", driver, device);
|
TRACE("Found '%s' for '%s'\n", driver, device);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -16,11 +16,11 @@ driver add
|
||||||
|
|
||||||
device=Wine PostScript Driver,WINEPS,LPT1:
|
device=Wine PostScript Driver,WINEPS,LPT1:
|
||||||
|
|
||||||
to the [windows] section of win.ini . You may prefer to add
|
to the [windows] section of win.ini and
|
||||||
|
|
||||||
Wine PostScript Driver=WINEPS,LPT1:
|
Wine PostScript Driver=WINEPS,LPT1:
|
||||||
|
|
||||||
to the [devices] section of win.ini instead.
|
to the [devices] section of win.ini .
|
||||||
|
|
||||||
You will need Adobe Font Metric (AFM) files for the (type 1 PostScript) fonts
|
You will need Adobe Font Metric (AFM) files for the (type 1 PostScript) fonts
|
||||||
that you wish to use. You can get these from
|
that you wish to use. You can get these from
|
||||||
|
@ -81,8 +81,6 @@ Many partially implemented functions.
|
||||||
|
|
||||||
ps.c is becoming messy.
|
ps.c is becoming messy.
|
||||||
|
|
||||||
No clipping.
|
|
||||||
|
|
||||||
Notepad often starts text too far to the left depending on the margin
|
Notepad often starts text too far to the left depending on the margin
|
||||||
settings. However the win3.1 pscript.drv (under wine) also does this.
|
settings. However the win3.1 pscript.drv (under wine) also does this.
|
||||||
|
|
||||||
|
|
|
@ -246,8 +246,103 @@ DECL_WINELIB_TYPE_AW(PRINTER_INFO_5)
|
||||||
DECL_WINELIB_TYPE_AW(PPRINTER_INFO_5)
|
DECL_WINELIB_TYPE_AW(PPRINTER_INFO_5)
|
||||||
DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_5)
|
DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_5)
|
||||||
|
|
||||||
|
typedef struct _JOB_INFO_1A {
|
||||||
|
DWORD JobID;
|
||||||
|
LPSTR pPrinterName;
|
||||||
|
LPSTR pMachineName;
|
||||||
|
LPSTR pUserName;
|
||||||
|
LPSTR pDocument;
|
||||||
|
LPSTR pDatatype;
|
||||||
|
LPSTR pStatus;
|
||||||
|
DWORD Status;
|
||||||
|
DWORD Priority;
|
||||||
|
DWORD Position;
|
||||||
|
DWORD TotalPages;
|
||||||
|
DWORD PagesPrinted;
|
||||||
|
SYSTEMTIME Submitted;
|
||||||
|
} JOB_INFO_1A, *PJOB_INFO_1A, *LPJOB_INFO_1A;
|
||||||
|
|
||||||
|
typedef struct _JOB_INFO_1W {
|
||||||
|
DWORD JobID;
|
||||||
|
LPWSTR pPrinterName;
|
||||||
|
LPWSTR pMachineName;
|
||||||
|
LPWSTR pUserName;
|
||||||
|
LPWSTR pDocument;
|
||||||
|
LPWSTR pDatatype;
|
||||||
|
LPWSTR pStatus;
|
||||||
|
DWORD Status;
|
||||||
|
DWORD Priority;
|
||||||
|
DWORD Position;
|
||||||
|
DWORD TotalPages;
|
||||||
|
DWORD PagesPrinted;
|
||||||
|
SYSTEMTIME Submitted;
|
||||||
|
} JOB_INFO_1W, *PJOB_INFO_1W, *LPJOB_INFO_1W;
|
||||||
|
|
||||||
|
DECL_WINELIB_TYPE_AW(JOB_INFO_1)
|
||||||
|
DECL_WINELIB_TYPE_AW(PJOB_INFO_1)
|
||||||
|
DECL_WINELIB_TYPE_AW(LPJOB_INFO_1)
|
||||||
|
|
||||||
|
typedef struct _JOB_INFO_2A {
|
||||||
|
DWORD JobID;
|
||||||
|
LPSTR pPrinterName;
|
||||||
|
LPSTR pMachineName;
|
||||||
|
LPSTR pUserName;
|
||||||
|
LPSTR pDocument;
|
||||||
|
LPSTR pNotifyName;
|
||||||
|
LPSTR pDatatype;
|
||||||
|
LPSTR pPrintProcessor;
|
||||||
|
LPSTR pParameters;
|
||||||
|
LPSTR pDriverName;
|
||||||
|
LPDEVMODEA pDevMode;
|
||||||
|
LPSTR pStatus;
|
||||||
|
PSECURITY_DESCRIPTOR pSecurityDescriptor;
|
||||||
|
DWORD Status;
|
||||||
|
DWORD Priority;
|
||||||
|
DWORD Position;
|
||||||
|
DWORD StartTime;
|
||||||
|
DWORD UntilTime;
|
||||||
|
DWORD TotalPages;
|
||||||
|
DWORD Size;
|
||||||
|
SYSTEMTIME Submitted;
|
||||||
|
DWORD Time;
|
||||||
|
DWORD PagesPrinted;
|
||||||
|
} JOB_INFO_2A, *PJOB_INFO_2A, *LPJOB_INFO_2A;
|
||||||
|
|
||||||
|
typedef struct _JOB_INFO_2W {
|
||||||
|
DWORD JobID;
|
||||||
|
LPWSTR pPrinterName;
|
||||||
|
LPWSTR pMachineName;
|
||||||
|
LPWSTR pUserName;
|
||||||
|
LPWSTR pDocument;
|
||||||
|
LPWSTR pNotifyName;
|
||||||
|
LPWSTR pDatatype;
|
||||||
|
LPWSTR pPrintProcessor;
|
||||||
|
LPWSTR pParameters;
|
||||||
|
LPWSTR pDriverName;
|
||||||
|
LPDEVMODEW pDevMode;
|
||||||
|
LPWSTR pStatus;
|
||||||
|
PSECURITY_DESCRIPTOR pSecurityDescriptor;
|
||||||
|
DWORD Status;
|
||||||
|
DWORD Priority;
|
||||||
|
DWORD Position;
|
||||||
|
DWORD StartTime;
|
||||||
|
DWORD UntilTime;
|
||||||
|
DWORD TotalPages;
|
||||||
|
DWORD Size;
|
||||||
|
SYSTEMTIME Submitted;
|
||||||
|
DWORD Time;
|
||||||
|
DWORD PagesPrinted;
|
||||||
|
} JOB_INFO_2W, *PJOB_INFO_2W, *LPJOB_INFO_2W;
|
||||||
|
|
||||||
|
DECL_WINELIB_TYPE_AW(JOB_INFO_2)
|
||||||
|
DECL_WINELIB_TYPE_AW(PJOB_INFO_2)
|
||||||
|
DECL_WINELIB_TYPE_AW(LPJOB_INFO_2)
|
||||||
|
|
||||||
|
|
||||||
#endif /* Status */
|
#endif /* Status */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* DECLARATIONS */
|
/* DECLARATIONS */
|
||||||
INT WINAPI DeviceCapabilitiesA(LPCSTR pDevice,LPCSTR pPort,WORD fwCapability,
|
INT WINAPI DeviceCapabilitiesA(LPCSTR pDevice,LPCSTR pPort,WORD fwCapability,
|
||||||
LPSTR pOutput, LPDEVMODEA pDevMode);
|
LPSTR pOutput, LPDEVMODEA pDevMode);
|
||||||
|
@ -276,6 +371,14 @@ BOOL WINAPI OpenPrinterW(LPWSTR lpPrinterName,HANDLE *phPrinter,
|
||||||
|
|
||||||
BOOL WINAPI ClosePrinter (HANDLE phPrinter);
|
BOOL WINAPI ClosePrinter (HANDLE phPrinter);
|
||||||
|
|
||||||
|
BOOL WINAPI EnumJobsA(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs,
|
||||||
|
DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded,
|
||||||
|
LPDWORD pcReturned);
|
||||||
|
BOOL WINAPI EnumJobsW(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs,
|
||||||
|
DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded,
|
||||||
|
LPDWORD pcReturned);
|
||||||
|
#define EnumJobs WINELIB_NAME_AW(EnumJobs)
|
||||||
|
|
||||||
BOOL WINAPI EnumPrintersA(DWORD dwType, LPSTR lpszName,
|
BOOL WINAPI EnumPrintersA(DWORD dwType, LPSTR lpszName,
|
||||||
DWORD dwLevel, LPBYTE lpbPrinters,
|
DWORD dwLevel, LPBYTE lpbPrinters,
|
||||||
DWORD cbBuf, LPDWORD lpdwNeeded,
|
DWORD cbBuf, LPDWORD lpdwNeeded,
|
||||||
|
|
|
@ -62,8 +62,8 @@ type win32
|
||||||
159 stub EndPagePrinter
|
159 stub EndPagePrinter
|
||||||
160 stub EnumFormsA
|
160 stub EnumFormsA
|
||||||
161 stub EnumFormsW
|
161 stub EnumFormsW
|
||||||
162 stub EnumJobsA
|
162 stdcall EnumJobsA(long long long long ptr long ptr ptr) EnumJobsA
|
||||||
163 stub EnumJobsW
|
163 stdcall EnumJobsW(long long long long ptr long ptr ptr) EnumJobsW
|
||||||
164 stub EnumMonitorsA
|
164 stub EnumMonitorsA
|
||||||
165 stub EnumMonitorsW
|
165 stub EnumMonitorsW
|
||||||
166 stdcall EnumPortsA(ptr long ptr ptr ptr ptr) EnumPortsA
|
166 stdcall EnumPortsA(ptr long ptr ptr ptr ptr) EnumPortsA
|
||||||
|
|
Loading…
Reference in New Issue