15#define WIN32_NO_STATUS
28 'E',
'\\',
'M',
'i',
'c',
'r',
'o',
's',
'o',
'f',
't',
'\\',
'W',
'i',
'n',
'd',
29 'o',
'w',
's',
'\\',
'C',
'u',
'r',
'r',
'e',
'n',
't',
'V',
'e',
'r',
's',
'i',
30 'o',
'n',
'\\',
'C',
'o',
'n',
't',
'r',
'o',
'l',
's',
' ',
'F',
'o',
'l',
'd',
31 'e',
'r',
'\\',
'P',
'o',
'w',
'e',
'r',
'C',
'f',
'g',
'\\',
'P',
'o',
'w',
'e',
32 'r',
'P',
'o',
'l',
'i',
'c',
'i',
'e',
's', 0};
53 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
62 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
72 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
82 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
84 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
86 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
89 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
91 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
93 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
95 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
99 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
101 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
103 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
105 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
109 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
111 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
119 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
121 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
123 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
125 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
129 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
131 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
133 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
135 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
139 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
143 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
145 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
153 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
155 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
157 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
159 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
161 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
163 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
167 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
169 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
171 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
173 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
177 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
179 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
187 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
189 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
191 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
193 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
237 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
247 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
257 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
267 ok(retval ==
STATUS_SUCCESS,
"function result wrong expected STATUS_SUCCESS but got %d\n", (
UINT)retval);
307 ok(retval,
"function failed?");
318 ok(
lParam == 0xDEADBEEF,
"expected function lParam to be 0xDEADBEEF but got %d\n", (
UINT)
lParam);
329 ok(uiIndex <= (
UINT)
lParam,
"enumeration should have already been stopped at index %d current index %d\n", (
UINT)
lParam, uiIndex);
357 ok(!retval,
"function should have failed\n");
364 ok(retval,
"function should have succeeded\n");
388 ok(!retval,
"function was expected to fail\n");
396 ok(retval,
"function was expected to succeed %d\n",retval);
404 ok(!retval,
"function was expected to false\n");
412 ok(retval,
"function was expected to succeed but got %i\n", (
UINT)retval);
421 UINT current_scheme = 2;
422 UINT temp_scheme = 0;
455 ok(temp_scheme == current_scheme,
"expected %d but got %d\n", (
UINT)current_scheme, (
UINT)temp_scheme);
470 UINT current_scheme = 2;
478 ok(!
ret,
"function was expected to fail\n");
481 ok(!
ret,
"function was expected to fail\n");
484 ok(!
ret,
"function was expected to fail\n");
487 ok(!
ret,
"function was expected to fail\n");
490 ok(!
ret,
"function was expected to fail\n");
493 ok(!
ret,
"function was expected to fail\n");
547 ok(!
ret,
"function was expected to fail\n");
567 ok(!retval,
"function was expected to fail\n");
571 ok(!retval,
"function was expected to fail\n");
575 ok(!retval,
"function was expected to fail\n");
593 ok(!
ret,
"function was expected to fail\n");
596 ok(!
ret,
"function was expected to fail\n");
606 ok(!
ret,
"function was expected to fail\n");
616 ok(!
ret,
"function was expected to fail\n");
1162 ok(!
ret,
"function was expected to fail return %i\n",(
UINT)
ret);
1166 ok(!
ret,
"function was expected to fail return %i\n",(
UINT)
ret);
1170 ok(!
ret,
"function was expected to fail return %i\n",(
UINT)
ret);
1177 ok(!
ret,
"function was expected to fail return %i\n",(
UINT)
ret);
1208 ok(!
ret,
"function was expected to fail return %i\n",(
UINT)
ret);
1275 ok(
compare(pp,pp_compare),
"Difference Found\n");
1288 ok(!
ret,
"function was expected to fail\n");
1295 ok(!
ret,
"function was expected to fail\n");
1297 ok(
compare(pp,pp_compare),
"Difference Found\n");
1304 ok(!
ret,
"function was expected to fail\n");
1307 ok(
compare(pp,pp_compare),
"Difference Found\n");
1313 ok(!
ret,
"function was expected to fail\n");
1321 ok(!
ret,
"function was expected to fail\n");
1329 ok(!
ret,
"function was expected to fail\n");
1458 ok(!
ret,
"function was expected to fail\n");
1460 ok(
compare(pp,pp_compare),
"Difference Found\n");
1466 ok(!
ret,
"function was expected to fail\n");
1468 ok(
compare(pp,pp_compare),
"Difference Found\n");
1474 ok(!
ret,
"function was expected to fail\n");
1476 ok(
compare(pp,pp_compare),
"Difference Found\n");
1482 ok(!
ret,
"function was expected to fail\n");
1484 ok(
compare(pp,pp_compare),
"Difference Found\n");
1490 ok(!
ret,
"function was expected to fail\n");
1492 ok(
compare(pp,pp_compare),
"Difference Found\n");
1498 ok(!
ret,
"function was expected to fail\n");
1500 ok(
compare(pp,pp_compare),
"Difference Found\n");
1506 ok(!
ret,
"function was expected to fail\n");
1508 ok(
compare(pp,pp_compare),
"Difference Found\n");
1514 ok(!
ret,
"function was expected to fail\n");
1516 ok(
compare(pp,pp_compare),
"Difference Found\n");
1522 ok(!
ret,
"function was expected to fail\n");
1524 ok(
compare(pp,pp_compare),
"Difference Found\n");
1530 ok(!
ret,
"function was expected to fail\n");
1532 ok(
compare(pp,pp_compare),
"Difference Found\n");
1538 ok(!
ret,
"function was expected to fail\n");
1540 ok(
compare(pp,pp_compare),
"Difference Found\n");
1546 ok(!
ret,
"function was expected to fail\n");
1548 ok(
compare(pp,pp_compare),
"Difference Found\n");
1554 ok(!
ret,
"function was expected to fail\n");
1556 ok(
compare(pp,pp_compare),
"Difference Found\n");
1562 ok(!
ret,
"function was expected to fail\n");
1564 ok(
compare(pp,pp_compare),
"Difference Found\n");
1570 ok(!
ret,
"function was expected to fail\n");
1572 ok(
compare(pp,pp_compare),
"Difference Found\n");
1585 ok(
compare(pp,pp_compare),
"Difference Found\n");
1604 ok(
compare(pp,pp_compare),
"Difference Found\n");
1673 ok(!
ret,
"function was expected to fail\n");
1690 ok(!
ret,
"function was expected to fail\n");
1730 ok(
compare(pp,pp_compare),
"Difference Found\n");
1745 ok(
compare(pp,pp_compare),
"Difference Found\n");
1760 ok(
compare(pp,pp_compare),
"Difference Found\n");
1775 ok(
compare(pp,pp_compare),
"Difference Found\n");
1790 ok(
compare(pp,pp_compare),
"Difference Found\n");
1805 ok(
compare(pp,pp_compare),
"Difference Found\n");
1813 ok(!
ret,
"function was expected to fail\n");
1815 ok(
compare(pp,pp_compare),
"Difference Found\n");
1823 ok(!
ret,
"function was expected to fail\n");
1825 ok(
compare(pp,pp_compare),
"Difference Found\n");
1833 ok(!
ret,
"function was expected to fail\n");
1839 ok(
compare(pp,pp_compare),
"Difference Found\n");
1847 ok(!
ret,
"function was expected to fail\n");
1853 ok(
compare(pp,pp_compare),
"Difference Found\n");
1861 ok(!
ret,
"function was expected to fail\n");
1869 ok(
compare(pp,pp_compare),
"Difference Found\n");
1884 ok(
compare(pp,pp_compare),
"Difference Found\n");
1899 ok(
compare(pp,pp_compare),
"Difference Found\n");
1914 ok(
compare(pp,pp_compare),
"Difference Found\n");
1929 ok(
compare(pp,pp_compare),
"Difference Found\n");
1944 ok(
compare(pp,pp_compare),
"Difference Found\n");
1959 ok(
compare(pp,pp_compare),
"Difference Found\n");
1974 ok(
compare(pp,pp_compare),
"Difference Found\n");
1989 ok(
compare(pp,pp_compare),
"Difference Found\n");
2004 ok(
compare(pp,pp_compare),
"Difference Found\n");
2018 ok(
compare(pp,pp_compare),
"Difference Found\n");
2031 ok(
compare(pp,pp_compare),
"Difference Found\n");
2043 ok(
compare(pp,pp_compare),
"Difference Found\n");
2054 ok(
compare(pp,pp_compare),
"Difference Found\n");
2069 ok(
compare(pp,pp_compare),
"Difference Found\n");
2084 ok(
compare(pp,pp_compare),
"Difference Found\n");
2099 ok(
compare(pp,pp_compare),
"Difference Found\n");
2114 ok(
compare(pp,pp_compare),
"Difference Found\n");
2122 ok(!
ret,
"function was expected to fail\n");
2124 ok(
compare(pp,pp_compare),
"Difference Found\n");
2132 ok(!
ret,
"function was expected to fail\n");
2134 ok(
compare(pp,pp_compare),
"Difference Found\n");
2142 ok(!
ret,
"function was expected to fail\n");
2144 ok(
compare(pp,pp_compare),
"Difference Found\n");
2152 ok(!
ret,
"function was expected to fail\n");
2154 ok(
compare(pp,pp_compare),
"Difference Found\n");
2162 ok(!
ret,
"function was expected to fail\n");
2164 ok(
compare(pp,pp_compare),
"Difference Found\n");
2172 ok(!
ret,
"function was expected to fail\n");
2174 ok(
compare(pp,pp_compare),
"Difference Found\n");
2182 ok(!
ret,
"function was expected to fail\n");
2184 ok(
compare(pp,pp_compare),
"Difference Found\n");
2192 ok(!
ret,
"function was expected to fail\n");
2194 ok(
compare(pp,pp_compare),
"Difference Found\n");
2202 ok(!
ret,
"function was expected to fail\n");
2204 ok(
compare(pp,pp_compare),
"Difference Found\n");
2212 ok(!
ret,
"function was expected to fail\n");
2214 ok(
compare(pp,pp_compare),
"Difference Found\n");
2222 ok(!
ret,
"function was expected to fail\n");
2224 ok(
compare(pp,pp_compare),
"Difference Found\n");
2232 ok(!
ret,
"function was expected to fail\n");
2234 ok(
compare(pp,pp_compare),
"Difference Found\n");
2342 ok(
compare(pp,pp_compare),
"Difference Found\n");
2359 ok(
compare(pp,pp_compare),
"Difference Found\n");
2423 ok(
compare(pp,pp_compare),
"Difference Found\n");
2428 ok(
compare(pp,pp_compare),
"Difference Found\n");
2438 ok(
compare(pp,pp_compare),
"Difference Found\n");
2448 ok(
compare(pp,pp_compare),
"Difference Found\n");
2456 ok(!
ret,
"function was expected to fail\n");
2459 ok(
compare(pp,pp_compare),
"Difference Found\n");
2469 ok(
compare(pp,pp_compare),
"Difference Found\n");
2480 ok(
compare(pp,pp_compare),
"Difference Found\n");
2491 ok(
compare(pp,pp_compare),
"Difference Found\n");
2501 ok(
compare(pp,pp_compare),
"Difference Found\n");
2512 ok(
compare(pp,pp_compare),
"Difference Found\n");
2520 ok(!
ret,
"function was expected to fail\n");
2523 ok(
compare(pp,pp_compare),
"Difference Found\n");
2531 ok(!
ret,
"function was expected to fail\n");
2534 ok(
compare(pp,pp_compare),
"Difference Found\n");
2542 ok(!
ret,
"function was expected to fail\n");
2545 ok(
compare(pp,pp_compare),
"Difference Found\n");
2553 ok(!
ret,
"function was expected to fail\n");
2556 ok(
compare(pp,pp_compare),
"Difference Found\n");
2568 ok(
compare(pp,pp_compare),
"Difference Found\n");
2578 ok(
compare(pp,pp_compare),
"Difference Found\n");
2586 ok(!
ret,
"function was expected to fail\n");
2589 ok(
compare(pp,pp_compare),
"Difference Found\n");
2599 ok(
compare(pp,pp_compare),
"Difference Found\n");
2610 ok(
compare(pp,pp_compare),
"Difference Found\n");
2621 ok(
compare(pp,pp_compare),
"Difference Found\n");
2631 ok(
compare(pp,pp_compare),
"Difference Found\n");
2642 ok(
compare(pp,pp_compare),
"Difference Found\n");
2650 ok(!
ret,
"function was expected to fail\n");
2653 ok(
compare(pp,pp_compare),
"Difference Found\n");
2661 ok(!
ret,
"function was expected to fail\n");
2664 ok(
compare(pp,pp_compare),
"Difference Found\n");
2672 ok(!
ret,
"function was expected to fail\n");
2675 ok(
compare(pp,pp_compare),
"Difference Found\n");
2683 ok(!
ret,
"function was expected to fail\n");
2686 ok(
compare(pp,pp_compare),
"Difference Found\n");
2695 ok(!
ret,
"function was expected to fail\n");
2698 ok(
compare(pp,pp_compare),
"Difference Found\n");
2706 ok(!
ret,
"function was expected to fail\n");
2709 ok(
compare(pp,pp_compare),
"Difference Found\n");
2719 ok(
compare(pp,pp_compare),
"Difference Found\n");
2730 ok(
compare(pp,pp_compare),
"Difference Found\n");
2740 ok(
compare(pp,pp_compare),
"Difference Found\n");
2751 ok(
compare(pp,pp_compare),
"Difference Found\n");
2761 ok(
compare(pp,pp_compare),
"Difference Found\n");
2771 ok(
compare(pp,pp_compare),
"Difference Found\n");
2781 ok(
compare(pp,pp_compare),
"Difference Found\n");
2791 ok(
compare(pp,pp_compare),
"Difference Found\n");
2799 ok(!
ret,
"function was expected to fail\n");
2802 ok(
compare(pp,pp_compare),
"Difference Found\n");
2810 ok(!
ret,
"function was expected to fail\n");
2813 ok(
compare(pp,pp_compare),
"Difference Found\n");
2823 ok(!
ret,
"function was expected to fail\n");
2826 ok(
compare(pp,pp_compare),
"Difference Found\n");
2834 ok(!
ret,
"function was expected to fail\n");
2837 ok(
compare(pp,pp_compare),
"Difference Found\n");
2847 ok(
compare(pp,pp_compare),
"Difference Found\n");
2858 ok(
compare(pp,pp_compare),
"Difference Found\n");
2868 ok(
compare(pp,pp_compare),
"Difference Found\n");
2879 ok(
compare(pp,pp_compare),
"Difference Found\n");
2889 ok(
compare(pp,pp_compare),
"Difference Found\n");
2899 ok(
compare(pp,pp_compare),
"Difference Found\n");
2909 ok(
compare(pp,pp_compare),
"Difference Found\n");
2919 ok(
compare(pp,pp_compare),
"Difference Found\n");
2927 ok(!
ret,
"function was expected to fail\n");
2930 ok(
compare(pp,pp_compare),
"Difference Found\n");
2938 ok(!
ret,
"function was expected to fail\n");
2941 ok(
compare(pp,pp_compare),
"Difference Found\n");
2951 ok(!
ret,
"function was expected to fail\n");
2954 ok(
compare(pp,pp_compare),
"Difference Found\n");
2962 ok(!
ret,
"function was expected to fail\n");
2965 ok(
compare(pp,pp_compare),
"Difference Found\n");
2975 ok(
compare(pp,pp_compare),
"Difference Found\n");
2986 ok(
compare(pp,pp_compare),
"Difference Found\n");
2996 ok(
compare(pp,pp_compare),
"Difference Found\n");
3007 ok(
compare(pp,pp_compare),
"Difference Found\n");
3017 ok(
compare(pp,pp_compare),
"Difference Found\n");
3027 ok(
compare(pp,pp_compare),
"Difference Found\n");
3037 ok(
compare(pp,pp_compare),
"Difference Found\n");
3047 ok(
compare(pp,pp_compare),
"Difference Found\n");
3055 ok(!
ret,
"function was expected to fail\n");
3058 ok(
compare(pp,pp_compare),
"Difference Found\n");
3066 ok(!
ret,
"function was expected to fail\n");
3069 ok(
compare(pp,pp_compare),
"Difference Found\n");
3079 ok(!
ret,
"function was expected to fail\n");
3082 ok(
compare(pp,pp_compare),
"Difference Found\n");
3090 ok(!
ret,
"function was expected to fail\n");
3093 ok(
compare(pp,pp_compare),
"Difference Found\n");
3103 ok(
compare(pp,pp_compare),
"Difference Found\n");
3114 ok(
compare(pp,pp_compare),
"Difference Found\n");
3124 ok(
compare(pp,pp_compare),
"Difference Found\n");
3135 ok(
compare(pp,pp_compare),
"Difference Found\n");
3145 ok(
compare(pp,pp_compare),
"Difference Found\n");
3155 ok(
compare(pp,pp_compare),
"Difference Found\n");
3165 ok(
compare(pp,pp_compare),
"Difference Found\n");
3175 ok(
compare(pp,pp_compare),
"Difference Found\n");
3183 ok(!
ret,
"function was expected to fail\n");
3186 ok(
compare(pp,pp_compare),
"Difference Found\n");
3194 ok(!
ret,
"function was expected to fail\n");
3197 ok(
compare(pp,pp_compare),
"Difference Found\n");
3207 ok(!
ret,
"function was expected to fail\n");
3210 ok(
compare(pp,pp_compare),
"Difference Found\n");
3218 ok(!
ret,
"function was expected to fail\n");
3221 ok(
compare(pp,pp_compare),
"Difference Found\n");
3231 ok(
compare(pp,pp_compare),
"Difference Found\n");
3242 ok(
compare(pp,pp_compare),
"Difference Found\n");
3252 ok(
compare(pp,pp_compare),
"Difference Found\n");
3263 ok(
compare(pp,pp_compare),
"Difference Found\n");
3273 ok(
compare(pp,pp_compare),
"Difference Found\n");
3283 ok(
compare(pp,pp_compare),
"Difference Found\n");
3293 ok(
compare(pp,pp_compare),
"Difference Found\n");
3303 ok(
compare(pp,pp_compare),
"Difference Found\n");
3311 ok(!
ret,
"function was expected to fail\n");
3314 ok(
compare(pp,pp_compare),
"Difference Found\n");
3322 ok(!
ret,
"function was expected to fail\n");
3325 ok(
compare(pp,pp_compare),
"Difference Found\n");
3335 ok(!
ret,
"function was expected to fail\n");
3338 ok(
compare(pp,pp_compare),
"Difference Found\n");
3346 ok(!
ret,
"function was expected to fail\n");
3349 ok(
compare(pp,pp_compare),
"Difference Found\n");
3359 ok(
compare(pp,pp_compare),
"Difference Found\n");
3370 ok(
compare(pp,pp_compare),
"Difference Found\n");
3380 ok(
compare(pp,pp_compare),
"Difference Found\n");
3391 ok(
compare(pp,pp_compare),
"Difference Found\n");
3401 ok(
compare(pp,pp_compare),
"Difference Found\n");
3411 ok(
compare(pp,pp_compare),
"Difference Found\n");
3421 ok(
compare(pp,pp_compare),
"Difference Found\n");
3431 ok(
compare(pp,pp_compare),
"Difference Found\n");
3439 ok(!
ret,
"function was expected to fail\n");
3442 ok(
compare(pp,pp_compare),
"Difference Found\n");
3450 ok(!
ret,
"function was expected to fail\n");
3453 ok(
compare(pp,pp_compare),
"Difference Found\n");
3466 ok(
compare(pp,pp_compare),
"Difference Found\n");
3477 ok(
compare(pp,pp_compare),
"Difference Found\n");
3488 ok(
compare(pp,pp_compare),
"Difference Found\n");
3499 ok(
compare(pp,pp_compare),
"Difference Found\n");
3510 ok(
compare(pp,pp_compare),
"Difference Found\n");
3521 ok(
compare(pp,pp_compare),
"Difference Found\n");
3531 ok(
compare(pp,pp_compare),
"Difference Found\n");
3542 ok(
compare(pp,pp_compare),
"Difference Found\n");
3550 ok(!
ret,
"function was expected to fail\n");
3553 ok(
compare(pp,pp_compare),
"Difference Found\n");
3561 ok(!
ret,
"function was expected to fail\n");
3564 ok(
compare(pp,pp_compare),
"Difference Found\n");
3572 ok(!
ret,
"function was expected to fail\n");
3575 ok(
compare(pp,pp_compare),
"Difference Found\n");
3583 ok(!
ret,
"function was expected to fail\n");
3586 ok(
compare(pp,pp_compare),
"Difference Found\n");
3599 ok(
compare(pp,pp_compare),
"Difference Found\n");
3610 ok(
compare(pp,pp_compare),
"Difference Found\n");
3621 ok(
compare(pp,pp_compare),
"Difference Found\n");
3632 ok(
compare(pp,pp_compare),
"Difference Found\n");
3643 ok(
compare(pp,pp_compare),
"Difference Found\n");
3654 ok(
compare(pp,pp_compare),
"Difference Found\n");
3664 ok(
compare(pp,pp_compare),
"Difference Found\n");
3675 ok(
compare(pp,pp_compare),
"Difference Found\n");
3683 ok(!
ret,
"function was expected to fail\n");
3686 ok(
compare(pp,pp_compare),
"Difference Found\n");
3694 ok(!
ret,
"function was expected to fail\n");
3697 ok(
compare(pp,pp_compare),
"Difference Found\n");
3705 ok(!
ret,
"function was expected to fail\n");
3708 ok(
compare(pp,pp_compare),
"Difference Found\n");
3716 ok(!
ret,
"function was expected to fail\n");
3719 ok(
compare(pp,pp_compare),
"Difference Found\n");
3729 ok(!
ret,
"function was expected to fail\n");
3733 ok(
compare(pp,pp_compare),
"Difference Found\n");
3741 ok(!
ret,
"function was expected to fail\n");
3745 ok(
compare(pp,pp_compare),
"Difference Found\n");
3756 ok(
compare(pp,pp_compare),
"Difference Found\n");
3769 ok(
compare(pp,pp_compare),
"Difference Found\n");
3780 ok(
compare(pp,pp_compare),
"Difference Found\n");
3792 ok(
compare(pp,pp_compare),
"Difference Found\n");
3802 ok(
compare(pp,pp_compare),
"Difference Found\n");
3813 ok(
compare(pp,pp_compare),
"Difference Found\n");
3823 ok(
compare(pp,pp_compare),
"Difference Found\n");
3833 ok(
compare(pp,pp_compare),
"Difference Found\n");
3841 ok(!
ret,
"function was expected to fail\n");
3844 ok(
compare(pp,pp_compare),
"Difference Found\n");
3852 ok(!
ret,
"function was expected to fail\n");
3855 ok(
compare(pp,pp_compare),
"Difference Found\n");
3865 ok(!
ret,
"function was expected to fail\n");
3869 ok(
compare(pp,pp_compare),
"Difference Found\n");
3877 ok(!
ret,
"function was expected to fail\n");
3881 ok(
compare(pp,pp_compare),
"Difference Found\n");
3892 ok(
compare(pp,pp_compare),
"Difference Found\n");
3906 ok(
compare(pp,pp_compare),
"Difference Found\n");
3917 ok(
compare(pp,pp_compare),
"Difference Found\n");
3930 ok(
compare(pp,pp_compare),
"Difference Found\n");
3940 ok(
compare(pp,pp_compare),
"Difference Found\n");
3951 ok(
compare(pp,pp_compare),
"Difference Found\n");
3961 ok(
compare(pp,pp_compare),
"Difference Found\n");
3971 ok(
compare(pp,pp_compare),
"Difference Found\n");
3979 ok(!
ret,
"function was expected to fail\n");
3982 ok(
compare(pp,pp_compare),
"Difference Found\n");
3990 ok(!
ret,
"function was expected to fail\n");
3993 ok(
compare(pp,pp_compare),
"Difference Found\n");
4006 ok(
compare(pp,pp_compare),
"Difference Found\n");
4017 ok(
compare(pp,pp_compare),
"Difference Found\n");
4025 ok(!
ret,
"function was expected to fail\n");
4029 ok(
compare(pp,pp_compare),
"Difference Found\n");
4040 ok(
compare(pp,pp_compare),
"Difference Found\n");
4051 ok(
compare(pp,pp_compare),
"Difference Found\n");
4062 ok(
compare(pp,pp_compare),
"Difference Found\n");
4072 ok(
compare(pp,pp_compare),
"Difference Found\n");
4083 ok(
compare(pp,pp_compare),
"Difference Found\n");
4091 ok(!
ret,
"function was expected to fail\n");
4094 ok(
compare(pp,pp_compare),
"Difference Found\n");
4102 ok(!
ret,
"function was expected to fail\n");
4105 ok(
compare(pp,pp_compare),
"Difference Found\n");
4113 ok(!
ret,
"function was expected to fail\n");
4116 ok(
compare(pp,pp_compare),
"Difference Found\n");
4124 ok(!
ret,
"function was expected to fail\n");
4127 ok(
compare(pp,pp_compare),
"Difference Found\n");
4140 ok(
compare(pp,pp_compare),
"Difference Found\n");
4151 ok(
compare(pp,pp_compare),
"Difference Found\n");
4159 ok(!
ret,
"function was expected to fail\n");
4163 ok(
compare(pp,pp_compare),
"Difference Found\n");
4174 ok(
compare(pp,pp_compare),
"Difference Found\n");
4185 ok(
compare(pp,pp_compare),
"Difference Found\n");
4196 ok(
compare(pp,pp_compare),
"Difference Found\n");
4206 ok(
compare(pp,pp_compare),
"Difference Found\n");
4217 ok(
compare(pp,pp_compare),
"Difference Found\n");
4225 ok(!
ret,
"function was expected to fail\n");
4228 ok(
compare(pp,pp_compare),
"Difference Found\n");
4236 ok(!
ret,
"function was expected to fail\n");
4239 ok(
compare(pp,pp_compare),
"Difference Found\n");
4247 ok(!
ret,
"function was expected to fail\n");
4250 ok(
compare(pp,pp_compare),
"Difference Found\n");
4258 ok(!
ret,
"function was expected to fail\n");
4261 ok(
compare(pp,pp_compare),
"Difference Found\n");
4271 ok(!
ret,
"function was expected to fail\n");
4275 ok(
compare(pp,pp_compare),
"Difference Found\n");
4283 ok(!
ret,
"function was expected to fail\n");
4287 ok(
compare(pp,pp_compare),
"Difference Found\n");
4298 ok(
compare(pp,pp_compare),
"Difference Found\n");
4311 ok(
compare(pp,pp_compare),
"Difference Found\n");
4322 ok(
compare(pp,pp_compare),
"Difference Found\n");
4334 ok(
compare(pp,pp_compare),
"Difference Found\n");
4344 ok(
compare(pp,pp_compare),
"Difference Found\n");
4355 ok(
compare(pp,pp_compare),
"Difference Found\n");
4365 ok(
compare(pp,pp_compare),
"Difference Found\n");
4375 ok(
compare(pp,pp_compare),
"Difference Found\n");
4383 ok(!
ret,
"function was expected to fail\n");
4386 ok(
compare(pp,pp_compare),
"Difference Found\n");
4394 ok(!
ret,
"function was expected to fail\n");
4397 ok(
compare(pp,pp_compare),
"Difference Found\n");
4408 ok(!
ret,
"function was expected to fail\n");
4412 ok(
compare(pp,pp_compare),
"Difference Found\n");
4420 ok(!
ret,
"function was expected to fail\n");
4424 ok(
compare(pp,pp_compare),
"Difference Found\n");
4435 ok(
compare(pp,pp_compare),
"Difference Found\n");
4448 ok(
compare(pp,pp_compare),
"Difference Found\n");
4459 ok(
compare(pp,pp_compare),
"Difference Found\n");
4471 ok(
compare(pp,pp_compare),
"Difference Found\n");
4481 ok(
compare(pp,pp_compare),
"Difference Found\n");
4492 ok(
compare(pp,pp_compare),
"Difference Found\n");
4502 ok(
compare(pp,pp_compare),
"Difference Found\n");
4512 ok(
compare(pp,pp_compare),
"Difference Found\n");
4520 ok(!
ret,
"function was expected to fail\n");
4523 ok(
compare(pp,pp_compare),
"Difference Found\n");
4531 ok(!
ret,
"function was expected to fail\n");
4534 ok(
compare(pp,pp_compare),
"Difference Found\n");
4547 ok(
compare(pp,pp_compare),
"Difference Found\n");
4558 ok(
compare(pp,pp_compare),
"Difference Found\n");
4566 ok(!
ret,
"function was expected to fail\n");
4570 ok(
compare(pp,pp_compare),
"Difference Found\n");
4581 ok(
compare(pp,pp_compare),
"Difference Found\n");
4592 ok(
compare(pp,pp_compare),
"Difference Found\n");
4603 ok(
compare(pp,pp_compare),
"Difference Found\n");
4613 ok(
compare(pp,pp_compare),
"Difference Found\n");
4624 ok(
compare(pp,pp_compare),
"Difference Found\n");
4635 ok(
compare(pp,pp_compare),
"Difference Found\n");
4646 ok(
compare(pp,pp_compare),
"Difference Found\n");
4657 ok(
compare(pp,pp_compare),
"Difference Found\n");
4668 ok(
compare(pp,pp_compare),
"Difference Found\n");
4681 ok(
compare(pp,pp_compare),
"Difference Found\n");
4692 ok(
compare(pp,pp_compare),
"Difference Found\n");
4700 ok(!
ret,
"function was expected to fail\n");
4704 ok(
compare(pp,pp_compare),
"Difference Found\n");
4715 ok(
compare(pp,pp_compare),
"Difference Found\n");
4726 ok(
compare(pp,pp_compare),
"Difference Found\n");
4737 ok(
compare(pp,pp_compare),
"Difference Found\n");
4747 ok(
compare(pp,pp_compare),
"Difference Found\n");
4758 ok(
compare(pp,pp_compare),
"Difference Found\n");
4769 ok(
compare(pp,pp_compare),
"Difference Found\n");
4780 ok(
compare(pp,pp_compare),
"Difference Found\n");
4791 ok(
compare(pp,pp_compare),
"Difference Found\n");
4802 ok(
compare(pp,pp_compare),
"Difference Found\n");
4824 static const WCHAR szTestSchemeName[] = {
'P',
'o',
'w',
'r',
'p',
'r',
'o',
'f',0};
4825 static const WCHAR szTestSchemeDesc[] = {
'P',
'o',
'w',
'r',
'p',
'r',
'o',
'f',
' ',
'S',
'c',
'h',
'e',
'm',
'e',0};
4832 ok(retval,
"Warning: function should have succeeded\n");
4847 skip(
"CallNtPowerInformation test is broken and fails on Windows\n");
4869 skip(
"ValidatePowerPolicies tests are broken and fail on Windows\n");
#define STATUS_PRIVILEGE_NOT_HELD
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
LONG WINAPI RegDeleteKeyW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey)
LSTATUS WINAPI RegQueryValueW(HKEY hkey, LPCWSTR name, LPWSTR data, LPLONG count)
#define ERROR_INVALID_PARAMETER
#define ERROR_ACCESS_DENIED
GLint GLint GLint GLint GLint x
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 const GLfloat const GLdouble const GLfloat GLint i
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 const GLfloat const GLdouble const GLfloat GLint GLint GLint j
#define memcpy(s1, s2, n)
static const WCHAR szMachPowerPoliciesSubKey[]
void test_GetPwrCapabilities(void)
void test_ReadProcessorPwrScheme(void)
void test_ReadGlobalPwrPolicy(void)
void test_ReadPwrScheme(void)
void test_WriteGlobalPwrPolicy(void)
void test_IsPwrShutdownAllowed(void)
void test_IsPwrHibernateAllowed(void)
void test_GetSetActivePwrScheme(void)
unsigned int g_NumPwrSchemesEnumerated
void test_GetCurrentPowerPolicies(void)
void test_SetSuspendState(void)
void test_CallNtPowerInformation(void)
void test_ValidatePowerPolicies_Next(PGLOBAL_POWER_POLICY pGPP_original, PPOWER_POLICY pPP_original)
POWER_POLICY g_PowerPolicy
void test_IsAdminOverrideActive(void)
unsigned int g_ActivePwrScheme
unsigned int g_NumPwrSchemes
void test_GetPwrDiskSpindownRange(void)
void test_EnumPwrSchemes(void)
void test_ValidatePowerPolicies_Old(void)
BOOLEAN CALLBACK test_callback_EnumPwrScheme(UINT uiIndex, DWORD dwName, LPWSTR sName, DWORD dwDesc, LPWSTR sDesc, PPOWER_POLICY pp, LPARAM lParam)
void test_CanUserWritePwrScheme(void)
BOOLEAN globalcompare(GLOBAL_POWER_POLICY gpp, GLOBAL_POWER_POLICY gpp_compare)
void test_ValidatePowerPolicies(void)
void test_IsPwrSuspendAllowed(void)
static const WCHAR szTempPwrScheme[]
void test_WriteProcessorPwrScheme(void)
void test_WritePwrScheme(void)
unsigned int g_TempPwrScheme
void test_DeletePwrScheme(void)
BOOLEAN CALLBACK test_callback_stop_EnumPwrScheme(UINT uiIndex, DWORD dwName, LPWSTR sName, DWORD dwDesc, LPWSTR sDesc, PPOWER_POLICY pp, LPARAM lParam)
@ PowerActionShutdownReset
#define NUM_DISCHARGE_POLICIES
@ SystemPowerStateNotifyHandler
@ AdministratorPowerPolicy
@ SystemPowerCapabilities
@ ProcessorPowerPolicyCurrent
@ VerifyProcessorPowerPolicyDc
@ VerifyProcessorPowerPolicyAc
@ SystemPowerPolicyCurrent
@ SystemPowerStateHandler
BOOLEAN WINAPI GetPwrCapabilities(PSYSTEM_POWER_CAPABILITIES lpSystemPowerCapabilities)
BOOLEAN WINAPI ReadProcessorPwrScheme(UINT uiID, PMACHINE_PROCESSOR_POWER_POLICY pMachineProcessorPowerPolicy)
BOOLEAN WINAPI GetCurrentPowerPolicies(PGLOBAL_POWER_POLICY pGlobalPowerPolicy, PPOWER_POLICY pPowerPolicy)
NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL InformationLevel, PVOID lpInputBuffer, ULONG nInputBufferSize, PVOID lpOutputBuffer, ULONG nOutputBufferSize)
BOOLEAN WINAPI IsAdminOverrideActive(PADMINISTRATOR_POWER_POLICY p)
BOOLEAN WINAPI ReadPwrScheme(UINT uiID, PPOWER_POLICY pPowerPolicy)
BOOLEAN WINAPI GetActivePwrScheme(PUINT puiID)
BOOLEAN WINAPI ValidatePowerPolicies(PGLOBAL_POWER_POLICY pGPP, PPOWER_POLICY pPP)
BOOLEAN WINAPI WritePwrScheme(PUINT puiID, LPWSTR lpszName, LPWSTR lpszDescription, PPOWER_POLICY pPowerPolicy)
BOOLEAN WINAPI SetActivePwrScheme(UINT uiID, PGLOBAL_POWER_POLICY lpGlobalPowerPolicy, PPOWER_POLICY lpPowerPolicy)
BOOLEAN WINAPI EnumPwrSchemes(PWRSCHEMESENUMPROC lpfnPwrSchemesEnumProc, LPARAM lParam)
BOOLEAN WINAPI DeletePwrScheme(UINT uiIndex)
BOOLEAN WINAPI CanUserWritePwrScheme(VOID)
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)
BOOLEAN WINAPI GetPwrDiskSpindownRange(PUINT RangeMax, PUINT RangeMin)
SYSTEM_POWER_STATE MinSleep
SYSTEM_POWER_STATE MaxSleep
SYSTEM_POWER_STATE LidOpenWakeDc
SYSTEM_POWER_STATE LidOpenWakeAc
ULONG BroadcastCapacityResolution
GLOBAL_USER_POWER_POLICY user
GLOBAL_MACHINE_POWER_POLICY mach
SYSTEM_POWER_LEVEL DischargePolicy[NUM_DISCHARGE_POLICIES]
POWER_ACTION_POLICY PowerButtonDc
POWER_ACTION_POLICY LidCloseDc
POWER_ACTION_POLICY SleepButtonDc
POWER_ACTION_POLICY PowerButtonAc
POWER_ACTION_POLICY SleepButtonAc
POWER_ACTION_POLICY LidCloseAc
SYSTEM_POWER_STATE MinSleepAc
SYSTEM_POWER_STATE ReducedLatencySleepDc
POWER_ACTION_POLICY OverThrottledDc
SYSTEM_POWER_STATE ReducedLatencySleepAc
POWER_ACTION_POLICY OverThrottledAc
SYSTEM_POWER_STATE MinSleepDc
PROCESSOR_POWER_POLICY ProcessorPolicyDc
PROCESSOR_POWER_POLICY ProcessorPolicyAc
MACHINE_POWER_POLICY mach
SYSTEM_POWER_STATE MinSystemState
POWER_ACTION_POLICY PowerPolicy
SYSTEM_POWER_STATE MaxSleepAc
SYSTEM_POWER_STATE MaxSleepDc
POWER_ACTION_POLICY IdleAc
UCHAR FanThrottleToleranceDc
UCHAR FanThrottleToleranceAc
BOOLEAN OptimizeForPowerDc
POWER_ACTION_POLICY IdleDc
BOOLEAN OptimizeForPowerAc
#define RtlZeroMemory(Destination, Length)
#define STATUS_ACCESS_DENIED
#define STATUS_INVALID_PARAMETER
DWORD WINAPI GetLastError(void)
#define ERROR_GEN_FAILURE
#define ERROR_INVALID_DATA
#define ERROR_REVISION_MISMATCH
#define HKEY_LOCAL_MACHINE