📄 vibdrvr.h
字号:
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
//------------------------------------------------------------------------------
//
// File: Vibdrvr.h
//
// Header file of Vibrator driver
//
//------------------------------------------------------------------------------
//
// Copyright (C) 2004-2005, Motorola Inc. All Rights Reserved
//
//------------------------------------------------------------------------------
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#ifdef DEBUG
#define SETFNAME(name) LPCTSTR pszFname = name
#else // DEBUG
#define SETFNAME(name)
#endif // DEBUG
// debug zones
#define ZONE_ERROR DEBUGZONE(0)
#define ZONE_WARN DEBUGZONE(1)
#define ZONE_INIT DEBUGZONE(2)
#define ZONE_IOCTL DEBUGZONE(3)
#define ZONE_PDD DEBUGZONE(4)
#define ZONE_FUNCTION DEBUGZONE(5)
#define LOCK_VIBRATOR() EnterCriticalSection(&g_CsVibrator)
#define UNLOCK_VIBRATOR() LeaveCriticalSection(&g_CsVibrator)
EXTERN_C
VOID
WINAPI
VibratorDriverPowerDown(
BOOL power_down
);
EXTERN_C
BOOL
WINAPI
VibratorDriverGetDeviceInfo(
INT nId,
PVOID pOutput
);
EXTERN_C
BOOL
WINAPI
VibratorDriverSetDevice(
INT nId,
PVOID pInput
);
EXTERN_C
BOOL
WINAPI
VibratorDriverInitialize(
void
);
EXTERN_C
BOOL
WINAPI
VibratorDriverDeInitialize(
void
);
#ifndef VIBRATOR_DATA_DEF
extern CRITICAL_SECTION g_CsVibrator;
#endif // VIBRATOR_DATA_DEF
#ifdef __cplusplus
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -