mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
797 B
29 lines
797 B
/************************ Module Header **************************************
|
|
* libedge.h
|
|
*
|
|
* Macros to define edge kernel-mode and user-mode edge behavior.
|
|
*
|
|
* HISTORY:
|
|
*
|
|
* Copyright (C) 1996 Microsoft Corporation
|
|
****************************************************************************/
|
|
|
|
/* Kernel mode
|
|
*/
|
|
#ifdef NTGDIKM
|
|
|
|
#define LIBALLOC(heap, flags, size) DRVALLOC((size))
|
|
#define LIBFREE(heap, flags, pmem) DRVFREE((pmem))
|
|
#define GETPRINTER EngGetPrinter
|
|
#define GETPRINTERDATA EngGetPrinterData
|
|
|
|
/* User mode
|
|
*/
|
|
#else
|
|
|
|
#define LIBALLOC(heap, flags, size) HeapAlloc((heap), (flags), (size))
|
|
#define LIBFREE(heap, flags, pmem) HeapFree((heap), (flags), (pmem))
|
|
#define GETPRINTER GetPrinter
|
|
#define GETPRINTERDATA GetPrinterData
|
|
|
|
#endif /* NTGDIKM */
|