Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bb14056c
Commit
bb14056c
authored
Jul 23, 1999
by
Huw D M Davies
Committed by
Alexandre Julliard
Jul 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EnumJobs stub.
Update graphics/psdrv/README. Add warnings to DRIVER_GetDriverName.
parent
fa9724fd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
143 additions
and
9 deletions
+143
-9
info.c
dlls/winspool/info.c
+27
-0
driver.c
graphics/driver.c
+9
-3
README
graphics/psdrv/README
+2
-4
winspool.h
include/winspool.h
+103
-0
winspool.spec
relay32/winspool.spec
+2
-2
No files found.
dlls/winspool/info.c
View file @
bb14056c
...
...
@@ -1720,4 +1720,31 @@ BOOL WINAPI PrinterProperties(HWND hWnd, /* handle to parent window */
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
;
}
graphics/driver.c
View file @
bb14056c
...
...
@@ -105,10 +105,16 @@ BOOL DRIVER_GetDriverName( LPCSTR device, LPSTR driver, DWORD size )
{
char
*
p
;
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
,
','
);
if
(
!
p
)
return
FALSE
;
if
(
!
p
)
{
WARN
(
"'%s' entry in [devices] section of win.ini is malformed.
\n
"
,
device
);
return
FALSE
;
}
*
p
=
'\0'
;
TRACE
(
"Found '%s' for '%s'
\n
"
,
driver
,
device
);
return
TRUE
;
...
...
graphics/psdrv/README
View file @
bb14056c
...
...
@@ -16,11 +16,11 @@ driver add
device=Wine PostScript Driver,WINEPS,LPT1:
to the [windows] section of win.ini
. You may prefer to ad
d
to the [windows] section of win.ini
an
d
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
that you wish to use. You can get these from
...
...
@@ -81,8 +81,6 @@ Many partially implemented functions.
ps.c is becoming messy.
No clipping.
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.
...
...
include/winspool.h
View file @
bb14056c
...
...
@@ -246,8 +246,103 @@ DECL_WINELIB_TYPE_AW(PRINTER_INFO_5)
DECL_WINELIB_TYPE_AW
(
PPRINTER_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 */
/* DECLARATIONS */
INT
WINAPI
DeviceCapabilitiesA
(
LPCSTR
pDevice
,
LPCSTR
pPort
,
WORD
fwCapability
,
LPSTR
pOutput
,
LPDEVMODEA
pDevMode
);
...
...
@@ -276,6 +371,14 @@ BOOL WINAPI OpenPrinterW(LPWSTR lpPrinterName,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
,
DWORD
dwLevel
,
LPBYTE
lpbPrinters
,
DWORD
cbBuf
,
LPDWORD
lpdwNeeded
,
...
...
relay32/winspool.spec
View file @
bb14056c
...
...
@@ -62,8 +62,8 @@ type win32
159 stub EndPagePrinter
160 stub EnumFormsA
161 stub EnumFormsW
162 st
ub
EnumJobsA
163 st
ub
EnumJobsW
162 st
dcall EnumJobsA(long long long long ptr long ptr ptr)
EnumJobsA
163 st
dcall EnumJobsW(long long long long ptr long ptr ptr)
EnumJobsW
164 stub EnumMonitorsA
165 stub EnumMonitorsW
166 stdcall EnumPortsA(ptr long ptr ptr ptr ptr) EnumPortsA
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment