📄 globals.h
字号:
/*++
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -