11{
15 wchar_t keyName[256];
16
19 hScm,
26 L"%systemroot%\\drivers\\win32k.sys",
27 L"advapi32_apitest_CreateService_Test_Group",
32
34 if (!*hService)
35 {
36 skip(
"No service; cannot proceed with CreateService test\n");
37 return 1;
38 }
39
41
42 ok(*
tag != 0,
"tag is zero, expected nonzero\n");
43
48 {
49 skip(
"No regkey; cannot proceed with CreateService test\n");
50 return 2;
51 }
52
53 tagSize = sizeof tagData;
57 ok(tagSize ==
sizeof tagData,
"tagSize=%lu, expected 4\n", tagSize);
58 ok(tagData == *
tag,
"tag=%lu, but registry says %lu\n", *
tag, tagData);
59
61
62 return 0;
63}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
GLuint GLuint GLsizei GLenum type
SC_HANDLE WINAPI CreateServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName, LPCWSTR lpDisplayName, DWORD dwDesiredAccess, DWORD dwServiceType, DWORD dwStartType, DWORD dwErrorControl, LPCWSTR lpBinaryPathName, LPCWSTR lpLoadOrderGroup, LPDWORD lpdwTagId, LPCWSTR lpDependencies, LPCWSTR lpServiceStartName, LPCWSTR lpPassword)
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
#define HKEY_LOCAL_MACHINE
#define SERVICE_KERNEL_DRIVER
#define SERVICE_BOOT_START
#define SERVICE_ERROR_IGNORE