devnotify.h

来自「我自己编译的armv4i wince60模拟器的bps源文件,已经验证可以使用,」· C头文件 代码 · 共 39 行

H
39
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//

#ifndef DEVNOTIFY_H
#define DEVNOTIFY_H

// These are defined in public\ossvcs\oak\inc\Devnotify.h on windows mobile.
#define FILE_DEVICE_HEADSET                 32768
#define IOCTL_HEADSET_ADD_NOTIFY_HWND       CTL_CODE( FILE_DEVICE_HEADSET, 2048, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_HEADSET_REMOVE_NOTIFY_HWND    CTL_CODE( FILE_DEVICE_HEADSET, 2049, METHOD_BUFFERED, FILE_ANY_ACCESS )

#define FILE_DEVICE_CARKIT                  32769
#define IOCTL_CARKIT_ADD_NOTIFY_HWND	    CTL_CODE( FILE_DEVICE_CARKIT, 2050, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_CARKIT_REMOVE_NOTIFY_HWND     CTL_CODE( FILE_DEVICE_CARKIT, 2051, METHOD_BUFFERED, FILE_ANY_ACCESS )

#define FILE_DEVICE_SPEAKER                 32770
#define IOCTL_SPEAKER_ADD_NOTIFY_HWND	    CTL_CODE( FILE_DEVICE_SPEAKER, 2052, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_SPEAKER_REMOVE_NOTIFY_HWND    CTL_CODE( FILE_DEVICE_SPEAKER, 2053, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_SPEAKER_GETMODE            CTL_CODE( FILE_DEVICE_SPEAKER, 2054, METHOD_BUFFERED, FILE_ANY_ACCESS )
#define IOCTL_SPEAKER_SETMODE            CTL_CODE( FILE_DEVICE_SPEAKER, 2055, METHOD_BUFFERED, FILE_ANY_ACCESS )

typedef struct tag_DEVNOTIFY_EVENT
{
	HWND    hWndNotify;
	UINT    Msg;
}DEVNOTIFY_EVENT, *PDEVNOTIFY_EVENT;

#endif	//DEVNOTIFY_H

⌨️ 快捷键说明

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