{
HWND handle;
- handle = CreateWindowEx(0, WC_IPADDRESS, NULL,
- WS_BORDER|WS_VISIBLE, 0, 0, 0, 0,
- NULL, NULL, NULL, NULL);
+ handle = CreateWindowExA(0, WC_IPADDRESSA, NULL,
+ WS_BORDER|WS_VISIBLE, 0, 0, 0, 0,
+ NULL, NULL, NULL, NULL);
return handle;
}
}
/* check text just after creation */
- r = GetWindowText(hwnd, ip, sizeof(ip)/sizeof(CHAR));
+ r = GetWindowTextA(hwnd, ip, sizeof(ip)/sizeof(CHAR));
expect(7, r);
ok(strcmp(ip, "0.0.0.0") == 0, "Expected null IP address, got %s\n", ip);
- SendMessage(hwnd, IPM_SETADDRESS, 0, MAKEIPADDRESS(127, 0, 0, 1));
- r = GetWindowText(hwnd, ip, sizeof(ip)/sizeof(CHAR));
+ SendMessageA(hwnd, IPM_SETADDRESS, 0, MAKEIPADDRESS(127, 0, 0, 1));
+ r = GetWindowTextA(hwnd, ip, sizeof(ip)/sizeof(CHAR));
expect(9, r);
ok(strcmp(ip, "127.0.0.1") == 0, "Expected 127.0.0.1, got %s\n", ip);
DestroyWindow(hwnd);
}
-static int init(void)
+static BOOL init(void)
{
HMODULE hComctl32;
BOOL (WINAPI *pInitCommonControlsEx)(const INITCOMMONCONTROLSEX*);
if (!pInitCommonControlsEx)
{
win_skip("InitCommonControlsEx() is missing.\n");
- return 0;
+ return FALSE;
}
iccex.dwSize = sizeof(iccex);
iccex.dwICC = ICC_INTERNET_CLASSES;
pInitCommonControlsEx(&iccex);
- return 1;
+ return TRUE;
}
START_TEST(ipaddress)