gdi32: Add stub for GdiInitSpool and GdiGetSpoolMessage.

This commit is contained in:
Detlef Riekenberg 2008-02-01 16:13:57 +01:00 committed by Alexandre Julliard
parent c4041ae815
commit cbb85daa8f
2 changed files with 24 additions and 2 deletions

View File

@ -189,9 +189,9 @@
# @ stub GdiGetPageCount
# @ stub GdiGetPageHandle
# @ stub GdiGetSpoolFileHandle
# @ stub GdiGetSpoolMessage
@ stdcall GdiGetSpoolMessage(ptr long ptr long)
@ stdcall GdiGradientFill(long ptr long ptr long long)
# @ stub GdiInitSpool
@ stdcall GdiInitSpool()
# @ stub GdiInitializeLanguagePack
@ stdcall GdiIsMetaFileDC(long)
@ stdcall GdiIsMetaPrintDC(long)

View File

@ -57,6 +57,28 @@ static const char DefaultDevMode[] = "Default DevMode";
static const char PrinterDriverData[] = "PrinterDriverData";
static const char Printers[] = "System\\CurrentControlSet\\Control\\Print\\Printers\\";
/******************************************************************
* GdiGetSpoolMessage [GDI32.@]
*
*/
DWORD WINAPI GdiGetSpoolMessage(LPVOID ptr1, DWORD data2, LPVOID ptr3, DWORD data4)
{
TRACE("(%p 0x%x %p 0x%x) stub\n", ptr1, data2, ptr3, data4);
/* avoid 100% cpu usage with spoolsv.exe from w2k
(spoolsv.exe from xp does Sleep 1000/1500/2000 in a loop) */
Sleep(500);
return 0;
}
/******************************************************************
* GdiInitSpool [GDI32.@]
*
*/
DWORD WINAPI GdiInitSpool(void)
{
FIXME("stub\n");
return TRUE;
}
/******************************************************************
* StartDocA [GDI32.@]