mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 10:44:47 +00:00
localspl: Add partial SeekPrinter implementation.
This commit is contained in:
parent
017e9557db
commit
8aaaf417cd
1 changed files with 30 additions and 1 deletions
|
@ -3899,6 +3899,35 @@ static BOOL WINAPI fpClosePrinter(HANDLE hprinter)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static BOOL WINAPI fpSeekPrinter(HANDLE hprinter, LARGE_INTEGER distance,
|
||||||
|
LARGE_INTEGER *pos, DWORD method, BOOL bwrite)
|
||||||
|
{
|
||||||
|
job_t *job = (job_t *)hprinter;
|
||||||
|
|
||||||
|
TRACE("(%p %I64d %p %lx %x)\n", hprinter, distance.QuadPart, pos, method, bwrite);
|
||||||
|
|
||||||
|
if (!job)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_HANDLE);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (job->header.type != HANDLE_JOB)
|
||||||
|
{
|
||||||
|
FIXME("handle %x not supported\n", job->header.type);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bwrite)
|
||||||
|
{
|
||||||
|
if (pos)
|
||||||
|
pos->QuadPart = 0;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return SetFilePointerEx(job->hf, distance, pos, method);
|
||||||
|
}
|
||||||
|
|
||||||
static const PRINTPROVIDOR backend = {
|
static const PRINTPROVIDOR backend = {
|
||||||
fpOpenPrinter,
|
fpOpenPrinter,
|
||||||
fpSetJob,
|
fpSetJob,
|
||||||
|
@ -3971,7 +4000,7 @@ static const PRINTPROVIDOR backend = {
|
||||||
NULL, /* fpEnumPrinterKey */
|
NULL, /* fpEnumPrinterKey */
|
||||||
NULL, /* fpDeletePrinterDataEx */
|
NULL, /* fpDeletePrinterDataEx */
|
||||||
NULL, /* fpDeletePrinterKey */
|
NULL, /* fpDeletePrinterKey */
|
||||||
NULL, /* fpSeekPrinter */
|
fpSeekPrinter,
|
||||||
NULL, /* fpDeletePrinterDriverEx */
|
NULL, /* fpDeletePrinterDriverEx */
|
||||||
NULL, /* fpAddPerMachineConnection */
|
NULL, /* fpAddPerMachineConnection */
|
||||||
NULL, /* fpDeletePerMachineConnection */
|
NULL, /* fpDeletePerMachineConnection */
|
||||||
|
|
Loading…
Reference in a new issue