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
42 #include <wine/unicode.h>
44 #include <wine/debug.h>
45 WINE_DEFAULT_DEBUG_CHANNEL(fusion
);
74 LARGE_INTEGER MaskValid
;
75 LARGE_INTEGER MaskSorted
;
153 } INTERFACEIMPLTABLE
;
175 } CUSTOMATTRIBUTETABLE
;
206 } STANDALONESIGTABLE
;
239 } METHODSEMANTICSTABLE
;
245 WORD MethodDeclaration
;
261 WORD MemberForwarded
;
275 } ASSEMBLYPROCESSORTABLE
;
280 DWORD OSMajorVersion
;
281 DWORD OSMinorVersion
;
291 WORD PublickKeyOrToken
;
301 } ASSEMBLYREFPROCESSORTABLE
;
306 DWORD OSMajorVersion
;
307 DWORD OSMinorVersion
;
309 } ASSEMBLYREFOSTABLE
;
349 } GENERICPARAMCONSTRAINTTABLE
;
353 DWORD ImportLookupTable
;
355 DWORD ForwarderChain
;
357 DWORD ImportAddressTable
;
363 DWORD HintNameTableRVA
;
390 VS_FIXEDFILEINFO Value
;
445 typedef struct tagASSEMBLY ASSEMBLY
;
447 HRESULT
assembly_create(ASSEMBLY
**out
, LPCWSTR file
) DECLSPEC_HIDDEN
;
448 HRESULT
assembly_release(ASSEMBLY
*assembly
) DECLSPEC_HIDDEN
;
449 HRESULT
assembly_get_name(ASSEMBLY
*assembly
, LPWSTR
*name
) DECLSPEC_HIDDEN
;
450 HRESULT
assembly_get_path(const ASSEMBLY
*assembly
, LPWSTR
*path
) DECLSPEC_HIDDEN
;
451 HRESULT
assembly_get_version(ASSEMBLY
*assembly
, LPWSTR
*version
) DECLSPEC_HIDDEN
;
452 PEKIND
assembly_get_architecture(ASSEMBLY
*assembly
) DECLSPEC_HIDDEN
;
453 HRESULT
assembly_get_pubkey_token(ASSEMBLY
*assembly
, LPWSTR
*token
) DECLSPEC_HIDDEN
;
454 HRESULT
assembly_get_runtime_version(ASSEMBLY
*assembly
, LPSTR
*version
) DECLSPEC_HIDDEN
;
455 HRESULT
assembly_get_external_files(ASSEMBLY
*assembly
, LPWSTR
**files
, DWORD
*count
) DECLSPEC_HIDDEN
;
457 extern HRESULT
IAssemblyName_SetPath(IAssemblyName
*iface
, LPCWSTR path
) DECLSPEC_HIDDEN
;
458 extern HRESULT
IAssemblyName_GetPath(IAssemblyName
*iface
, LPWSTR buf
, ULONG
*len
) DECLSPEC_HIDDEN
;
460 static inline LPWSTR
strdupW(LPCWSTR src
)
467 dest
= HeapAlloc(GetProcessHeap(), 0, (lstrlenW(src
) + 1) * sizeof(WCHAR
));
474 #define BYTES_PER_TOKEN 8
475 #define CHARS_PER_BYTE 2
476 #define TOKEN_LENGTH (BYTES_PER_TOKEN * CHARS_PER_BYTE + 1)
478 static inline void token_to_str(BYTE
*bytes
, LPWSTR str
)
482 static const WCHAR hexval
[] = {
483 '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'
486 for(i
= 0; i
< BYTES_PER_TOKEN
; i
++)
488 str
[i
* 2] = hexval
[((bytes
[i
] >> 4) & 0xF)];
489 str
[i
* 2 + 1] = hexval
[(bytes
[i
]) & 0x0F];
494 #endif /* __WINE_FUSION_PRIVATE__ */