16#define WIN32_NO_STATUS
18#define COM_NO_WINDOWS_H
26 DWORD dwRes, dwDisposition;
47 skip(
"'HKCU\\mykey' cannot be deleted. Terminating test\n");
59 skip(
"'HKCU\\mykey1' cannot be deleted. Terminating test\n");
71 skip(
"'HKCU\\mykey2' cannot be deleted. Terminating test\n");
87 skip(
"EveryoneSID not initialized. Terminating test\n");
110 skip(
"AdminSID not initialized. Terminating test\n");
136 ok(bRes,
"InitializeSecurityDescriptor Error %ld\n",
GetLastError());
145 ok(bRes,
"SetSecurityDescriptorDacl Error %ld\n",
GetLastError());
150 sa.lpSecurityDescriptor = pSD;
158 ok(lRes ==
ERROR_SUCCESS,
"RegCreateKeyExW returned '%ld', expected 0", lRes);
166 ok(lRes ==
ERROR_SUCCESS,
"RegCreateKeyExA returned '%ld', expected 0", lRes);
176 ok(lRes ==
ERROR_SUCCESS,
"RegCreateKeyExW returned '%ld', expected 0", lRes);
184 ok(lRes ==
ERROR_SUCCESS,
"RegCreateKeyExA returned '%ld', expected 0", lRes);
194 ok(lRes ==
ERROR_SUCCESS,
"RegCreateKeyExW returned '%ld', expected 0", lRes);
202 ok(lRes ==
ERROR_SUCCESS,
"RegCreateKeyExA returned '%ld', expected 0", lRes);
DWORD WINAPI SetEntriesInAclW(ULONG cCountOfExplicitEntries, PEXPLICIT_ACCESS_W pListOfExplicitEntries, PACL OldAcl, PACL *NewAcl)
@ TRUSTEE_IS_WELL_KNOWN_GROUP
static struct sockaddr_in sa
#define ok_dec(expression, result)
#define RegCloseKey(hKey)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegDeleteKeyW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey)
LONG WINAPI RegCreateKeyExA(_In_ HKEY hKey, _In_ LPCSTR lpSubKey, _In_ DWORD Reserved, _In_ LPSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_ LPDWORD lpdwDisposition)
BOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority, BYTE nSubAuthorityCount, DWORD nSubAuthority0, DWORD nSubAuthority1, DWORD nSubAuthority2, DWORD nSubAuthority3, DWORD nSubAuthority4, DWORD nSubAuthority5, DWORD nSubAuthority6, DWORD nSubAuthority7, PSID *pSid)
BOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD dwRevision)
PVOID WINAPI FreeSid(PSID pSid)
struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES
static const WCHAR Cleanup[]
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
_In_ NDIS_ERROR_CODE ErrorCode
#define REG_CREATED_NEW_KEY
#define REG_OPENED_EXISTING_KEY
BOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR pSecurityDescriptor, BOOL bDaclPresent, PACL pDacl, BOOL bDaclDefaulted)
DWORD grfAccessPermissions
ACCESS_MODE grfAccessMode
DWORD WINAPI GetLastError(void)
#define HKEY_CURRENT_USER
#define SECURITY_BUILTIN_DOMAIN_RID
#define SECURITY_WORLD_SID_AUTHORITY
#define SECURITY_WORLD_RID
#define SECURITY_NT_AUTHORITY
#define SECURITY_DESCRIPTOR_REVISION
#define SECURITY_DESCRIPTOR_MIN_LENGTH
#define DOMAIN_ALIAS_RID_ADMINS