📄 memnodes.h
字号:
/***************************************************************************
* Name : memnodes.h
* Title : MBX WinCE driver GPE class
* Author(s) : Imagination Technologies
* Created : 6th January 2003
*
* Copyright : 2003 by Imagination Technologies. All rights reserved.
* : No part of this software, either material or conceptual
* : may be copied or distributed, transmitted, transcribed,
* : stored in a retrieval system or translated into any
* : human or computer language in any form by any means,
* : electronic, mechanical, manual or other-wise, or
* : disclosed to third parties without the express written
* : permission of Imagination Technologies Limited, Unit 8,
* : HomePark Industrial Estate, King's Langley, Hertfordshire,
* : WD4 8LZ, U.K.
*
* Description : MBX WinCE driver GPE class.
*
* Platform : WinCE
*
* Modifications:-
* $Log: memnodes.h $
*
* --- Revision Logs Removed ---
*
* --- Revision Logs Removed ---
*
****************************************************************************/
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
class MBXSurf;
class MemNode
{
public:
MemNode( ULONG ulBytes, PPVRSRV_DEV_DATA psDevData, ULONG ulAlignment, ULONG ulOptions );
MemNode() {m_psDevData = NULL, m_psDevMemHandle = NULL; m_pbySysMemAddr = NULL; m_pclNext = NULL; m_pclPrev = NULL; m_pclSurf = NULL;}
~MemNode();
PVRSRV_DEV_DATA * m_psDevData;
PVRSRV_MEM_INFO * m_psDevMemHandle;
PBYTE m_pbySysMemAddr;
MBXSurf * m_pclSurf;
MemNode * m_pclNext;
MemNode * m_pclPrev;
};
#define SAVE_BUFFER_SIZE 0x400000
class DevMemNode
{
private:
MemNode m_clDevMemHeap;
MemNode *m_pclCurrNode;
PBYTE m_pbySaveMemAddr;
public:
DevMemNode ();
~DevMemNode();
void AddToDevMemList (MemNode *pclNode);
MemNode * FindInDevMemList (LPVOID pvPtr);
// MemNode * UnlinkFromDevMemList (LPVOID pvPtr);
BOOL RestoreSystemMemtoSurf(void);
BOOL SaveSurfToSystemMem (void);
MBXSurf * GetNextSurface(BOOL bFirst);
#ifdef DEBUG
void DumpDevMemList (void);
#endif
};
#ifdef __cplusplus
}
#endif
/********************************** end of file ******************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -