Beispiel #1
0
void my_taskcreate_Startup() {
	CreateMainHeap(0x200000, 0x800000 - 0x20000); // in end of MainHeap - own code - 128 Kb

	sub_FFB0FF74();
	sub_FFB2E108(0x386D4380);

	EnableDispatch();
	CreateTask("Startup", 0x19, 0x2000, my_task_Startup, 0);
}
Beispiel #2
0
CComMenu::CComMenu(HMENU hMenu, UINT nPosition)
{
	if ( nPosition == 0xFFFFFFFF )
	{
		m_hParent	= NULL;
		m_hMenu		= hMenu;
		m_nPosition	= 0;
	}
	else
	{
		m_hParent	= hMenu;
		m_hMenu		= GetSubMenu( hMenu, nPosition );
		m_nPosition	= nPosition;
	}

	EnableDispatch( IID_ISMenu );
}
CMatchListView::CMatchListView(LPCTSTR pszName, CMatchList* pList)
{
	EnableDispatch( IID_IGenericView );

	m_sName = pszName;
	m_pList = pList;
	m_pList->m_pSection.Lock();

	for ( POSITION pos = m_pList->m_pSelectedFiles.GetHeadPosition() ; pos ; )
	{
		m_pSelection.AddTail( m_pList->m_pSelectedFiles.GetNext( pos ) );
	}

	for ( POSITION pos = m_pList->m_pSelectedHits.GetHeadPosition() ; pos ; )
	{
		m_pSelection.AddTail( m_pList->m_pSelectedHits.GetNext( pos ) );
	}
}
Beispiel #4
0
CLibraryMaps::CLibraryMaps()
	: m_nNextIndex	( 4 )
	, m_nFiles		( 0 )
	, m_nVolume		( 0 )
{
	EnableDispatch( IID_ILibraryFiles );

	m_pSHA1Map	= new CLibraryFile*[HASH_SIZE];
	m_pTigerMap	= new CLibraryFile*[HASH_SIZE];
	m_pED2KMap	= new CLibraryFile*[HASH_SIZE];
	m_pBTHMap	= new CLibraryFile*[HASH_SIZE];
	m_pMD5Map	= new CLibraryFile*[HASH_SIZE];

	ZeroMemory( m_pSHA1Map, HASH_SIZE * sizeof( CLibraryFile* ) );
	ZeroMemory( m_pTigerMap, HASH_SIZE * sizeof( CLibraryFile* ) );
	ZeroMemory( m_pED2KMap, HASH_SIZE * sizeof( CLibraryFile* ) );
	ZeroMemory( m_pBTHMap, HASH_SIZE * sizeof( CLibraryFile* ) );
	ZeroMemory( m_pMD5Map, HASH_SIZE * sizeof( CLibraryFile* ) );
}
CHtmlCollection::CHtmlCollection()
    : m_pView	( NULL )
{
    EnableDispatch( IID_ICollectionHtmlView );
}
Beispiel #6
0
CApplication::CApplication()
{
	EnableDispatch( IID_IApplication );
	EnableDispatch( IID_IUserInterface );
	EnableDispatch( IID_ISettings );
}