Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / include / ddk / ntddbeep.h
blob6052a094858b547c2b8b5fb858a0850aba51b9f5
1 /*
2 * ntddbeep.h
4 * Beep device IOCTL interface
6 * This file is part of the w32api package.
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 #ifndef __NTDDBEEP_H
24 #define __NTDDBEEP_H
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
34 #include "ntddk.h"
36 #define DD_BEEP_DEVICE_NAME "\\Device\\Beep"
37 #define DD_BEEP_DEVICE_NAME_U L"\\Device\\Beep"
39 #define IOCTL_BEEP_SET \
40 CTL_CODE(FILE_DEVICE_BEEP, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
42 typedef struct _BEEP_SET_PARAMETERS {
43 ULONG Frequency;
44 ULONG Duration;
45 } BEEP_SET_PARAMETERS, *PBEEP_SET_PARAMETERS;
47 #define BEEP_FREQUENCY_MINIMUM 0x25
48 #define BEEP_FREQUENCY_MAXIMUM 0x7FFF
50 #ifdef __cplusplus
52 #endif
54 #endif /* __NTDDBEEP_H */