spoolss: Add DllAllocSplMem and DllFreeSplMem.
This commit is contained in:
parent
d53ad9c3f7
commit
fee66fb15a
|
@ -38,8 +38,8 @@
|
||||||
@ stub DeletePrinterDriverW
|
@ stub DeletePrinterDriverW
|
||||||
@ stub DeletePrinterIC
|
@ stub DeletePrinterIC
|
||||||
@ stub DeletePrinterKeyW
|
@ stub DeletePrinterKeyW
|
||||||
@ stub DllAllocSplMem
|
@ stdcall DllAllocSplMem(long)
|
||||||
@ stub DllFreeSplMem
|
@ stdcall DllFreeSplMem(ptr)
|
||||||
@ stub DllFreeSplStr
|
@ stub DllFreeSplStr
|
||||||
@ stub EndDocPrinter
|
@ stub EndDocPrinter
|
||||||
@ stub EndPagePrinter
|
@ stub EndPagePrinter
|
||||||
|
|
|
@ -45,3 +45,51 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************
|
||||||
|
* DllAllocSplMem [SPOOLSS.@]
|
||||||
|
*
|
||||||
|
* Allocate cleared memory from the spooler heap
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* size [I] Number of bytes to allocate
|
||||||
|
*
|
||||||
|
* RETURNS
|
||||||
|
* Failure: NULL
|
||||||
|
* Success: PTR to the allocated memory
|
||||||
|
*
|
||||||
|
* NOTES
|
||||||
|
* We use the process heap (Windows use a separate spooler heap)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
LPVOID WINAPI DllAllocSplMem(DWORD size)
|
||||||
|
{
|
||||||
|
LPVOID res;
|
||||||
|
|
||||||
|
res = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
|
||||||
|
TRACE("(%ld) => %p\n", size, res);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************************************************************
|
||||||
|
* DllFreeSplMem [SPOOLSS.@]
|
||||||
|
*
|
||||||
|
* Free the allocated spooler memory
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* memory [I] PTR to the memory allocated by DllAllocSplMem
|
||||||
|
*
|
||||||
|
* RETURNS
|
||||||
|
* Failure: FALSE
|
||||||
|
* Success: TRUE
|
||||||
|
*
|
||||||
|
* NOTES
|
||||||
|
* We use the process heap (Windows use a separate spooler heap)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
BOOL WINAPI DllFreeSplMem(LPBYTE memory)
|
||||||
|
{
|
||||||
|
TRACE("(%p)\n", memory);
|
||||||
|
return HeapFree(GetProcessHeap(), 0, memory);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue