globals.h
来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 66 行
H
66 行
/*++
Copyright (c) 1999 Microsoft Corporation
Module Name:
globals.h
Abstract:
Declares info and functions for the whole DLL (used by both the mixer and the wave drivers)
Environment:
Win CE 2.11
Revision History:
5/7/1999 Initial Version
--*/
#ifndef __GLOBALS_H__
#define __GLOBALS_H__
// driver identification
#define DRIVER_VERSION 0x0101
#define DRIVER_WMID MM_MICROSOFT
#define DRIVER_NAME TEXT("CX5530 Audio Driver")
typedef struct tagHWREG
{
ULONG offset;
ULONG value;
} HWREG;
typedef struct tagMixer_Context *PMIXER_CONTEXT;
typedef struct tagDriverContext
{
//HwRegAperture * Aperture0;
//HwRegAperture * Aperture1;
//HwRegAperture * AC97Regs;
BOOL bMixerInitialized;
CRITICAL_SECTION mixCritSec;
PMIXER_CONTEXT pMixerContextList;
} DRIVER_CONTEXT, *PDRIVER_CONTEXT;
extern PDRIVER_CONTEXT g_pDriverContext;
__inline void LockMixerList()
{
if (g_pDriverContext)
EnterCriticalSection(&g_pDriverContext->mixCritSec);
}
__inline void UnlockMixerList()
{
if (g_pDriverContext)
LeaveCriticalSection(&g_pDriverContext->mixCritSec);
}
#endif //__GLOBALS_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?