39 case DLL_WINE_PREATTACH:
57#define SXS_GUID_INFORMATION_CLR_FLAG_IS_SURROGATE 0x1
58#define SXS_GUID_INFORMATION_CLR_FLAG_IS_CLASS 0x2
60#define SXS_LOOKUP_CLR_GUID_USE_ACTCTX 0x00000001
61#define SXS_LOOKUP_CLR_GUID_FIND_SURROGATE 0x00010000
62#define SXS_LOOKUP_CLR_GUID_FIND_CLR_CLASS 0x00020000
102 SIZE_T *buffer_len_required)
104 ACTCTX_SECTION_KEYED_DATA
guid_info = {
sizeof(ACTCTX_SECTION_KEYED_DATA) };
105 ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION *assembly_info;
106 SIZE_T bytes_assembly_info;
109 int len_version = 0, len_name, len_identity;
110 const void *ptr_name, *ptr_version, *ptr_identity;
115 buffer, buffer_len, buffer_len_required);
121 ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION,
clsid, &
guid_info))
128 AssemblyDetailedInformationInActivationContext,
NULL, 0, &bytes_assembly_info);
134 assembly_info =
heap_alloc(bytes_assembly_info);
136 AssemblyDetailedInformationInActivationContext, assembly_info,
137 bytes_assembly_info, &bytes_assembly_info))
145 class_data = (
void *)((
char*)redirect_data + redirect_data->
clrdata_offset);
147 ptr_identity = assembly_info->lpAssemblyEncodedAssemblyIdentity;
148 ptr_name = (
char *)class_data + class_data->
name_offset;
151 len_identity = assembly_info->ulEncodedAssemblyIdentityLength +
sizeof(
WCHAR);
157 if (!
buffer || buffer_len < *buffer_len_required)
171 memcpy(ret_strings, ptr_identity, len_identity);
172 ret->pcwszAssemblyIdentity = (
WCHAR *)ret_strings;
173 ret_strings += len_identity;
175 memcpy(ret_strings, ptr_name, len_name);
176 ret->pcwszTypeName = (
WCHAR *)ret_strings;
177 ret_strings += len_name;
181 memcpy(ret_strings, ptr_version, len_version);
182 ret->pcwszRuntimeVersion = (
WCHAR *)ret_strings;
185 ret->pcwszRuntimeVersion =
NULL;
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define ERROR_INSUFFICIENT_BUFFER
#define DLL_PROCESS_ATTACH
VOID WINAPI ReleaseActCtx(IN HANDLE hActCtx)
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 DisableThreadLibraryCalls(IN HMODULE hLibModule)
BOOL WINAPI FindActCtxSectionGuid(DWORD dwFlags, const GUID *lpExtGuid, ULONG ulId, const GUID *lpSearchGuid, PACTCTX_SECTION_KEYED_DATA pInfo)
struct _SXS_GUID_INFORMATION_CLR * PSXS_GUID_INFORMATION_CLR
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
#define SXS_GUID_INFORMATION_CLR_FLAG_IS_CLASS
#define SXS_LOOKUP_CLR_GUID_FIND_CLR_CLASS
BOOL WINAPI SxsLookupClrGuid(DWORD flags, GUID *clsid, HANDLE actctx, void *buffer, SIZE_T buffer_len, SIZE_T *buffer_len_required)
struct _SXS_GUID_INFORMATION_CLR SXS_GUID_INFORMATION_CLR
static IN DWORD IN LPVOID lpvReserved
#define memcpy(s1, s2, n)
static __inline const char * wine_dbgstr_guid(const GUID *id)
DWORD miscstatusthumbnail
DWORD WINAPI GetLastError(void)