oleaut32: Move common define to a header.

This commit is contained in:
Nikolay Sivov 2010-12-27 01:35:37 +03:00 committed by Alexandre Julliard
parent c924922935
commit 677302cf22
3 changed files with 6 additions and 3 deletions

View File

@ -2744,7 +2744,7 @@ static HRESULT TLB_Mapping_Open(LPCWSTR path, LPVOID *ppBase, DWORD *pdwTLBLengt
* find the type of the typelib file and map the typelib resource into
* the memory
*/
#define MSFT_SIGNATURE 0x5446534D /* "MSFT" */
#define SLTG_SIGNATURE 0x47544c53 /* "SLTG" */
static HRESULT TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath, ITypeLib2 **ppTypeLib)
{

View File

@ -52,8 +52,11 @@
* it is at the beginning of a type lib file
*
*/
#define MSFT_SIGNATURE 0x5446534D /* "MSFT" */
typedef struct tagMSFT_Header {
/*0x00*/INT magic1; /* 0x5446534D "MSFT" */
/*0x00*/INT magic1; /* 0x5446534D "MSFT" */
INT magic2; /* 0x00010002 version nr? */
INT posguid; /* position of libid in guid table */
/* (should be, else -1) */

View File

@ -260,7 +260,7 @@ static inline SYSKIND ctl2_get_syskind(const ICreateTypeLib2Impl *This)
static void ctl2_init_header(
ICreateTypeLib2Impl *This) /* [I] The typelib to initialize. */
{
This->typelib_header.magic1 = 0x5446534d;
This->typelib_header.magic1 = MSFT_SIGNATURE;
This->typelib_header.magic2 = 0x00010002;
This->typelib_header.posguid = -1;
This->typelib_header.lcid = This->typelib_header.lcid2 = GetUserDefaultLCID();