|
|
1.1 root 1: /*++ BUILD Version: 0001 // Increment this if a change has global effects
2:
3: Copyright (c) 1990-1993 Microsoft Corporation
4:
5: Module Name:
6:
7: ntddbeep.h
8:
9: Abstract:
10:
11: This is the include file that defines all constants and types for
12: the beep device.
13:
14: Author:
15:
16: Lee A. Smith (lees) 02-Aug-1991.
17:
18: Revision History:
19:
20: --*/
21:
22: #ifndef _NTDDBEEP_
23: #define _NTDDBEEP_
24:
25: //
26: // Device Name - this string is the name of the device. It is the name
27: // that should be passed to NtOpenFile when accessing the device.
28: //
29: // Note: For devices that support multiple units, it should be suffixed
30: // with the Ascii representation of the unit number.
31: //
32:
33: #define DD_BEEP_DEVICE_NAME "\\Device\\Beep"
34: #define DD_BEEP_DEVICE_NAME_U L"\\Device\\Beep"
35:
36: //
37: // NtDeviceIoControlFile IoControlCode values for this device.
38: //
39: // Warning: Remember that the low two bits of the code specify how the
40: // buffers are passed to the driver!
41: //
42:
43: #define IOCTL_BEEP_SET CTL_CODE(FILE_DEVICE_BEEP, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
44:
45: //
46: // NtDeviceIoControlFile OutputBuffer record structures for
47: // IOCTL_BEEP_SET.
48: //
49:
50: typedef struct _BEEP_SET_PARAMETERS {
51: ULONG Frequency;
52: ULONG Duration;
53: } BEEP_SET_PARAMETERS, *PBEEP_SET_PARAMETERS;
54:
55: #define BEEP_FREQUENCY_MINIMUM 0x25
56: #define BEEP_FREQUENCY_MAXIMUM 0x7FFF
57:
58: #endif // _NTDDBEEP_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.