winsys.h

来自「Lido PXA270平台开发板的最新BSP,包括源代码」· C头文件 代码 · 共 77 行

H
77 行
字号
/******************************************************************************
* Name         : winsys.h
* Title        : System dependant functions.
* Author(s)    : Imagination Technologies
* Created      : 1st August 2003
*
* Copyright    : 2003 by Imagination Technologies Limited.
*                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  : System dependant functions.
*
* Platform     : Generic
*
* Notes        : formerly system.h mks rev 1.4
*
* Modifications:-
* $Log: winsys.h $
*
*
******************************************************************************/

#if !defined (__WINSYS_H__)
#define __WINSYS_H__


/*****************************************************************************
 FN prototypes
*****************************************************************************/
BOOL InitializeSystemMem();
BOOL DestroySystemMemHeap();

PVOID AllocSharedMem(DWORD dwSize);

void FreeSharedMem(PVOID pvMem);

BOOL ReadRegStringDWORD(DWORD dwDevCookie,
						PSTR pszKey,
						PSTR pszValue,
						PDWORD pdwValue);

BOOL WriteRegString(DWORD dwDevCookie,
					PSTR pszKey,
					PSTR pszValue,
					PSTR pszString);

BOOL GetCurProcessName(PSTR pszOutBuf, DWORD dwOutBufSize);

BOOL AppendFileSizeToName(PSTR pszOutBuf, 
						  DWORD dwOutBufSize,
						  PSTR pszFileName);

/*****************************************************************************
 AllocSharedMem trickiness when MEMCHK is defined
*****************************************************************************/
//#define MEMCHK
#ifdef MEMCHK

PVOID DBGAllocSharedMem(DWORD dwSize, PSTR pszFile, DWORD dwLine);

#define AllocSharedMem(dwSize) DBGAllocSharedMem(dwSize, __FILE__, __LINE__)

#endif /* #ifdef MEMCHK */

#endif /* __WINSYS_H__ */

/*****************************************************************************
 End of file (winsys.h)
*****************************************************************************/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?