1 /******************************************************************************
2 * Print Spooler Functions
5 * Copyright 1999 Thuy Nguyen
9 #include "debugtools.h"
11 DEFAULT_DEBUG_CHANNEL(winspool)
13 HINSTANCE hcomctl32 = 0;
14 HDPA (WINAPI* WINSPOOL_DPA_CreateEx)(INT, HANDLE);
15 LPVOID (WINAPI* WINSPOOL_DPA_GetPtr)(const HDPA, INT);
16 INT (WINAPI* WINSPOOL_DPA_InsertPtr)(const HDPA, INT, LPVOID);
18 /******************************************************************************
21 * Winspool entry point.
24 BOOL WINAPI WINSPOOL_EntryPoint(HINSTANCE hInstance,
30 case DLL_PROCESS_ATTACH:
32 hcomctl32 = LoadLibraryA("COMCTL32.DLL");
34 WINSPOOL_DPA_CreateEx = (void*)GetProcAddress(hcomctl32, (LPCSTR)340L);
35 WINSPOOL_DPA_GetPtr = (void*)GetProcAddress(hcomctl32, (LPCSTR)332L);
36 WINSPOOL_DPA_InsertPtr = (void*)GetProcAddress(hcomctl32, (LPCSTR)334L);
39 case DLL_PROCESS_DETACH:
40 FreeLibrary(hcomctl32);