25 if (!hinstPrintProvider)
28 ERR(
"LoadLibraryW failed for \"%S\" with error %lu!\n", pwszFileName, dwErrorCode);
34 if (!pfnInitializePrintProvidor)
37 ERR(
"GetProcAddress failed for \"%S\" with error %lu!\n", pwszFileName, dwErrorCode);
46 ERR(
"DllAllocSplMem failed!\n");
54 ERR(
"InitializePrintProvidor failed for \"%S\" with error %lu!\n", pwszFileName, dwErrorCode);
62 pPrintProvider =
NULL;
77 DWORD cchPrintProviderName;
94 ERR(
"The Local Spooler could not be loaded!\n");
103 ERR(
"RegOpenKeyExW failed with status %lu!\n", dwErrorCode);
108 dwErrorCode = (
DWORD)
RegQueryInfoKeyW(
hKey,
NULL,
NULL,
NULL, &dwSubKeys, &cchMaxSubKey,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
111 ERR(
"RegQueryInfoKeyW failed with status %lu!\n", dwErrorCode);
117 if (!pwszPrintProviderName)
120 ERR(
"DllAllocSplMem failed!\n");
125 for (
i = 0;
i < dwSubKeys;
i++)
135 cchPrintProviderName = cchMaxSubKey + 1;
139 ERR(
"RegEnumKeyExW failed for iteration %lu with status %lu!\n",
i, dwErrorCode);
147 ERR(
"RegOpenKeyExW failed for Print Provider \"%S\" with status %lu!\n", pwszPrintProviderName, dwErrorCode);
156 ERR(
"RegQueryValueExW failed with status %lu!\n", dwErrorCode);
174 if (pwszPrintProviderName)
213 ERR(
"Could not load winspool.drv, last error is %lu!\n",
GetLastError());
229 for (
i = 0;
i < 9;
i++)
258 FIXME(
"(%p, %p) stub\n", ptr1, ptr2);
static WCHAR wszFileName[MAX_PATH]
#define RegCloseKey(hKey)
#define ERROR_NOT_ENOUGH_MEMORY
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegEnumKeyExW(_In_ HKEY hKey, _In_ DWORD dwIndex, _Out_ LPWSTR lpName, _Inout_ LPDWORD lpcbName, _Reserved_ LPDWORD lpReserved, _Out_opt_ LPWSTR lpClass, _Inout_opt_ LPDWORD lpcbClass, _Out_opt_ PFILETIME lpftLastWriteTime)
LONG WINAPI RegQueryInfoKeyW(HKEY hKey, LPWSTR lpClass, LPDWORD lpcClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcMaxSubKeyLen, LPDWORD lpcMaxClassLen, LPDWORD lpcValues, LPDWORD lpcMaxValueNameLen, LPDWORD lpcMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define DLL_PROCESS_ATTACH
#define GetProcAddress(x, y)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
static const WCHAR Cleanup[]
#define InsertTailList(ListHead, Entry)
#define InitializeListHead(ListHead)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static IN DWORD IN LPVOID lpvReserved
BOOL(WINAPI * PInitializePrintProvidor)(LPPRINTPROVIDOR, DWORD, LPWSTR)
PRINTPROVIDOR PrintProvider
static const EHCI_PERIOD pTable[]
BOOL WINAPI SplInitializeWinSpoolDrv(PVOID *pTable)
LIST_ENTRY PrintProviderList
BOOL WINAPI InitializeRouter(HANDLE SpoolerStatusHandle)
static BOOL _InitializePrintProviderList(VOID)
BOOL WINAPI SpoolerInit(VOID)
static DWORD _AddPrintProviderToList(PCWSTR pwszFileName)
BOOL WINAPI BuildOtherNamesFromMachineName(LPVOID *ptr1, ULONG *ptr2)
BOOL WINAPI SplIsUpgrade(VOID)
BOOL WINAPI DllFreeSplMem(PVOID pMem)
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
DWORD WINAPI GetLastError(void)
#define HKEY_LOCAL_MACHINE