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__
30 #include "wine/heap.h"
64 LARGE_INTEGER MaskValid
;
65 LARGE_INTEGER MaskSorted
;
143 } INTERFACEIMPLTABLE
;
165 } CUSTOMATTRIBUTETABLE
;
196 } STANDALONESIGTABLE
;
229 } METHODSEMANTICSTABLE
;
235 WORD MethodDeclaration
;
251 WORD MemberForwarded
;
265 } ASSEMBLYPROCESSORTABLE
;
270 DWORD OSMajorVersion
;
271 DWORD OSMinorVersion
;
281 WORD PublickKeyOrToken
;
291 } ASSEMBLYREFPROCESSORTABLE
;
296 DWORD OSMajorVersion
;
297 DWORD OSMinorVersion
;
299 } ASSEMBLYREFOSTABLE
;
339 } GENERICPARAMCONSTRAINTTABLE
;
343 DWORD ImportLookupTable
;
345 DWORD ForwarderChain
;
347 DWORD ImportAddressTable
;
353 DWORD HintNameTableRVA
;
380 VS_FIXEDFILEINFO Value
;
435 typedef struct tagASSEMBLY ASSEMBLY
;
437 HRESULT
assembly_create(ASSEMBLY
**out
, LPCWSTR file
) DECLSPEC_HIDDEN
;
438 HRESULT
assembly_release(ASSEMBLY
*assembly
) DECLSPEC_HIDDEN
;
439 HRESULT
assembly_get_name(ASSEMBLY
*assembly
, LPWSTR
*name
) DECLSPEC_HIDDEN
;
440 HRESULT
assembly_get_path(const ASSEMBLY
*assembly
, LPWSTR
*path
) DECLSPEC_HIDDEN
;
441 HRESULT
assembly_get_version(ASSEMBLY
*assembly
, LPWSTR
*version
) DECLSPEC_HIDDEN
;
442 PEKIND
assembly_get_architecture(ASSEMBLY
*assembly
) DECLSPEC_HIDDEN
;
443 HRESULT
assembly_get_pubkey_token(ASSEMBLY
*assembly
, LPWSTR
*token
) DECLSPEC_HIDDEN
;
444 HRESULT
assembly_get_runtime_version(ASSEMBLY
*assembly
, LPSTR
*version
) DECLSPEC_HIDDEN
;
445 HRESULT
assembly_get_external_files(ASSEMBLY
*assembly
, LPWSTR
**files
, DWORD
*count
) DECLSPEC_HIDDEN
;
447 extern HRESULT
IAssemblyName_SetPath(IAssemblyName
*iface
, LPCWSTR path
) DECLSPEC_HIDDEN
;
448 extern HRESULT
IAssemblyName_GetPath(IAssemblyName
*iface
, LPWSTR buf
, ULONG
*len
) DECLSPEC_HIDDEN
;
450 static inline LPWSTR
strdupW(LPCWSTR src
)
457 if ((dest
= heap_alloc((lstrlenW(src
) + 1) * sizeof(WCHAR
))))
463 #define BYTES_PER_TOKEN 8
464 #define CHARS_PER_BYTE 2
465 #define TOKEN_LENGTH (BYTES_PER_TOKEN * CHARS_PER_BYTE + 1)
467 static inline void token_to_str(BYTE
*bytes
, LPWSTR str
)
471 static const WCHAR hexval
[] = {
472 '0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'
475 for(i
= 0; i
< BYTES_PER_TOKEN
; i
++)
477 str
[i
* 2] = hexval
[((bytes
[i
] >> 4) & 0xF)];
478 str
[i
* 2 + 1] = hexval
[(bytes
[i
]) & 0x0F];
483 #endif /* __WINE_FUSION_PRIVATE__ */