31static WCHAR winehq[] = {
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',0};
34static WCHAR about[] = {
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',0};
36static WCHAR escape[] = {
' ',
'!',
'"',
'#',
'$',
'%',
'&',
'\'',
'(',
')',
'*',
'+',
',',
'-',
'.',
'/',
':',
';',
'<',
'=',
'>',
'?',
'@',
'[',
'\\',
']',
'^',
'_',
'`',
'{',
'|',
'}',
'~',0};
42 {
'h',
't',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
43 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
'?',
'q',
'u',
'e',
'r',
'y',0};
44static const WCHAR url2[] = {
'h',
't',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',0};
46 {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
'?',
'q',
'u',
'e',
'r',
'y',0};
47static const WCHAR url4[] = {
'h',
't',
't',
'p',
':',
'/',
'/',0};
49 {
'f',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
50 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',
'8',
'0',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
'?',
'q',
'u',
'e',
'r',
'y',0};
52 {
'h',
't',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
53 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',
'4',
'2',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
'?',
'q',
'u',
'e',
'r',
'y',0};
55 {
'h',
't',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
56 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
57 '%',
'2',
'0',
'!',
'%',
'2',
'2',
'%',
'2',
'3',
'$',
'%',
'2',
'5',
'&',
'\'',
'(',
')',
'*',
'+',
',',
'-',
'.',
'/',
':',
';',
'%',
'3',
'C',
'=',
'%',
'3',
'E',
'?',
'@',
'%',
58 '5',
'B',
'%',
'5',
'C',
'%',
'5',
'D',
'%',
'5',
'E',
'_',
'%',
'6',
'0',
'%',
'7',
'B',
'%',
'7',
'C',
'%',
'7',
'D',
'%',
'7',
'E',0};
60 {
'h',
't',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
61 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',
'0',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
'?',
'q',
'u',
'e',
'r',
'y',0};
63 {
'h',
't',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
64 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',
'8',
'0',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
'?',
'q',
'u',
'e',
'r',
'y',0};
66 {
'h',
't',
't',
'p',
's',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
67 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',
'4',
'4',
'3',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',
'?',
'q',
'u',
'e',
'r',
'y',0};
69 {
'h',
't',
't',
'p',
':',
'/',
'/',
'e',
'x',
'a',
'm',
'p',
'l',
'e',
'.',
'n',
'e',
't',
'/',
'p',
'a',
't',
'h',
'?',
'v',
'a',
'r',
'1',
'=',
'e',
'x',
'a',
'm',
'p',
'l',
'e',
'@',
'e',
'x',
'a',
'm',
'p',
'l',
'e',
'.',
'c',
'o',
'm',
'&',
'v',
'a',
'r',
'2',
'=',
'x',
'&',
'v',
'a',
'r',
'3',
'=',
'y', 0};
71 {
'h',
't',
't',
'p',
's',
':',
'/',
'/',
't',
'o',
'o',
'l',
's',
'.',
'g',
'o',
'o',
'g',
'l',
'e',
'.',
'c',
'o',
'm',
'/',
's',
'e',
'r',
'v',
'i',
'c',
'e',
'/',
'u',
'p',
'd',
'a',
't',
'e',
'2',
'?',
'w',
'=',
'3',
':',
'B',
'x',
'D',
'H',
'o',
'W',
'y',
'8',
'e',
'z',
'M',0};
73 {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
' ',
'g',
'/',
'p',
'a',
't',
'h',
' ',
'w',
'i',
't',
'h',
' ',
's',
'p',
'a',
'c',
'e',
's',0};
74static const WCHAR url14[] = {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
'/',
't',
'e',
's',
't',0};
75static const WCHAR url15[] = {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',
'6',
'5',
'5',
'3',
'6',0};
76static const WCHAR url16[] = {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',
'0',0};
77static const WCHAR url17[] = {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
':',0};
79 {
'h',
't',
't',
'p',
':',
'/',
'/',
'%',
'0',
'D',
'%',
'1',
'F',
'%',
'2',
'0',
'%',
'0',
'A',
'%',
'7',
'F',
'%',
'0',
'D',
'%',
'0',
'A',0};
81 {
'h',
't',
't',
'p',
':',
'/',
'/',
'?',
't',
'e',
'x',
't',
'=',0xfb00,0};
83 {
'h',
't',
't',
'p',
':',
'/',
'/',
'/',
't',
'e',
'x',
't',
'=',0xfb00,0};
85 {
'h',
't',
't',
'p',
's',
':',
'/',
'/',
'n',
'b',
'a',
'2',
'k',
'1',
'9',
'-',
'w',
's',
'.',
'2',
'k',
's',
'p',
'o',
'r',
't',
's',
'.',
'c',
'o',
'm',
':',
'1',
'9',
'1',
'3',
'3',
86 '/',
'n',
'b',
'a',
'/',
'v',
'4',
'/',
'A',
'c',
'c',
'o',
'u',
'n',
't',
's',
'/',
'g',
'e',
't',
'_',
'a',
'c',
'c',
'o',
'u',
'n',
't',
'?',
'x',
'=',
'3',
'7',
'8',
'9',
'5',
'2',
87 '6',
'7',
'7',
'5',
'2',
'6',
'5',
'6',
'6',
'3',
'8',
'7',
'6',0};
90 {
'h',
't',
't',
'p',
':',
'/',
'/',
'u',
's',
'e',
'r',
'n',
'a',
'm',
'e',
':',
'p',
'a',
's',
's',
'w',
'o',
'r',
'd',
91 '@',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
'/',
's',
'i',
't',
'e',
'/',
'a',
'b',
'o',
'u',
't',0};
93 {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',0};
95 {
'h',
't',
't',
'p',
's',
':',
'/',
'/',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',
'/',
'p',
'o',
's',
't',
'?',0};
97 {
'H',
'T',
'T',
'P',
':',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',0};
99 {
'h',
't',
't',
'p',
':',
'/',
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',0};
101 {
'w',
'w',
'w',
'.',
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
'r',
'g',0};
107 {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'i',
'n',
'e',
'h',
'q',
'?',0};
109 {
'h',
't',
't',
'p',
':',
'/',
'/',
'w',
'i',
'n',
'e',
'h',
'q',
'/',
'p',
'o',
's',
't',
';',
'a',0};
141 ok( !
ret,
"expected failure\n" );
143 ok(
len == ~0
u,
"expected len ~0u got %u\n",
len );
149 ok( !
ret,
"expected failure\n" );
151 ok(
len == ~0
u,
"expected len ~0u got %u\n",
len );
157 ok( !
ret,
"expected failure\n" );
164 ok( !
ret,
"expected failure\n" );
166 ok(
len == 57,
"expected len 57 got %u\n",
len );
173 ok( !
ret,
"expected failure\n" );
175 "expected ERROR_INVALID_PARAMETER got %u\n",
GetLastError() );
183 ok( !
ret,
"expected failure\n" );
185 "expected ERROR_INVALID_PARAMETER got %u\n",
GetLastError() );
194 ok( !
ret,
"expected failure\n" );
196 ok(
len == 57,
"expected len 57 got %u\n",
len );
204 ok(
ret,
"expected success\n" );
207 ok(
len == 56,
"expected len 56 got %u\n",
len );
216 ok(
ret,
"expected success\n" );
217 ok(
len == 56,
"expected len 56 got %u\n",
len );
224 ok(
ret,
"expected success\n" );
225 ok(
len == 56,
"expected len 56 got %d\n",
len );
234 ok(
ret,
"expected success\n" );
242 ok(
ret,
"expected success\n" );
243 ok(
len == 56,
"expected len 56 got %u\n",
len );
253 ok( !
ret,
"expected failure\n" );
262 ok(
ret,
"expected success\n");
271 ok(
ret,
"expected success\n" );
272 ok(
len == 38,
"expected len 38 got %u\n",
len );
282 ok(
ret,
"expected success\n" );
283 ok(
len == 56,
"expected len 56 got %u\n",
len );
293 ok(
ret,
"expected success\n" );
304 ok(
ret,
"expected success\n" );
305 ok(
len == 59,
"expected len 59 got %u\n",
len );
315 ok(
ret,
"expected success\n" );
316 ok(
len == 113,
"expected len 113 got %u\n",
len );
320 memset( &uc, 0,
sizeof(uc) );
327 ok(
ret,
"expected success\n" );
332 memset( &uc, 0,
sizeof(uc) );
341 ok( !
ret,
"expected failure\n" );
345 memset( &uc, 0,
sizeof(uc) );
360 memset( &uc, 0,
sizeof(uc) );
367 ok(
ret,
"expected success\n" );
372 memset( &uc, 0,
sizeof(uc) );
381 ok( !
ret,
"expected failure\n" );
385 memset( &uc, 0,
sizeof(uc) );
408 ok(
ret,
"expected success\n" );
409 ok(
len == 58,
"expected len 58 got %u\n",
len );
430 static const WCHAR hostnameW[] =
431 {
'w',
'i',
'n',
'e',
'h',
'q',
'.',
'o',
' ',
'g',0};
432 static const WCHAR pathW[] =
433 {
'/',
'p',
'a',
't',
'h',
'%',
'2',
'0',
'w',
'i',
't',
'h',
'%',
'2',
'0',
's',
'p',
'a',
'c',
'e',
's',0};
469 ok( uc.
nPort == 80,
"unexpected port: %u\n", uc.
nPort );
482 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
493 ok(
ret,
"WinHttpCrackUrl failed le=%u\n",
error );
495 "got %u, expected ERROR_SUCCESS\n",
error );
505 ok( uc.
nPort == 80,
"unexpected port: %u\n", uc.
nPort );
525 ok( uc.
nPort == 80,
"unexpected port: %u\n", uc.
nPort );
543 ok( uc.
nPort == 443,
"unexpected port: %u\n", uc.
nPort );
553 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
560 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
567 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
574 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
582 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
608 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
615 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
621 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
627 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
635 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
682 ok( uc.
nPort == 42,
"unexpected port: %u\n", uc.
nPort );
693 ok( uc.
nPort == 80,
"unexpected port: %u\n", uc.
nPort );
698 ok( uc.
nPort == 443,
"unexpected port: %u\n", uc.
nPort );
704 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
711 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
724 ok( uc.
nPort == 80,
"unexpected port: %u\n", uc.
nPort );
815 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
836 ok( !
ret,
"WinHttpCrackUrl succeeded\n" );
851 memset( &uc, 0,
sizeof(uc) );
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
void user(int argc, const char *argv[])
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
BOOL WINAPI WinHttpCrackUrl(LPCWSTR url, DWORD len, DWORD flags, LPURL_COMPONENTSW uc)
BOOL WINAPI WinHttpCreateUrl(LPURL_COMPONENTS uc, DWORD flags, LPWSTR url, LPDWORD required)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
static const WCHAR url1[]
static const WCHAR url2[]
static const WCHAR url6[]
static const WCHAR url15[]
static void WinHttpCrackUrl_test(void)
static const WCHAR url_k6[]
static void WinHttpCreateUrl_test(void)
static const WCHAR url5[]
static const WCHAR url_k2[]
static const WCHAR url4[]
static void reset_url_components(URL_COMPONENTS *uc)
static const WCHAR url_k10[]
static const WCHAR url8[]
static const WCHAR url14[]
static const WCHAR url_k4[]
static const WCHAR url_k8[]
static const WCHAR url11[]
static const WCHAR url21[]
static const WCHAR url16[]
static const WCHAR url_k5[]
static const WCHAR url20[]
static void fill_url_components(URL_COMPONENTS *uc)
static const WCHAR url_k3[]
static const WCHAR url13[]
static const WCHAR url19[]
static const WCHAR url9[]
static const WCHAR url_k7[]
static const WCHAR url_k1[]
static const WCHAR url17[]
static const WCHAR url_k9[]
static const WCHAR url3[]
static const WCHAR url10[]
static const WCHAR url12[]
static const WCHAR url18[]
static const WCHAR url7[]
DWORD WINAPI GetLastError(void)
#define ERROR_WINHTTP_INVALID_URL
#define INTERNET_SCHEME_HTTP
#define ERROR_WINHTTP_UNRECOGNIZED_SCHEME
#define INTERNET_SCHEME_HTTPS