11#define WIN32_NO_STATUS
61 DWORD cbTokenBuffer = 0;
107 ERR(
"OpenService(\"RPCSS\") failed with error 0x%lx\n",
GetLastError());
119 L"NT AUTHORITY\\NetworkService",
123 ERR(
"ChangeServiceConfig(\"RPCSS\") failed with error 0x%lx\n",
GetLastError());
149 ERR(
"LsaOpenPolicy() failed with Status 0x%08lx\n",
Status);
157 ERR(
"LsaAddAccountRights(\"S-1-5-6\", \"%wZ\") failed with Status 0x%08lx\n",
Status, &RightString);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static BOOL SetupIsActive(VOID)
VOID DoRpcSsSetupConfiguration(VOID)
static BOOL RunningAsSYSTEM(VOID)
static VOID AddImpersonatePrivilege(VOID)
static VOID RpcSsConfigureAsNetworkService(VOID)
#define RegCloseKey(hKey)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define ERROR_INSUFFICIENT_BUFFER
#define NT_SUCCESS(StatCode)
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)
NTSTATUS WINAPI LsaOpenPolicy(IN PLSA_UNICODE_STRING SystemName OPTIONAL, IN PLSA_OBJECT_ATTRIBUTES ObjectAttributes, IN ACCESS_MASK DesiredAccess, OUT PLSA_HANDLE PolicyHandle)
NTSTATUS WINAPI LsaAddAccountRights(IN LSA_HANDLE PolicyHandle, IN PSID AccountSid, IN PLSA_UNICODE_STRING UserRights, IN ULONG CountOfRights)
NTSTATUS WINAPI LsaClose(IN LSA_HANDLE ObjectHandle)
BOOL WINAPI GetTokenInformation(HANDLE TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, LPVOID TokenInformation, DWORD TokenInformationLength, PDWORD ReturnLength)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
BOOL WINAPI EqualSid(PSID pSid1, PSID pSid2)
#define GetCurrentProcess()
#define HeapFree(x, y, z)
static HANDLE ULONG_PTR dwData
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define POLICY_CREATE_ACCOUNT
#define POLICY_LOOKUP_NAMES
SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess)
SC_HANDLE WINAPI OpenServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName, DWORD dwDesiredAccess)
BOOL WINAPI ChangeServiceConfigW(SC_HANDLE hService, DWORD dwServiceType, DWORD dwStartType, DWORD dwErrorControl, LPCWSTR lpBinaryPathName, LPCWSTR lpLoadOrderGroup, LPDWORD lpdwTagId, LPCWSTR lpDependencies, LPCWSTR lpServiceStartName, LPCWSTR lpPassword, LPCWSTR lpDisplayName)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
DWORD WINAPI GetLastError(void)
#define HKEY_LOCAL_MACHINE
#define SC_MANAGER_CONNECT
#define SERVICE_NO_CHANGE
#define SERVICE_CHANGE_CONFIG
#define SERVICES_ACTIVE_DATABASE
#define SECURITY_SERVICE_RID
#define SECURITY_LOCAL_SYSTEM_RID
#define SECURITY_NT_AUTHORITY