ntddbeep.h 850 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * ntddbeep.h
  3. *
  4. * This file is part of the mingw-w64 runtime package.
  5. * No warranty is given; refer to the file DISCLAIMER within this package.
  6. *
  7. * Initial contributor is Casper S. Hornstrup <chorns@users.sourceforge.net>
  8. * Extended by Kai Tietz
  9. */
  10. #ifndef _NTDDBEEP_
  11. #define _NTDDBEEP_
  12. #include <winapifamily.h>
  13. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define DD_BEEP_DEVICE_NAME "\\Device\\Beep"
  18. #define DD_BEEP_DEVICE_NAME_U L"\\Device\\Beep"
  19. #define BEEP_FREQUENCY_MINIMUM 0x25
  20. #define BEEP_FREQUENCY_MAXIMUM 0x7fff
  21. #define IOCTL_BEEP_SET CTL_CODE (FILE_DEVICE_BEEP, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
  22. typedef struct _BEEP_SET_PARAMETERS {
  23. ULONG Frequency;
  24. ULONG Duration;
  25. } BEEP_SET_PARAMETERS,*PBEEP_SET_PARAMETERS;
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif
  30. #endif