home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / cwin / c.exe / $INSTDIR / include / ddk / ntddbeep.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-15  |  1.3 KB  |  60 lines

  1. /*
  2.  * ntddbeep.h
  3.  *
  4.  * Beep device IOCTL interface
  5.  *
  6.  * This file is part of the w32api package.
  7.  *
  8.  * Contributors:
  9.  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
  10.  *
  11.  * THIS SOFTWARE IS NOT COPYRIGHTED
  12.  *
  13.  * This source code is offered for use in the public domain. You may
  14.  * use, modify or distribute it freely.
  15.  *
  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.
  20.  *
  21.  */
  22.  
  23. #ifndef __NTDDBEEP_H
  24. #define __NTDDBEEP_H
  25.  
  26. #if __GNUC__ >=3
  27. #pragma GCC system_header
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #pragma pack(push,4)
  35.  
  36. #include "ntddk.h"
  37.  
  38.  
  39. #define DD_BEEP_DEVICE_NAME               "\\Device\\Beep"
  40. #define DD_BEEP_DEVICE_NAME_U             L"\\Device\\Beep"
  41.  
  42. #define IOCTL_BEEP_SET \
  43.   CTL_CODE(FILE_DEVICE_BEEP, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
  44.  
  45. typedef struct _BEEP_SET_PARAMETERS {
  46.     ULONG  Frequency;
  47.     ULONG  Duration;
  48. } BEEP_SET_PARAMETERS, *PBEEP_SET_PARAMETERS;
  49.  
  50. #define BEEP_FREQUENCY_MINIMUM            0x25
  51. #define BEEP_FREQUENCY_MAXIMUM            0x7FFF
  52.  
  53. #pragma pack(pop)
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58.  
  59. #endif /* __NTDDBEEP_H */
  60.