Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.3 KiB

//---------------------------------------------------------------------------
// ThemeFile.h - manages loaded theme files
//---------------------------------------------------------------------------
#pragma once
//---------------------------------------------------------------------------
class CUxThemeFile // changed from "CThemeFile" to avoid conflict with
{ // class of same name in themeui
//---- methods ----
public:
CUxThemeFile();
~CUxThemeFile();
HRESULT CreateFile(int iLength, BOOL fReserve = FALSE);
HRESULT CreateFromSection(HANDLE hSection);
HRESULT OpenFromHandle(HANDLE handle, BOOL fCleanupOnFailure = FALSE);
HRESULT ValidateThemeData(BOOL fFullCheck);
bool IsReady();
bool IsGlobal();
bool HasStockObjects();
HANDLE Handle()
{
if (this)
return _hMemoryMap;
return NULL;
}
DWORD DataCheckSum();
void CloseFile();
void Reset();
HANDLE Unload();
BOOL ValidateObj();
//---- data ----
char _szHead[8];
BYTE *_pbThemeData; // ptr to shared memory block
HANDLE _hMemoryMap; // handle to memory mapped file
char _szTail[4];
};
//---------------------------------------------------------------------------