Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.5 KiB

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