20#define WIN32_NO_STATUS
54 if (!
x)
return "(nil)";
55 else while ((*
p++ = *
x++));
61#elif defined __x86_64__
65#elif defined __aarch64__
72"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
73"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
77"<assembly xmlns = \"urn:schemas-microsoft-com:asm.v1\" manifestVersion = \"1.0\">"
78"<assemblyIdentity version = \"1.0.0.0\" name = \"Wine.Test\" type = \"win32\"></assemblyIdentity>"
82"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
83"<assemblyIdentity version=\"1.2.3.4\" name=\"Wine.Test\" type=\"win32\">"
87"<assemblyIdentity type=\"win32\" name=\"testdep\" version=\"6.5.4.3\" processorArchitecture=\"" ARCH "\">"
93DEFINE_GUID(IID_CoTest, 0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x11, 0x11, 0x22, 0x22, 0x33, 0x33);
94DEFINE_GUID(IID_CoTest2, 0x12345678, 0x1234, 0x5678, 0x12, 0x34, 0x11, 0x11, 0x22, 0x22, 0x33, 0x34);
95DEFINE_GUID(CLSID_clrclass,0x22345678, 0x1234, 0x5678, 0x12, 0x34, 0x11, 0x11, 0x22, 0x22, 0x33, 0x33);
96DEFINE_GUID(IID_TlibTest, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55);
97DEFINE_GUID(IID_TlibTest2, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x56);
98DEFINE_GUID(IID_TlibTest3, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x57);
99DEFINE_GUID(IID_TlibTest4, 0x99999999, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x58);
100DEFINE_GUID(IID_Iifaceps, 0x66666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55);
101DEFINE_GUID(IID_Ibifaceps, 0x66666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x57);
102DEFINE_GUID(IID_Iifaceps2, 0x76666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55);
103DEFINE_GUID(IID_Iifaceps3, 0x86666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55);
104DEFINE_GUID(IID_Iiface, 0x96666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55);
105DEFINE_GUID(IID_PS32, 0x66666666, 0x8888, 0x7777, 0x66, 0x66, 0x55, 0x55, 0x55, 0x55, 0x55, 0x56);
108"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
109"<assemblyIdentity version=\"1.2.3.4\" name=\"Wine.Test\" type=\"win32\""
110" publicKeyToken=\"6595b6414666f1df\" />"
112"<file name=\"testlib.dll\">"
113"<windowClass>wndClass</windowClass>"
114" <comClass description=\"Test com class\""
115" clsid=\"{12345678-1234-5678-1234-111122223333}\""
116" tlbid=\"{99999999-8888-7777-6666-555555555555}\""
117" threadingModel=\"Neutral\""
118" progid=\"ProgId.ProgId\""
119" miscStatus=\"cantlinkinside\""
120" miscStatusIcon=\"recomposeonresize\""
121" miscStatusContent=\"insideout\""
122" miscStatusThumbnail=\"alignable\""
123" miscStatusDocPrint=\"simpleframe,setclientsitefirst\""
125" <progid>ProgId.ProgId.1</progid>"
126" <progid>ProgId.ProgId.2</progid>"
127" <progid>ProgId.ProgId.3</progid>"
128" <progid>ProgId.ProgId.4</progid>"
129" <progid>ProgId.ProgId.5</progid>"
130" <progid>ProgId.ProgId.6</progid>"
132" <comClass clsid=\"{12345678-1234-5678-1234-111122223334}\" threadingModel=\"Neutral\" >"
133" <progid>ProgId.ProgId.7</progid>"
135" <comInterfaceProxyStub "
137" tlbid=\"{99999999-8888-7777-6666-555555555558}\""
138" iid=\"{66666666-8888-7777-6666-555555555555}\""
139" proxyStubClsid32=\"{66666666-8888-7777-6666-555555555556}\""
140" threadingModel=\"Free\""
142" baseInterface=\"{66666666-8888-7777-6666-555555555557}\""
145" <comInterfaceExternalProxyStub "
147" tlbid=\"{99999999-8888-7777-6666-555555555558}\""
148" iid=\"{76666666-8888-7777-6666-555555555555}\""
149" proxyStubClsid32=\"{66666666-8888-7777-6666-555555555556}\""
151" baseInterface=\"{66666666-8888-7777-6666-555555555557}\""
153" <comInterfaceExternalProxyStub "
155" tlbid=\"{99999999-8888-7777-6666-555555555558}\""
156" iid=\"{86666666-8888-7777-6666-555555555555}\""
158" baseInterface=\"{66666666-8888-7777-6666-555555555557}\""
161" clsid=\"{96666666-8888-7777-6666-555555555555}\""
162" name=\"testsurrogate\""
163" runtimeVersion=\"v2.0.50727\""
166" clsid=\"{22345678-1234-5678-1234-111122223333}\""
168" progid=\"clrprogid\""
169" description=\"test description\""
170" tlbid=\"{99999999-8888-7777-6666-555555555555}\""
171" runtimeVersion=\"1.2.3.4\""
172" threadingModel=\"Neutral\""
174" <progid>clrprogid.1</progid>"
175" <progid>clrprogid.2</progid>"
176" <progid>clrprogid.3</progid>"
177" <progid>clrprogid.4</progid>"
178" <progid>clrprogid.5</progid>"
179" <progid>clrprogid.6</progid>"
184"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
185"<assemblyIdentity version=\"1.2.3.4\" name=\"testdep1\" type=\"win32\" processorArchitecture=\"" ARCH "\"/>"
186"<file name=\"testlib1.dll\">"
187"<windowClass versioned=\"yes\">wndClass1</windowClass>"
188"<windowClass>wndClass2</windowClass>"
189" <typelib tlbid=\"{99999999-8888-7777-6666-555555555558}\" version=\"1.0\" helpdir=\"\" />"
191"<file name=\"testlib1_2.dll\" />"
195"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
196"<assemblyIdentity version=\"4.3.2.1\" name=\"testdep2\" type=\"win32\" processorArchitecture=\"" ARCH "\" />"
197"<file name=\"testlib2.dll\">"
198" <windowClass versioned=\"no\">wndClass3</windowClass>"
199" <windowClass>wndClass4</windowClass>"
200" <typelib tlbid=\"{99999999-8888-7777-6666-555555555555}\" version=\"1.0\" helpdir=\"help\" resourceid=\"409\""
201" flags=\"HiddeN,CoNTROL,rESTRICTED\" />"
202" <typelib tlbid=\"{99999999-8888-7777-6666-555555555556}\" version=\"1.0\" helpdir=\"help1\" resourceid=\"409\" />"
203" <typelib tlbid=\"{99999999-8888-7777-6666-555555555557}\" version=\"1.0\" helpdir=\"\" />"
205"<file name=\"testlib2_2.dll\" />"
209"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
210"<assemblyIdentity version=\"1.2.3.4\" name=\"Wine.Test\" type=\"win32\" />"
212" <dependentAssembly>"
213" <assemblyIdentity type=\"win32\" name=\"testdep1\" version=\"1.2.3.4\" processorArchitecture=\"" ARCH "\" />"
214" </dependentAssembly>"
217" <dependentAssembly>"
218" <assemblyIdentity type=\"win32\" name=\"testdep2\" version=\"4.3.2.1\" processorArchitecture=\"" ARCH "\" />"
219" </dependentAssembly>"
224"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
225"<assemblyIdentity version=\"1.2.3.4\" name=\"Wine.Test\" type=\"win32\">"
229"<assemblyIdentity type=\"win32\" name=\"Microsoft.Windows.Common-Controls\" "
230 "version=\"6.0.1.0\" processorArchitecture=\"" ARCH "\" publicKeyToken=\"6595b64144ccf1df\">"
232"</dependentAssembly>"
237"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
238"<assemblyIdentity version=\"1.2.3.4\" name=\"Wine.Test\" type=\"win32\">"
241" <dependentAssembly dependencyType=\"preRequisite\" allowDelayedBinding=\"true\">"
242" <assemblyIdentity name=\"Missing.Assembly\" version=\"1.0.0.0\" />"
243" </dependentAssembly>"
248"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
249"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
250"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v1\">"
252" <requestedPrivileges>"
253" <requestedExecutionLevel level=\"ASINVOKER\" uiAccess=\"false\"/>"
254" </requestedPrivileges>"
260"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
261"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
262"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">"
264" <requestedPrivileges>"
265" <requestedExecutionLevel level=\"requireAdministrator\" uiAccess=\"TRUE\"/>"
266" </requestedPrivileges>"
272"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
273"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
274"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">"
276" <requestedPrivileges>"
277" <requestedExecutionLevel level=\"requireAdministrator\" uiAccess=\"true\">"
278" </requestedExecutionLevel>"
279" </requestedPrivileges>"
285"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
286"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
287"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">"
289" <requestedPrivileges>"
290" <requestedExecutionLevel level=\"requireAdministrator\"/>"
291" </requestedPrivileges>"
294"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">"
296" <requestedPrivileges>"
297" </requestedPrivileges>"
303"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
304"<assemblyIdentity type=\"win32\" name=\"testdep\" version=\"6.5.4.3\" processorArchitecture=\"" ARCH "\"/>"
308"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
309"<assemblyIdentity type=\"win32\" name=\"testdep\" version=\"6.5.4.3\" processorArchitecture=\"" ARCH "\" />"
310"<file name=\"testlib.dll\"></file>"
311"<file name=\"testlib2.dll\" hash=\"63c978c2b53d6cf72b42fb7308f9af12ab19ec53\" hashalg=\"SHA1\" />"
315"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\"> "
316"<assemblyIdentity type=\"win32\" name=\"testdep\" version=\"6.5.4.3\" processorArchitecture=\"" ARCH "\"/>"
317"<file name=\"testlib.dll\"/>"
318"<file name=\"testlib2.dll\" hash=\"63c978c2b53d6cf72b42fb7308f9af12ab19ec53\" hashalg=\"SHA1\">"
319"<windowClass>wndClass</windowClass>"
320"<windowClass>wndClass2</windowClass>"
325"<assembly manifestVersion=\"1.0\">"
326"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
330"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\">"
331"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
335"<assembly test=\"test\" xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
336"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
340"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
341"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
346"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
347"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
352"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v5\" manifestVersion=\"1.0\">"
353"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
357"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
358"<assemblyIdentity type=\"win32\" name=\"testdep\" version=\"6.5.4.3\" processorArchitecture=\"" ARCH "\" />"
359"<file name=\"testlib.dll\" hash=\"63c978c2b53d6cf72b42fb7308f9af12ab19ec5\" hashalg=\"SHA1\" />"
363"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
364"<assemblyIdentity version=\"1.2.3.4\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
369"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
370"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
371"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">"
373" <requestedPrivileges>"
374" <requestedExecutionLevel level=\"requireAdministrator\"/>"
375" <requestedExecutionLevel uiAccess=\"true\"/>"
376" </requestedPrivileges>"
382"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
383"<assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
384"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">"
386" <requestedPrivileges>"
387" <requestedExecutionLevel level=\"requireAdministrator\"/>"
388" </requestedPrivileges>"
391"<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v2\">"
393" <requestedPrivileges>"
394" <requestedExecutionLevel uiAccess=\"true\"/>"
395" </requestedPrivileges>"
401"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
402"<assemblyIdentity type=\"win32\" name=\"testdep\" version=\"6.5.4.4\" processorArchitecture=\"" ARCH "\" />"
406"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
407" <assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
408" <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">"
415"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
416" <assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
417" <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">"
419" <supportedOS Id=\"{e2011457-1546-43c5-a5fe-008deee3d3f0}\" />"
425"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
426" <assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
427" <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">"
429" <supportedOS Id=\"{e2011457-1546-43c5-a5fe-008deee3d3f0}\" ></supportedOS>"
430" <supportedOS Id=\"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}\" />"
431" <supportedOS Id=\"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}\" ></supportedOS>"
432" <supportedOS Id=\"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}\" />"
433" <supportedOS Id=\"{1f676c76-80e1-4239-95bb-83d0f6d0da78}\" />"
439"<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">"
440" <assemblyIdentity version=\"1.0.0.0\" name=\"Wine.Test\" type=\"win32\"></assemblyIdentity>"
441" <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">"
443" <supportedOS Id=\"{12345566-1111-2222-3333-444444444444}\" />"
448DEFINE_GUID(VISTA_COMPAT_GUID, 0xe2011457, 0x1546, 0x43c5, 0xa5, 0xfe, 0x00, 0x8d, 0xee, 0xe3, 0xd3, 0xf0);
449DEFINE_GUID(WIN7_COMPAT_GUID, 0x35138b9a, 0x5d96, 0x4fbd, 0x8e, 0x2d, 0xa2, 0x44, 0x02, 0x25, 0xf9, 0x3a);
450DEFINE_GUID(WIN8_COMPAT_GUID, 0x4a2f28e3, 0x53b9, 0x4441, 0xba, 0x9c, 0xd6, 0x9d, 0x4a, 0x4a, 0x6e, 0x38);
451DEFINE_GUID(WIN81_COMPAT_GUID, 0x1f676c76, 0x80e1, 0x4239, 0x95, 0xbb, 0x83, 0xd0, 0xf6, 0xd0, 0xda, 0x78);
452DEFINE_GUID(WIN10_COMPAT_GUID, 0x8e0f7a12, 0xbfb3, 0x4fe8, 0xb9, 0xa5, 0x48, 0xfd, 0x50, 0xa1, 0x5a, 0x9a);
453DEFINE_GUID(OTHER_COMPAT_GUID, 0x12345566, 0x1111, 0x2222, 0x33, 0x33, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44);
457 {
't',
'e',
's',
't',
'l',
'i',
'b',
'.',
'd',
'l',
'l',0};
459 {
't',
'e',
's',
't',
'l',
'i',
'b',
'2',
'.',
'd',
'l',
'l',0};
461 {
'w',
'n',
'd',
'C',
'l',
'a',
's',
's',0};
463 {
'w',
'n',
'd',
'C',
'l',
'a',
's',
's',
'1',0};
465 {
'w',
'n',
'd',
'C',
'l',
'a',
's',
's',
'2',0};
467 {
'w',
'n',
'd',
'C',
'l',
'a',
's',
's',
'3',0};
487 const char *depfile,
const char *depmanifest)
496 if (manifest_len == -1)
526 int offset = (fBOM ? 0 : 1);
529 wmanifest[0] = 0xfeff;
534 wmanifest[
i] = (wmanifest[
i] << 8) | ((wmanifest[
i] >> 8) & 0xff);
557 1, 1, 1, ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE,
manifest_path,
558 ACTIVATION_CONTEXT_PATH_TYPE_NONE, ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE,
564 ACTIVATION_CONTEXT_PATH_TYPE_NONE, ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE,
570 1, 2, 3, ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE,
manifest_path,
571 ACTIVATION_CONTEXT_PATH_TYPE_NONE, ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE,
577 ACTIVATION_CONTEXT_DETAILED_INFORMATION detailed_info_tmp, *detailed_info;
581 exsize =
sizeof(ACTIVATION_CONTEXT_DETAILED_INFORMATION)
585 if(exsize !=
sizeof(ACTIVATION_CONTEXT_DETAILED_INFORMATION)) {
588 ActivationContextDetailedInformation, &detailed_info_tmp,
589 sizeof(detailed_info_tmp), &
size);
590 ok_(__FILE__,
line)(!
b,
"QueryActCtx succeeded\n");
592 ok_(__FILE__,
line)(
size == exsize,
"size=%ld, expected %ld\n",
size, exsize);
594 size =
sizeof(ACTIVATION_CONTEXT_DETAILED_INFORMATION);
600 ActivationContextDetailedInformation, detailed_info,
603 ok_(__FILE__,
line)(retsize == exsize,
"size=%ld, expected %ld\n", retsize, exsize);
605 ok_(__FILE__,
line)(detailed_info->dwFlags == 0,
"detailed_info->dwFlags=%x\n", detailed_info->dwFlags);
607 "detailed_info->ulFormatVersion=%u, expected %u\n", detailed_info->ulFormatVersion,
611 "detailed_info->ulAssemblyCount=%u, expected between %u and %u\n", detailed_info->ulAssemblyCount,
614 "detailed_info->ulRootManifestPathType=%u, expected %u\n",
616 ok_(__FILE__,
line)(detailed_info->ulRootManifestPathChars ==
618 "detailed_info->ulRootManifestPathChars=%u, expected %u\n",
619 detailed_info->ulRootManifestPathChars,
622 "detailed_info->ulRootConfigurationPathType=%u, expected %u\n",
624 ok_(__FILE__,
line)(detailed_info->ulRootConfigurationPathChars == 0,
625 "detailed_info->ulRootConfigurationPathChars=%d\n", detailed_info->ulRootConfigurationPathChars);
627 "detailed_info->ulAppDirPathType=%u, expected %u\n", detailed_info->ulAppDirPathType,
630 "detailed_info->ulAppDirPathChars=%u, expected %u\n",
633 ok_(__FILE__,
line)(detailed_info->lpRootManifestPath !=
NULL,
"detailed_info->lpRootManifestPath == NULL\n");
634 if(detailed_info->lpRootManifestPath)
636 "unexpected detailed_info->lpRootManifestPath\n");
638 ok_(__FILE__,
line)(detailed_info->lpRootManifestPath ==
NULL,
"detailed_info->lpRootManifestPath != NULL\n");
640 ok_(__FILE__,
line)(detailed_info->lpRootConfigurationPath ==
NULL,
641 "detailed_info->lpRootConfigurationPath=%p\n", detailed_info->lpRootConfigurationPath);
643 ok_(__FILE__,
line)(detailed_info->lpAppDirPath !=
NULL,
"detailed_info->lpAppDirPath == NULL\n");
644 if(detailed_info->lpAppDirPath)
646 "unexpected detailed_info->lpAppDirPath\n%s\n",
strw(detailed_info->lpAppDirPath));
648 ok_(__FILE__,
line)(detailed_info->lpAppDirPath ==
NULL,
"detailed_info->lpAppDirPath != NULL\n");
664 "Wine.Test,type=\"win32\",version=\"1.0.0.0\"",
670 "Wine.Test,type=\"win32\",version=\"1.0.0.0\"",
676 "Wine.Test,type=\"win32\",version=\"1.2.3.4\"",
682 "Wine.Test,publicKeyToken=\"6595b6414666f1df\",type=\"win32\",version=\"1.2.3.4\"",
688 "Wine.Test,type=\"win32\",version=\"1.2.3.4\"",
694 "testdep,processorArchitecture=\"" ARCH "\","
695 "type=\"win32\",version=\"6.5.4.3\"",
701 "testdep,processorArchitecture=\"" ARCH "\","
702 "type=\"win32\",version=\"6.5.4.3\"",
708 "testdep,processorArchitecture=\"" ARCH "\",type=\"win32\",version=\"6.5.4.3\"",
718 ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION *
info, info_tmp;
723 exsize =
sizeof(ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION);
728 b = pQueryActCtxW(0,
handle, &
id,
729 AssemblyDetailedInformationInActivationContext, &info_tmp,
730 sizeof(info_tmp), &
size);
731 ok_(__FILE__,
line)(!
b,
"QueryActCtx succeeded\n");
734 ok_(__FILE__,
line)(
size >= exsize,
"size=%lu, expected %lu\n",
size, exsize);
736 if (
size == 0xdeadbeef)
746 b = pQueryActCtxW(0,
handle, &
id,
747 AssemblyDetailedInformationInActivationContext,
info,
size, &
size);
750 exsize +=
info->ulManifestPathLength +
sizeof(
WCHAR);
752 exsize +=
info->ulEncodedAssemblyIdentityLength +
sizeof(
WCHAR);
754 exsize +=
info->ulAssemblyDirectoryNameLength +
sizeof(
WCHAR);
755 ok_(__FILE__,
line)(
size == exsize,
"size=%lu, expected %lu\n",
size, exsize);
759 ok_(__FILE__,
line)((
info->ulFlags) == exinfo->
flags,
"info->ulFlags = %x, expected %x\n",
765 "info->ulEncodedAssemblyIdentityLength = %u, expected %u\n",
766 info->ulEncodedAssemblyIdentityLength,
len);
768 ok_(__FILE__,
line)(
info->ulEncodedAssemblyIdentityLength != 0,
769 "info->ulEncodedAssemblyIdentityLength == 0\n");
771 ok_(__FILE__,
line)(
info->ulManifestPathType == ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE,
772 "info->ulManifestPathType = %x\n",
info->ulManifestPathType);
775 ok_(__FILE__,
line)(
info->ulManifestPathLength ==
len,
"info->ulManifestPathLength = %u, expected %u\n",
776 info->ulManifestPathLength,
len);
778 ok_(__FILE__,
line)(
info->ulManifestPathLength != 0,
"info->ulManifestPathLength == 0\n");
781 ok_(__FILE__,
line)(
info->ulPolicyPathType == ACTIVATION_CONTEXT_PATH_TYPE_NONE,
782 "info->ulPolicyPathType = %x\n",
info->ulPolicyPathType);
784 "info->ulPolicyPathLength = %u, expected 0\n",
info->ulPolicyPathLength);
785 ok_(__FILE__,
line)(
info->ulMetadataSatelliteRosterIndex == 0,
"info->ulMetadataSatelliteRosterIndex = %x\n",
786 info->ulMetadataSatelliteRosterIndex);
787 ok_(__FILE__,
line)(
info->ulManifestVersionMajor == 1,
"info->ulManifestVersionMajor = %x\n",
788 info->ulManifestVersionMajor);
789 ok_(__FILE__,
line)(
info->ulManifestVersionMinor == 0,
"info->ulManifestVersionMinor = %x\n",
790 info->ulManifestVersionMinor);
791 ok_(__FILE__,
line)(
info->ulPolicyVersionMajor == 0,
"info->ulPolicyVersionMajor = %x\n",
792 info->ulPolicyVersionMajor);
793 ok_(__FILE__,
line)(
info->ulPolicyVersionMinor == 0,
"info->ulPolicyVersionMinor = %x\n",
794 info->ulPolicyVersionMinor);
796 ok_(__FILE__,
line)(
info->ulAssemblyDirectoryNameLength != 0,
797 "info->ulAssemblyDirectoryNameLength == 0\n");
799 ok_(__FILE__,
line)(
info->ulAssemblyDirectoryNameLength == 0,
800 "info->ulAssemblyDirectoryNameLength != 0\n");
803 "info->lpAssemblyEncodedAssemblyIdentity == NULL\n");
806 "unexpected info->lpAssemblyEncodedAssemblyIdentity %s / %s\n",
810 ok_(__FILE__,
line)(
info->lpAssemblyManifestPath !=
NULL,
"info->lpAssemblyManifestPath == NULL\n");
811 if(
info->lpAssemblyManifestPath)
813 "unexpected info->lpAssemblyManifestPath\n");
815 ok_(__FILE__,
line)(
info->lpAssemblyManifestPath !=
NULL,
"info->lpAssemblyManifestPath == NULL\n");
818 ok_(__FILE__,
line)(
info->lpAssemblyPolicyPath ==
NULL,
"info->lpAssemblyPolicyPath != NULL\n");
819 if(
info->lpAssemblyPolicyPath)
820 ok_(__FILE__,
line)(*(
WORD*)
info->lpAssemblyPolicyPath == 0,
"info->lpAssemblyPolicyPath is not empty\n");
822 ok_(__FILE__,
line)(
info->lpAssemblyDirectoryName !=
NULL,
"info->lpAssemblyDirectoryName == NULL\n");
824 ok_(__FILE__,
line)(
info->lpAssemblyDirectoryName ==
NULL,
"info->lpAssemblyDirectoryName = %s\n",
825 strw(
info->lpAssemblyDirectoryName));
831 ASSEMBLY_FILE_DETAILED_INFORMATION *
info, info_tmp;
832 ACTIVATION_CONTEXT_QUERY_INDEX
index = {assid, fileid};
836 exsize =
sizeof(ASSEMBLY_FILE_DETAILED_INFORMATION)
841 FileInformationInAssemblyOfAssemblyInActivationContext, &info_tmp,
842 sizeof(info_tmp), &
size);
843 ok_(__FILE__,
line)(!
b,
"QueryActCtx succeeded\n");
845 ok_(__FILE__,
line)(
size == exsize,
"size=%lu, expected %lu\n",
size, exsize);
847 if(
size == 0xdeadbeef)
857 FileInformationInAssemblyOfAssemblyInActivationContext,
info,
size, &
size);
861 ok_(__FILE__,
line)(
info->ulFlags == 2,
"info->ulFlags=%x, expected 2\n",
info->ulFlags);
863 "info->ulFilenameLength=%u, expected %u*sizeof(WCHAR)\n",
865 ok_(__FILE__,
line)(
info->ulPathLength == 0,
"info->ulPathLength=%u\n",
info->ulPathLength);
866 ok_(__FILE__,
line)(
info->lpFileName !=
NULL,
"info->lpFileName == NULL\n");
869 ok_(__FILE__,
line)(
info->lpFilePath ==
NULL,
"info->lpFilePath != NULL\n");
879 ACTCTX_RUN_LEVEL_UNSPECIFIED,
FALSE,
883 ACTCTX_RUN_LEVEL_AS_INVOKER,
FALSE,
887 ACTCTX_RUN_LEVEL_REQUIRE_ADMIN,
TRUE,
891 ACTCTX_RUN_LEVEL_REQUIRE_ADMIN,
TRUE,
895 ACTCTX_RUN_LEVEL_REQUIRE_ADMIN,
FALSE,
900 ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION runlevel_info;
904 size =
sizeof(runlevel_info);
906 RunlevelInformationInActivationContext, &runlevel_info,
907 sizeof(runlevel_info), &retsize);
910 win_skip(
"RunlevelInformationInActivationContext not supported.\n");
915 ok_(__FILE__,
line)(retsize ==
size,
"size=%ld, expected %ld\n", retsize,
size);
917 ok_(__FILE__,
line)(runlevel_info.ulFlags == 0,
"runlevel_info.ulFlags=%x\n", runlevel_info.ulFlags);
919 "runlevel_info.RunLevel=%u, expected %u\n", runlevel_info.RunLevel, exinfo->
run_level);
921 "runlevel_info.UiAccess=%u, expected %u\n", runlevel_info.UiAccess, exinfo->
ui_access);
932 actctx.cbSize =
sizeof(ACTCTXW);
942 ok(
actctx.wProcessorArchitecture == 0,
943 "actctx.wProcessorArchitecture=%d\n",
actctx.wProcessorArchitecture);
946 "actctx.lpAssemblyDirectory=%p\n",
actctx.lpAssemblyDirectory);
947 ok(
actctx.lpResourceName ==
NULL,
"actctx.lpResourceName=%p\n",
actctx.lpResourceName);
948 ok(
actctx.lpApplicationName ==
NULL,
"actctx.lpApplicationName=%p\n",
949 actctx.lpApplicationName);
963 actctx.cbSize =
sizeof(ACTCTXW);
972 "Unexpected context handle %p.\n",
handle);
992 actctx.cbSize =
sizeof(ACTCTXW);
1012 actctx.cbSize =
sizeof(ACTCTXW);
1019 trace(
"wrong_manifest1\n");
1021 trace(
"wrong_manifest2\n");
1023 trace(
"wrong_manifest3\n");
1025 trace(
"wrong_manifest4\n");
1027 trace(
"wrong_manifest5\n");
1029 trace(
"wrong_manifest6\n");
1031 trace(
"wrong_manifest7\n");
1033 trace(
"wrong_manifest8\n");
1035 trace(
"wrong_manifest9\n");
1037 trace(
"wrong_manifest10\n");
1039 trace(
"UTF-16 manifest1 without BOM\n");
1041 trace(
"manifest2\n");
1043 trace(
"manifest2+depmanifest1\n");
1129 ACTCTX_SECTION_KEYED_DATA
data;
1135 ret = pFindActCtxSectionStringW(0,
NULL,
1136 ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1142 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1144 ok_(__FILE__,
line)(
data.ulLength == 20,
"data.ulLength=%u\n",
data.ulLength);
1149 ok_(__FILE__,
line)(dlldata->
size ==
data.ulLength,
"got wrong size %d\n", dlldata->
size);
1150 ok_(__FILE__,
line)(dlldata->
unk == 2,
"got wrong field value %d\n", dlldata->
unk);
1151 ok_(__FILE__,
line)(dlldata->
res[0] == 0,
"got wrong res[0] value %d\n", dlldata->
res[0]);
1152 ok_(__FILE__,
line)(dlldata->
res[1] == 0,
"got wrong res[1] value %d\n", dlldata->
res[1]);
1153 ok_(__FILE__,
line)(dlldata->
res[2] == 0,
"got wrong res[2] value %d\n", dlldata->
res[2]);
1156 ok_(__FILE__,
line)(
data.lpSectionGlobalData ==
NULL,
"data.lpSectionGlobalData != NULL\n");
1157 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength == 0,
"data.ulSectionGlobalDataLength=%u\n",
1158 data.ulSectionGlobalDataLength);
1159 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1160 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
1161 data.ulSectionTotalLength);
1163 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1164 data.ulAssemblyRosterIndex, exid);
1169 ret = pFindActCtxSectionStringW(FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX,
NULL,
1170 ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1176 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1178 ok_(__FILE__,
line)(
data.ulLength == 20,
"data.ulLength=%u\n",
data.ulLength);
1179 ok_(__FILE__,
line)(
data.lpSectionGlobalData ==
NULL,
"data.lpSectionGlobalData != NULL\n");
1180 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength == 0,
"data.ulSectionGlobalDataLength=%u\n",
1181 data.ulSectionGlobalDataLength);
1182 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1183 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
1184 data.ulSectionTotalLength);
1186 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1187 data.ulAssemblyRosterIndex, exid);
1196 ACTCTX_SECTION_KEYED_DATA
data;
1202 ret = pFindActCtxSectionStringW(0,
NULL,
1203 ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
1212 ok_(__FILE__,
line)(
header->magic == 0x64487353,
"got wrong magic 0x%08x\n",
header->magic);
1215 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1217 ok_(__FILE__,
line)(wnddata->
size ==
sizeof(*wnddata),
"got %d for header size\n", wnddata->
size);
1218 if (
data.lpData && wnddata->
size ==
sizeof(*wnddata))
1220 static const WCHAR verW[] = {
'6',
'.',
'5',
'.',
'4',
'.',
'3',
'!',0};
1225 ok_(__FILE__,
line)(wnddata->
res == 0,
"got reserved as %d\n", wnddata->
res);
1240 ok_(__FILE__,
line)(
data.ulLength ==
len,
"got wrong data length %d, expected %d\n",
data.ulLength,
len);
1244 WCHAR *modulename, *sectionptr;
1249 ok_(__FILE__,
line)(modulename == sectionptr,
"got wrong name offset %p, expected %p\n", sectionptr, modulename);
1253 ok_(__FILE__,
line)(
data.lpSectionGlobalData ==
NULL,
"data.lpSectionGlobalData != NULL\n");
1254 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength == 0,
"data.ulSectionGlobalDataLength=%u\n",
1255 data.ulSectionGlobalDataLength);
1256 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1257 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
1258 data.ulSectionTotalLength);
1260 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1261 data.ulAssemblyRosterIndex, exid);
1266 ret = pFindActCtxSectionStringW(FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX,
NULL,
1267 ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
1274 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1276 ok_(__FILE__,
line)(
data.ulLength > 0,
"data.ulLength=%u\n",
data.ulLength);
1277 ok_(__FILE__,
line)(
data.lpSectionGlobalData ==
NULL,
"data.lpSectionGlobalData != NULL\n");
1278 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength == 0,
"data.ulSectionGlobalDataLength=%u\n",
1279 data.ulSectionGlobalDataLength);
1280 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1281 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
data.ulSectionTotalLength);
1283 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1284 data.ulAssemblyRosterIndex, exid);
1291 ACTCTX_SECTION_KEYED_DATA
data = {
sizeof(
data)};
1295 ok(!
ret,
"FindActCtxSectionStringW succeeded\n");
1298 ret = pFindActCtxSectionStringW(0,
NULL, ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1300 ok(!
ret,
"FindActCtxSectionStringW succeeded\n");
1303 ret = pFindActCtxSectionStringW(0,
NULL, ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1305 ok(!
ret,
"FindActCtxSectionStringW succeeded\n");
1308 ret = pFindActCtxSectionStringW(0,
NULL, ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1310 ok(!
ret,
"FindActCtxSectionStringW succeeded\n");
1314 ret = pFindActCtxSectionStringW(0,
NULL, ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1316 ok(!
ret,
"FindActCtxSectionStringW succeeded\n");
1320 ret = pFindActCtxSectionStringW(0,
NULL, ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1322 ok(!
ret,
"FindActCtxSectionStringW succeeded\n");
1329 ACTIVATION_CONTEXT_BASIC_INFORMATION basic;
1333 b = pQueryActCtxW(QUERY_ACTCTX_FLAG_NO_ADDREF,
handle,
NULL,
1334 ActivationContextBasicInformation, &basic,
1335 sizeof(basic), &
size);
1337 ok_(__FILE__,
line) (
b,
"ActivationContextBasicInformation failed\n");
1338 ok_(__FILE__,
line) (
size ==
sizeof(ACTIVATION_CONTEXT_BASIC_INFORMATION),
"size mismatch\n");
1339 ok_(__FILE__,
line) (basic.dwFlags == 0,
"unexpected flags %x\n",basic.dwFlags);
1340 ok_(__FILE__,
line) (basic.hActCtx ==
handle,
"unexpected handle\n");
1342 b = pQueryActCtxW(QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX |
1344 ActivationContextBasicInformation, &basic,
1345 sizeof(basic), &
size);
1348 ok_(__FILE__,
line) (!
b,
"ActivationContextBasicInformation succeeded\n");
1349 ok_(__FILE__,
line) (
size == 0,
"size mismatch\n");
1351 ok_(__FILE__,
line) (basic.dwFlags == 0,
"unexpected flags %x\n",basic.dwFlags);
1352 ok_(__FILE__,
line) (basic.hActCtx ==
handle,
"unexpected handle\n");
1356 ok_(__FILE__,
line) (
b,
"ActivationContextBasicInformation failed\n");
1357 ok_(__FILE__,
line) (
size ==
sizeof(ACTIVATION_CONTEXT_BASIC_INFORMATION),
"size mismatch\n");
1358 ok_(__FILE__,
line) (basic.dwFlags == 0,
"unexpected flags %x\n",basic.dwFlags);
1359 ok_(__FILE__,
line) (basic.hActCtx ==
handle,
"unexpected handle\n");
1424 ret = pFindActCtxSectionGuid(0,
NULL,
1425 ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION,
1437 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1439 ok_(__FILE__,
line)(comclass->
size ==
sizeof(*comclass),
"got %d for header size\n", comclass->
size);
1440 if (
data.lpData && comclass->
size ==
sizeof(*comclass))
1445 ok_(__FILE__,
line)(comclass->
res == 0,
"got res as %d\n", comclass->
res);
1446 ok_(__FILE__,
line)(comclass->
res1[0] == 0,
"got res1[0] as %02x\n", comclass->
res1[0]);
1447 ok_(__FILE__,
line)(comclass->
res1[1] == 0,
"got res1[1] as %02x\n", comclass->
res1[1]);
1468 "got progid name length %d\n", comclass->
progid_len);
1474 ok_(__FILE__,
line)(
data.ulLength ==
len,
"got wrong data length %d, expected %d\n",
data.ulLength,
len);
1497 static const WCHAR mscoreeW[] = {
'M',
'S',
'C',
'O',
'R',
'E',
'E',
'.',
'D',
'L',
'L',0};
1498 static const WCHAR mscoree2W[] = {
'm',
's',
'c',
'o',
'r',
'e',
'e',
'.',
'd',
'l',
'l',0};
1503 ok_(__FILE__,
line)(clrclass->
size ==
sizeof(*clrclass),
"clrclass: got size %d\n", clrclass->
size);
1504 ok_(__FILE__,
line)(clrclass->
res[0] == 0,
"clrclass: got res[0]=0x%08x\n", clrclass->
res[0]);
1505 ok_(__FILE__,
line)(clrclass->
res[1] == 2,
"clrclass: got res[1]=0x%08x\n", clrclass->
res[1]);
1514 ok_(__FILE__,
line)(clrclass->
res2[0] == 0,
"clrclass: got res2[0]=0x%08x\n", clrclass->
res2[0]);
1515 ok_(__FILE__,
line)(clrclass->
res2[1] == 0,
"clrclass: got res2[1]=0x%08x\n", clrclass->
res2[1]);
1532 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength ==
header->names_len,
"data.ulSectionGlobalDataLength=%u\n",
1533 data.ulSectionGlobalDataLength);
1534 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1535 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
1536 data.ulSectionTotalLength);
1538 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1539 data.ulAssemblyRosterIndex, exid);
1544 ret = pFindActCtxSectionGuid(0,
NULL,
1545 ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION,
1550 ok_(__FILE__,
line)(comclass->
size == comclass2->
size,
"got wrong data length %d, expected %d\n", comclass2->
size, comclass->
size);
1551 ok_(__FILE__,
line)(!
memcmp(comclass, comclass2, comclass->
size),
"got wrong data\n");
1576 ACTCTX_SECTION_KEYED_DATA
data;
1582 ret = pFindActCtxSectionGuid(0,
NULL,
1583 ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION,
1590 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1592 ok_(__FILE__,
line)(ifaceps->
size ==
sizeof(*ifaceps),
"got %d for header size\n", ifaceps->
size);
1593 if (
data.lpData && ifaceps->
size ==
sizeof(*ifaceps))
1611 ok_(__FILE__,
line)(
data.ulLength ==
len,
"got wrong data length %d, expected %d\n",
data.ulLength,
len);
1621 ok_(__FILE__,
line)(
data.lpSectionGlobalData ==
NULL,
"data.lpSectionGlobalData != NULL\n");
1622 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength == 0,
"data.ulSectionGlobalDataLength=%u\n",
1623 data.ulSectionGlobalDataLength);
1624 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1625 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
1626 data.ulSectionTotalLength);
1628 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1629 data.ulAssemblyRosterIndex, exid);
1647 ACTCTX_SECTION_KEYED_DATA
data;
1653 ret = pFindActCtxSectionGuid(0,
NULL,
1654 ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES,
1658 skip(
"surrogate sections are not supported\n");
1666 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1668 ok_(__FILE__,
line)(surrogate->
size ==
sizeof(*surrogate),
"got %d for header size\n", surrogate->
size);
1669 if (
data.lpData && surrogate->
size ==
sizeof(*surrogate))
1674 ok_(__FILE__,
line)(surrogate->
res == 0,
"invalid res value %d\n", surrogate->
res);
1684 ok_(__FILE__,
line)(
data.ulLength ==
len,
"got wrong data length %d, expected %d\n",
data.ulLength,
len);
1693 ok_(__FILE__,
line)(
data.lpSectionGlobalData ==
NULL,
"data.lpSectionGlobalData != NULL\n");
1694 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength == 0,
"data.ulSectionGlobalDataLength=%u\n",
1695 data.ulSectionGlobalDataLength);
1696 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1697 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
1698 data.ulSectionTotalLength);
1700 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1701 data.ulAssemblyRosterIndex, exid);
1715 ret = pFindActCtxSectionStringA(0,
NULL,
1716 ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION,
1723 ok_(__FILE__,
line)(
data.ulDataFormatVersion == 1,
"data.ulDataFormatVersion=%u\n",
data.ulDataFormatVersion);
1725 ok_(__FILE__,
line)(progiddata->
size ==
sizeof(*progiddata),
"got %d for header size\n", progiddata->
size);
1726 if (
data.lpData && progiddata->
size ==
sizeof(*progiddata))
1738 ret = pFindActCtxSectionGuid(0,
NULL,
1739 ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION,
1750 ok_(__FILE__,
line)(
data.ulSectionGlobalDataLength ==
header->global_len,
"data.ulSectionGlobalDataLength=%u\n",
data.ulSectionGlobalDataLength);
1751 ok_(__FILE__,
line)(
data.lpSectionBase !=
NULL,
"data.lpSectionBase == NULL\n");
1752 ok_(__FILE__,
line)(
data.ulSectionTotalLength > 0,
"data.ulSectionTotalLength=%u\n",
data.ulSectionTotalLength);
1754 ok_(__FILE__,
line)(
data.ulAssemblyRosterIndex == exid,
"data.ulAssemblyRosterIndex=%u, expected %u\n",
1755 data.ulAssemblyRosterIndex, exid);
1760 static const WCHAR cls1W[] = {
'1',
'.',
'2',
'.',
'3',
'.',
'4',
'!',
'w',
'n',
'd',
'C',
'l',
'a',
's',
's',
'1',0};
1790 ret = pFindActCtxSectionStringW(0,
NULL,
1791 ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
1794 ret = pFindActCtxSectionStringW(0,
NULL,
1795 ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
1804 ok(
data.lpSectionBase ==
data2.lpSectionBase,
"got %p, %p\n",
data.lpSectionBase,
data2.lpSectionBase);
1805 ok(
data.ulSectionTotalLength ==
data2.ulSectionTotalLength,
"got %u, %u\n",
data.ulSectionTotalLength,
1806 data2.ulSectionTotalLength);
1825 static const WCHAR testlib1W[] = {
't',
'e',
's',
't',
'l',
'i',
'b',
'1',
'.',
'd',
'l',
'l',0};
1826 static const WCHAR testlib2W[] = {
't',
'e',
's',
't',
'l',
'i',
'b',
'2',
'.',
'd',
'l',
'l',0};
1854 ret = pFindActCtxSectionStringW(0,
NULL,
1855 ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1858 ret = pFindActCtxSectionStringW(0,
NULL,
1859 ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
1868 ok(
data.lpSectionBase ==
data2.lpSectionBase,
"got %p, %p\n",
data.lpSectionBase,
data2.lpSectionBase);
1869 ok(
data.ulSectionTotalLength ==
data2.ulSectionTotalLength,
"got %u, %u\n",
data.ulSectionTotalLength,
1870 data2.ulSectionTotalLength);
1880 static const WCHAR helpW[] = {
'h',
'e',
'l',
'p'};
1909 ret = pFindActCtxSectionGuid(0,
NULL,
1910 ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION,
1911 &IID_TlibTest, &
data);
1914 ret = pFindActCtxSectionGuid(0,
NULL,
1915 ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION,
1916 &IID_TlibTest4, &
data2);
1924 ok(
data.lpSectionBase ==
data2.lpSectionBase,
"got %p, %p\n",
data.lpSectionBase,
data2.lpSectionBase);
1925 ok(
data.ulSectionTotalLength ==
data2.ulSectionTotalLength,
"got %u, %u\n",
data.ulSectionTotalLength,
1926 data2.ulSectionTotalLength);
1929 ok(
data.ulSectionGlobalDataLength ==
section->names_len,
"data.ulSectionGlobalDataLength=%u\n",
1930 data.ulSectionGlobalDataLength);
1934 ok(tlib->
size ==
sizeof(*tlib),
"got %d\n", tlib->
size);
1952 skip(
"Could not create manifest file\n");
1958 win_skip(
"allowDelayedBinding attribute is not supported.\n");
1976 trace(
"default actctx\n");
1978 b = pGetCurrentActCtx(&
handle);
1996 skip(
"Could not create manifest file\n");
2000 trace(
"manifest1\n");
2010 if (pIsDebuggerPresent && !pIsDebuggerPresent())
2014 ok(!
b,
"CloseHandle succeeded\n");
2022 skip(
"Could not create manifest file\n");
2026 trace(
"manifest2 depmanifest1\n");
2041 skip(
"Could not create manifest file\n");
2045 trace(
"manifest2 depmanifest2\n");
2063 b = pDeactivateActCtx(0,
cookie);
2069 trace(
"manifest2 depmanifest3\n");
2072 skip(
"Could not create manifest file\n");
2094 b = pDeactivateActCtx(0,
cookie);
2100 trace(
"manifest3\n");
2103 skip(
"Could not create manifest file\n");
2109 "handle == INVALID_HANDLE_VALUE, error %u\n",
GetLastError());
2111 win_skip(
"Some activation context features not supported, skipping a test (possibly old XP/Win2k3 system\n");
2114 static const WCHAR nameW[] = {
't',
'e',
's',
't',
's',
'u',
'r',
'r',
'o',
'g',
'a',
't',
'e',0};
2115 static const WCHAR versionW[] = {
'v',
'2',
'.',
'0',
'.',
'5',
'0',
'7',
'2',
'7',0};
2116 static const WCHAR progidW[] = {
'P',
'r',
'o',
'g',
'I',
'd',
'.',
'P',
'r',
'o',
'g',
'I',
'd',0};
2117 static const WCHAR clrprogidW[] = {
'c',
'l',
'r',
'p',
'r',
'o',
'g',
'i',
'd',0};
2151 b = pDeactivateActCtx(0,
cookie);
2156 trace(
"manifest6\n");
2161 "Unexpected context handle %p.\n",
handle);
2171 skip(
"Could not create manifest file 6\n");
2173 trace(
"manifest7\n");
2187 skip(
"Could not create manifest file 7\n");
2189 trace(
"manifest8\n");
2203 skip(
"Could not create manifest file 8\n");
2205 trace(
"manifest9\n");
2219 skip(
"Could not create manifest file 9\n");
2221 trace(
"manifest4\n");
2224 skip(
"Could not create manifest file\n");
2240 trace(
"manifest1 in subdir\n");
2246 skip(
"Could not create manifest file\n");
2261 skip(
"Couldn't change directory\n");
2264 trace(
"UTF-16 manifest1, with BOM\n");
2266 skip(
"Could not create manifest file\n");
2280 trace(
"UTF-16 manifest1, reverse endian, with BOM\n");
2282 skip(
"Could not create manifest file\n");
2307 trace(
"child process manifest1\n");
2309 b = pGetCurrentActCtx(&
handle);
2327 "handle == INVALID_HANDLE_VALUE, error %u\n",
GetLastError());
2336 ACTCTX_SECTION_KEYED_DATA
data;
2340 pRtlCreateUnicodeStringFromAsciiz(&string_to_findW, string_to_find);
2349 "FindActCtxSectionStringA: expected ret = %u, got %u\n", should_find,
ret);
2351 "FindActCtxSectionStringA: unexpected error %u\n",
err);
2360 "FindActCtxSectionStringW: expected ret = %u, got %u\n", should_find,
ret);
2362 "FindActCtxSectionStringW: unexpected error %u\n",
err);
2368 "FindActCtxSectionStringA: expected failure, got %u\n",
ret);
2370 "FindActCtxSectionStringA: unexpected error %u\n",
err);
2376 "FindActCtxSectionStringW: expected failure, got %u\n",
ret);
2378 "FindActCtxSectionStringW: unexpected error %u\n",
err);
2380 pRtlFreeUnicodeString(&string_to_findW);
2386 ACTCTX_SECTION_KEYED_DATA
data;
2389 pRtlCreateUnicodeStringFromAsciiz(&string_to_findW, string_to_find);
2394 ret = pRtlFindActivationContextSectionString(0,
NULL,
section, &string_to_findW, &
data);
2396 "RtlFindActivationContextSectionString: unexpected status 0x%x\n",
ret);
2398 ret = pRtlFindActivationContextSectionString(0,
NULL,
section, &string_to_findW,
NULL);
2400 "RtlFindActivationContextSectionString: unexpected status 0x%x\n",
ret);
2402 pRtlFreeUnicodeString(&string_to_findW);
2416 kernel32_find(ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION,
"testdep",
FALSE, __LINE__);
2417 kernel32_find(ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
"testlib.dll",
TRUE, __LINE__);
2418 kernel32_find(ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
"testlib2.dll",
TRUE, __LINE__);
2419 kernel32_find(ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
"testlib3.dll",
FALSE, __LINE__);
2420 kernel32_find(ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
"wndClass",
TRUE, __LINE__);
2421 kernel32_find(ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
"wndClass2",
TRUE, __LINE__);
2422 kernel32_find(ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
"wndClass3",
FALSE, __LINE__);
2425 ntdll_find(ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION,
"testdep",
FALSE, __LINE__);
2426 ntdll_find(ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
"testlib.dll",
TRUE, __LINE__);
2427 ntdll_find(ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
"testlib2.dll",
TRUE, __LINE__);
2428 ntdll_find(ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
"testlib3.dll",
FALSE, __LINE__);
2429 ntdll_find(ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
"wndClass",
TRUE, __LINE__);
2430 ntdll_find(ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
"wndClass2",
TRUE, __LINE__);
2431 ntdll_find(ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
"wndClass3",
FALSE, __LINE__);
2452 skip(
"Could not create manifest file\n");
2480 static const WCHAR dot_manifest[] = {
'.',
'M',
'a',
'n',
'i',
'f',
'e',
's',
't',0};
2481 static const WCHAR backslash[] = {
'\\',0};
2482 static const WCHAR subdir[] = {
'T',
'e',
's',
't',
'S',
'u',
'b',
'd',
'i',
'r',
'\\',0};
2491 if (*
ptr !=
'\\' && *
ptr !=
'/')
2538 actctx.cbSize =
sizeof(ACTCTXA);
2550 actctx.cbSize =
sizeof(ACTCTXA);
2551 actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
2569 actctx.cbSize =
sizeof(ACTCTXA);
2570 actctx.dwFlags = ACTCTX_FLAG_HMODULE_VALID;
2580 actctx.cbSize =
sizeof(ACTCTXA);
2581 actctx.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID | ACTCTX_FLAG_HMODULE_VALID;
2582 actctx.lpSource =
"dummyfile.dll";
2601 actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
2602 actctx.lpSource =
"testdir.manifest";
2615 actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
2616 actctx.lpSource =
"testdir.manifest";
2628 actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
2629 actctx.lpSource =
"testdir.manifest";
2638 actctx.dwFlags = ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID;
2655#define X(f) if (!(p##f = (void*)GetProcAddress(hLibrary, #f))) return FALSE;
2680 ACTIVATION_CONTEXT_BASIC_INFORMATION basicinfo;
2703 memset(&basicinfo, 0xff,
sizeof(basicinfo));
2704 ret = pQueryActCtxW(0,
handle, 0, ActivationContextBasicInformation,
2705 &basicinfo,
sizeof(basicinfo),
NULL);
2707 ok(basicinfo.hActCtx ==
handle,
"got %p\n", basicinfo.hActCtx);
2708 ok(basicinfo.dwFlags == 0,
"got %x\n", basicinfo.dwFlags);
2710 memset(&basicinfo, 0xff,
sizeof(basicinfo));
2711 ret = pQueryActCtxW(QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX,
NULL, 0, ActivationContextBasicInformation,
2712 &basicinfo,
sizeof(basicinfo),
NULL);
2714 ok(basicinfo.hActCtx ==
handle,
"got %p\n", basicinfo.hActCtx);
2715 ok(basicinfo.dwFlags == 0,
"got %x\n", basicinfo.dwFlags);
2721 memset(&basicinfo, 0xff,
sizeof(basicinfo));
2722 ret = pQueryActCtxW(0,
handle, 0, ActivationContextBasicInformation,
2723 &basicinfo,
sizeof(basicinfo),
NULL);
2725 ok(basicinfo.hActCtx ==
handle,
"got %p\n", basicinfo.hActCtx);
2726 ok(basicinfo.dwFlags == 0,
"got %x\n", basicinfo.dwFlags);
2728 memset(&basicinfo, 0xff,
sizeof(basicinfo));
2729 ret = pQueryActCtxW(QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX,
NULL, 0, ActivationContextBasicInformation,
2730 &basicinfo,
sizeof(basicinfo),
NULL);
2732 ok(basicinfo.hActCtx ==
handle,
"got %p\n", basicinfo.hActCtx);
2733 ok(basicinfo.dwFlags == 0,
"got %x\n", basicinfo.dwFlags);
2761 memset(&compat_info, 0,
sizeof(compat_info));
2762 b = pQueryActCtxW(QUERY_ACTCTX_FLAG_NO_ADDREF,
handle,
NULL,
2763 CompatibilityInformationInActivationContext, &compat_info,
2764 sizeof(compat_info), &
size);
2766 ok_(__FILE__,
line)(
b,
"CompatibilityInformationInActivationContext failed\n");
2779 memset(&compat_info, 0,
sizeof(compat_info));
2780 b = pQueryActCtxW(QUERY_ACTCTX_FLAG_NO_ADDREF,
handle,
NULL,
2781 CompatibilityInformationInActivationContext, &compat_info,
2782 sizeof(compat_info), &
size);
2784 ok_(__FILE__,
line)(
b,
"CompatibilityInformationInActivationContext failed\n");
2788 for (
n = 0;
n < num_compat; ++
n)
2791 "got wrong clsid %s, expected %s for %u\n",
2795 ok_(__FILE__,
line)(compat_info.
Elements[
n].Type == ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS,
2796 "Wrong type, got %u for %u\n", (
DWORD)compat_info.
Elements[
n].Type,
n);
2805 trace(
"manifest1\n");
2808 skip(
"Could not create manifest file\n");
2816 char buffer[
sizeof(COMPATIBILITY_CONTEXT_ELEMENT) * 2 +
sizeof(
DWORD)];
2821 b = pQueryActCtxW(QUERY_ACTCTX_FLAG_NO_ADDREF,
handle,
NULL,
2822 CompatibilityInformationInActivationContext,
buffer,
2827 win_skip(
"CompatibilityInformationInActivationContext not supported.\n");
2838 trace(
"no_supportedOs\n");
2841 skip(
"Could not create manifest file\n");
2855 trace(
"manifest_vista\n");
2858 skip(
"Could not create manifest file\n");
2866 static const GUID* expect_manifest[] =
2876 trace(
"manifest_vista_7_8_10_81\n");
2879 skip(
"Could not create manifest file\n");
2887 static const GUID* expect_manifest[] =
2901 trace(
"manifest_other_guid\n");
2904 skip(
"Could not create manifest file\n");
2912 static const GUID* expect_manifest[] =
2931 win_skip(
"Needed functions are not available\n");
char * strcat(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
static const WCHAR nameW[]
#define ERROR_NOT_ENOUGH_MEMORY
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define GetCurrentDirectoryW(x, y)
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
#define HeapFree(x, y, z)
#define ERROR_INVALID_HANDLE
#define FILE_ATTRIBUTE_NORMAL
#define MultiByteToWideChar
static const WCHAR version[]
BOOL WINAPI ZombifyActCtx(HANDLE hActCtx)
VOID WINAPI ReleaseActCtx(IN HANDLE hActCtx)
BOOL WINAPI DeactivateActCtx(IN DWORD dwFlags, IN ULONG_PTR ulCookie)
BOOL WINAPI QueryActCtxW(IN DWORD dwFlags, IN HANDLE hActCtx, IN PVOID pvSubInstance, IN ULONG ulInfoClass, IN PVOID pvBuffer, IN SIZE_T cbBuffer, IN OUT SIZE_T *pcbWrittenOrRequired OPTIONAL)
BOOL WINAPI GetCurrentActCtx(OUT PHANDLE phActCtx)
BOOL WINAPI ActivateActCtx(IN HANDLE hActCtx, OUT PULONG_PTR ulCookie)
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI RemoveDirectoryA(IN LPCSTR lpPathName)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
BOOL WINAPI CreateDirectoryA(IN LPCSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI SetFileTime(IN HANDLE hFile, CONST FILETIME *lpCreationTime OPTIONAL, CONST FILETIME *lpLastAccessTime OPTIONAL, CONST FILETIME *lpLastWriteTime OPTIONAL)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
UINT WINAPI GetWindowsDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
BOOL WINAPI SetCurrentDirectoryA(IN LPCSTR lpPathName)
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessA(LPCSTR lpApplicationName, LPSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCSTR lpCurrentDirectory, LPSTARTUPINFOA lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
BOOL WINAPI FindActCtxSectionStringW(DWORD dwFlags, const GUID *lpExtGuid, ULONG ulId, LPCWSTR lpSearchStr, PACTCTX_SECTION_KEYED_DATA pInfo)
HANDLE WINAPI CreateActCtxA(PCACTCTXA pActCtx)
BOOL WINAPI FindActCtxSectionStringA(DWORD dwFlags, const GUID *lpExtGuid, ULONG ulId, LPCSTR lpSearchStr, PACTCTX_SECTION_KEYED_DATA pInfo)
HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx)
BOOL WINAPI FindActCtxSectionGuid(DWORD dwFlags, const GUID *lpExtGuid, ULONG ulId, const GUID *lpSearchGuid, PACTCTX_SECTION_KEYED_DATA pInfo)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
static const WCHAR versionW[]
static unsigned char buff[32768]
GLint GLint GLint GLint GLint x
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLboolean GLboolean GLboolean b
GLenum GLuint GLenum GLsizei const GLchar * buf
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
static const WCHAR helpW[]
NTSYSAPI NTSTATUS WINAPI RtlFindActivationContextSectionString(ULONG, const GUID *, ULONG, const UNICODE_STRING *, PVOID)
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
struct task_struct * current
#define ERROR_FILE_NOT_FOUND
#define sprintf(buf, format,...)
static void test_create(void)
struct _test_act_ctx_compat_info test_act_ctx_compat_info
static const char wrong_manifest2[]
static void test_typelib_section(void)
static void test_CreateActCtx(void)
static const char wrong_manifest1[]
static const char wrong_manifest7[]
static WCHAR work_dir_subdir[MAX_PATH]
static void write_manifest(const char *filename, const char *manifest)
static BOOL init_funcs(void)
static void test_no_compat(HANDLE handle, int line)
static const char manifest9[]
static WCHAR exe_path[MAX_PATH]
static const char manifest5[]
static void test_dllredirect_section(void)
static void test_find_progid_redirection(HANDLE handle, const GUID *clsid, const char *progid, ULONG exid, int line)
static const info_in_assembly manifest1_child_info
static const info_in_assembly manifest3_info
static const char wrong_manifest9[]
static void test_find_string_fail(void)
static WCHAR app_manifest_path[MAX_PATH]
static const char compat_manifest_no_supportedOs[]
static const char testdep_manifest3[]
static const runlevel_info_t runlevel_info9
static const char manifest4[]
static const runlevel_info_t runlevel_info0
static void test_actctx(void)
static BOOL create_manifest_file(const char *filename, const char *manifest, int manifest_len, const char *depfile, const char *depmanifest)
static const char manifest6[]
static const char manifest_wndcls1[]
static void test_compatibility(void)
static const char wrong_manifest10[]
static const char manifest3[]
static const char testdep_manifest2[]
static const char manifest1_1[]
static const WCHAR testlib_dll[]
static void init_paths(void)
static const char manifest_wndcls2[]
static const info_in_assembly depmanifest3_info
static const char manifest2[]
static const char testdep_manifest1[]
static const char manifest7[]
static WCHAR depmanifest_path[MAX_PATH]
static void test_create_and_fail(const char *manifest, const char *depmanifest, int todo, BOOL is_broken)
static void test_ZombifyActCtx(void)
static HANDLE create_manifest(const char *filename, const char *data, int line)
static void test_find_dll_redirection(HANDLE handle, LPCWSTR libname, ULONG exid, int line)
static const char wrong_manifest4[]
static BOOL create_wide_manifest(const char *filename, const char *manifest, BOOL fBOM, BOOL fReverse)
static void kernel32_find(ULONG section, const char *string_to_find, BOOL should_find, int line)
static const char wrong_manifest6[]
static const runlevel_info_t runlevel_info7
static void test_create_fail(void)
static void delete_manifest_file(const char *filename)
static const info_in_assembly manifest1_info
static const char manifest_wndcls_main[]
static const info_in_assembly manifest_comctrl_info
static void test_findsectionstring(void)
static void test_basic_info(HANDLE handle, int line)
static const WCHAR testlib2_dll[]
static const info_in_assembly manifest2_info
static DWORD strlen_aw(const char *str)
static const info_in_assembly depmanifest2_info
static const char wrong_manifest5[]
static int strcmp_aw(LPCWSTR strw, const char *stra)
static void run_child_process(void)