166{
167 ACTCTX_SECTION_KEYED_DATA KeyedData = { 0 };
172
174 KeyedData.cbSize = sizeof(KeyedData);
177 ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION,
179 &KeyedData);
180 ok(
res ==
TRUE,
"FindActCtxSectionString failed\n");
182
183 ok(KeyedData.ulDataFormatVersion == 1,
"Wrong format version: %lu", KeyedData.ulDataFormatVersion);
184 ok(KeyedData.hActCtx ==
h,
"Wrong handle\n");
185 ok(KeyedData.lpSectionBase !=
NULL,
"Expected non null lpSectionBase\n");
186 ok(KeyedData.lpData !=
NULL,
"Expected non null lpData\n");
189
190 if(
res ==
FALSE || KeyedData.ulDataFormatVersion != 1 || SectionHeader ==
NULL || redirData ==
NULL)
191 {
192 skip(
"Can't read data for dep1.dll. Skipping\n");
193 }
194 else
195 {
197 ok(SectionHeader->
size ==
sizeof(*SectionHeader),
"Got %lu instead of %d\n", SectionHeader->
size,
sizeof(*SectionHeader));
198 ok(SectionHeader->
count == 2,
"%lu\n", SectionHeader->
count );
199 ok(redirData->
size ==
sizeof(*redirData),
"Got %lu instead of %d\n", redirData->
size,
sizeof(*redirData));
200 }
201
203 KeyedData.cbSize = sizeof(KeyedData);
206 ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION,
208 &KeyedData);
209 ok(
res ==
TRUE,
"FindActCtxSectionString failed\n");
211 ok(KeyedData.ulDataFormatVersion == 1,
"Wrong format version: %lu", KeyedData.ulDataFormatVersion);
212 ok(KeyedData.hActCtx ==
h,
"Wrong handle\n");
213 ok(KeyedData.lpSectionBase !=
NULL,
"Expected non null lpSectionBase\n");
214 ok(KeyedData.lpData !=
NULL,
"Expected non null lpData\n");
217
218 if(
res ==
FALSE || KeyedData.ulDataFormatVersion != 1 || SectionHeader ==
NULL || assemplyData ==
NULL)
219 {
220 skip(
"Can't read data for dep1. Skipping\n");
221 }
222 else
223 {
224 LPCWSTR AssemblyIdentity, ManifestPath, AssemblyDirectory;
225 int data_lenght;
227 PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION
details = (PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION)
buffer;
228
230 ok(SectionHeader->
size ==
sizeof(*SectionHeader),
"Got %lu instead of %d\n", SectionHeader->
size,
sizeof(*SectionHeader));
231 ok(SectionHeader->
count == 2,
"%lu\n", SectionHeader->
count );
232
233 data_lenght = assemplyData->
size +
237 ok(assemplyData->
size ==
sizeof(*assemplyData),
"Got %lu instead of %d\n", assemplyData->
size,
sizeof(*assemplyData));
238 ok(KeyedData.ulLength == data_lenght,
"Got lenght %lu instead of %d\n", KeyedData.ulLength, data_lenght);
239
243
244
246 AssemblyDetailedInformationInActivationContext,
248 ok(
res ==
TRUE,
"QueryActCtxW failed\n");
255
256 ok(
wcscmp(ManifestPath,
details->lpAssemblyManifestPath) == 0,
"Expected path %S, got %S\n",
details->lpAssemblyManifestPath, ManifestPath);
257 ok(
wcscmp(AssemblyDirectory,
details->lpAssemblyDirectoryName) == 0,
"Expected path %S, got %S\n",
details->lpAssemblyManifestPath, ManifestPath);
258
259
261 }
262}
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)
DWORD ulEncodedAssemblyIdentityLength
LARGE_INTEGER liManifestLastWriteTime
DWORD ulAssemblyDirectoryNameLength
DWORD ulManifestPathOffset
DWORD ulAssemblyDirectoryNameOffset
DWORD ulEncodedAssemblyIdentityOffset
DWORD ulManifestPathLength