49 trace(
"Testing '%S':\n", pszNewName);
53 cbData =
sizeof(szNVHostNameOld);
56 ok(szNVHostNameOld[0],
"szNVHostNameOld is empty\n");
60 cbData =
sizeof(szHostNameOld);
63 ok(szHostNameOld[0],
"szHostNameOld is empty\n");
67 cbData =
sizeof(szComputerNameOld);
70 ok(szComputerNameOld[0],
"szComputerNameOld is empty\n");
84 cbData =
sizeof(szNVHostNameNew);
89 ok(szNVHostNameNew[0],
"szNVHostNameNew is empty\n");
91 "szNVHostNameNew '%S' should be pszNewName '%S'\n", szNVHostNameNew, pszNewName);
96 cbData =
sizeof(szHostNameNew);
101 ok(szHostNameNew[0],
"szHostNameNew is empty\n");
102 ok(
lstrcmpW(szHostNameNew, szHostNameOld) == 0,
103 "szHostNameNew '%S' should be szHostNameOld '%S'\n", szHostNameNew, szHostNameOld);
108 cbData =
sizeof(szComputerNameNew);
113 ok(szComputerNameNew[0],
"szComputerNameNew is empty\n");
118 ok(
lstrcmpiW(szComputerNameNew, szTruncatedNewName) == 0,
119 "szComputerNameNew '%S' should be szTruncatedNewName '%S'\n",
120 szComputerNameNew, szTruncatedNewName);
125 "szComputerNameNew '%S' should be pszNewName '%S'\n",
126 szComputerNameNew, pszNewName);
#define ERROR_INVALID_PARAMETER
int WINAPI lstrcmpW(LPCWSTR lpString1, LPCWSTR lpString2)
DWORD WINAPI GetLastError(VOID)
#define ok_long(expression, result)
int WINAPI lstrcmpiW(LPCWSTR lpString1, LPCWSTR lpString2)
#define ok_int(expression, result)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define MAX_COMPUTERNAME_LENGTH
BOOL WINAPI SetComputerNameExW(COMPUTER_NAME_FORMAT NameType, LPCWSTR lpBuffer)