2 * fusion private definitions
4 * Copyright 2008 James Hawkins
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_FUSION_PRIVATE__
22 #define __WINE_FUSION_PRIVATE__
26 #define WIN32_NO_STATUS
28 #define COM_NO_WINDOWS_H
31 #define NONAMELESSUNION
32 #define NONAMELESSSTRUCT
41 #include <wine/unicode.h>
43 #include <wine/debug.h>
44 WINE_DEFAULT_DEBUG_CHANNEL(fusion
);
73 LARGE_INTEGER MaskValid
;
74 LARGE_INTEGER MaskSorted
;
152 } INTERFACEIMPLTABLE
;
174 } CUSTOMATTRIBUTETABLE
;
205 } STANDALONESIGTABLE
;
238 } METHODSEMANTICSTABLE
;
244 WORD MethodDeclaration
;
260 WORD MemberForwarded
;
274 } ASSEMBLYPROCESSORTABLE
;
279 DWORD OSMajorVersion
;
280 DWORD OSMinorVersion
;
290 WORD PublickKeyOrToken
;
300 } ASSEMBLYREFPROCESSORTABLE
;
305 DWORD OSMajorVersion
;
306 DWORD OSMinorVersion
;
308 } ASSEMBLYREFOSTABLE
;
348 } GENERICPARAMCONSTRAINTTABLE
;
352 DWORD ImportLookupTable
;
354 DWORD ForwarderChain
;
356 DWORD ImportAddressTable
;
362 DWORD HintNameTableRVA
;
389 VS_FIXEDFILEINFO Value
;
444 typedef struct tagASSEMBLY ASSEMBLY
;
446 HRESULT
assembly_create(ASSEMBLY
**out
, LPCWSTR file
) DECLSPEC_HIDDEN
;
447 HRESULT
assembly_release(ASSEMBLY
*assembly
) DECLSPEC_HIDDEN
;
448 HRESULT
assembly_get_name(ASSEMBLY
*assembly
, LPWSTR
*name
) DECLSPEC_HIDDEN
;
449 HRESULT
assembly_get_path(const ASSEMBLY
*assembly
, LPWSTR
*path
) DECLSPEC_HIDDEN
;
450 HRESULT
assembly_get_version(ASSEMBLY
*assembly
, LPWSTR
*version
) DECLSPEC_HIDDEN
;
451 PEKIND
assembly_get_architecture(ASSEMBLY
*assembly
) DECLSPEC_HIDDEN
;
452 HRESULT
assembly_get_pubkey_token(ASSEMBLY
*assembly
, LPWSTR
*token
) DECLSPEC_HIDDEN
;
453 HRESULT
assembly_get_runtime_version(ASSEMBLY
*assembly
, LPSTR
*version
) DECLSPEC_HIDDEN
;
454 HRESULT
assembly_get_external_files(ASSEMBLY
*assembly
, LPWSTR
**files
, DWORD
*count
) DECLSPEC_HIDDEN
;
456 extern HRESULT
IAssemblyName_SetPath(IAssemblyName
*iface
, LPCWSTR path
) DECLSPEC_HIDDEN
;
457 extern HRESULT
IAssemblyName_GetPath(IAssemblyName
*iface
, LPWSTR buf
, ULONG
*len
) DECLSPEC_HIDDEN
;
459 static inline LPWSTR
strdupW(LPCWSTR src
)
466 dest
= HeapAlloc(GetProcessHeap(), 0, (lstrlenW(src
) + 1) * sizeof(WCHAR
));
473 #define BYTES_PER_TOKEN 8
474 #define CHARS_PER_BYTE 2
475 #define TOKEN_LENGTH (BYTES_PER_TOKEN * CHARS_PER_BYTE + 1)
477 static inline void token_to_str(BYTE
*bytes
, LPWSTR str
)
481 static const WCHAR hexval
[] = {
482 '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'
485 for(i
= 0; i
< BYTES_PER_TOKEN
; i
++)
487 str
[i
* 2] = hexval
[((bytes
[i
] >> 4) & 0xF)];
488 str
[i
* 2 + 1] = hexval
[(bytes
[i
]) & 0x0F];
493 #endif /* __WINE_FUSION_PRIVATE__ */