13#define WIN32_NO_STATUS
22#include "../localspl_apitest.h"
47 static const WCHAR wszWindowsKey[] =
L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows";
61 skip(
"RegOpenKeyExW failed with status %u!\n", dwErrorCode);
69 skip(
"RegQueryValueExW failed with status %u!\n", dwErrorCode);
77 skip(
"HeapAlloc failed!\n");
85 skip(
"RegQueryValueExW failed with status %u!\n", dwErrorCode);
91 pwszComma =
wcschr(pwszDevice,
L',');
94 skip(
"Found no or invalid default printer: %S!\n", pwszDevice);
100 pwszReturnValue = pwszDevice;
106 return pwszReturnValue;
125 if (!pfnInitializePrintProvidor)
161 char szTestName[150];
175 DPRINT(
"DLL: CreateFileW failed for the command pipe with error %lu!\n",
GetLastError());
179 if (!
ReadFile(hCommandPipe, szTestName,
sizeof(szTestName), &cbRead,
NULL))
181 DPRINT(
"DLL: ReadFile failed for the command pipe with error %lu!\n",
GetLastError());
188 if (!find_test(szTestName))
190 DPRINT(
"DLL: Got invalid test name \"%s\"!\n", szTestName);
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
static DWORD const fdwReason
static const WCHAR wszWindowsKey[]
static const WCHAR wszDeviceValue[]
#define RegCloseKey(hKey)
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
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 ReadFile(a, b, c, d, e)
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
static const WCHAR Cleanup[]
_Check_return_ _CRTIMP int __cdecl _fileno(_In_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl _wfreopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode, _Inout_ FILE *_OldFile)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_CRTIMP void __cdecl setbuf(_Inout_ FILE *_File, _Inout_updates_opt_(BUFSIZ) _Post_readable_size_(0) char *_Buffer)
static IN DWORD IN LPVOID lpvReserved
#define COMMAND_PIPE_NAME
BOOL(WINAPI * PInitializePrintProvidor)(LPPRINTPROVIDOR, DWORD, LPWSTR)
void func_fpGetPrintProcessorDirectory(void)
PWSTR GetDefaultPrinterFromRegistry(VOID)
PVOID GetSpoolssFunc(const char *FunctionName)
BOOL GetLocalsplFuncs(LPPRINTPROVIDOR pp)
const struct test winetest_testlist[]
void func_fpEnumPrinters(void)
_Check_return_ _CRTIMP int __cdecl _dup2(_In_ int _FileHandleSrc, _In_ int _FileHandleDst)
_Check_return_ _CRTIMP int __cdecl _dup(_In_ int _FileHandle)
DWORD WINAPI GetLastError(void)
#define HKEY_CURRENT_USER