Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ntddbeep.h Source File

ntddbeep.h

00001 /*
00002  * ntddbeep.h
00003  *
00004  * Beep device IOCTL interface
00005  *
00006  * This file is part of the w32api package.
00007  *
00008  * Contributors:
00009  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
00010  *
00011  * THIS SOFTWARE IS NOT COPYRIGHTED
00012  *
00013  * This source code is offered for use in the public domain. You may
00014  * use, modify or distribute it freely.
00015  *
00016  * This code is distributed in the hope that it will be useful but
00017  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
00018  * DISCLAIMED. This includes but is not limited to warranties of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00020  *
00021  */
00022 
00023 #ifndef __NTDDBEEP_H
00024 #define __NTDDBEEP_H
00025 
00026 #if __GNUC__ >=3
00027 #pragma GCC system_header
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 #include "ntddk.h"
00035 
00036 #define DD_BEEP_DEVICE_NAME               "\\Device\\Beep"
00037 #define DD_BEEP_DEVICE_NAME_U             L"\\Device\\Beep"
00038 
00039 #define IOCTL_BEEP_SET \
00040   CTL_CODE(FILE_DEVICE_BEEP, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
00041 
00042 typedef struct _BEEP_SET_PARAMETERS {
00043     ULONG  Frequency;
00044     ULONG  Duration;
00045 } BEEP_SET_PARAMETERS, *PBEEP_SET_PARAMETERS;
00046 
00047 #define BEEP_FREQUENCY_MINIMUM            0x25
00048 #define BEEP_FREQUENCY_MAXIMUM            0x7FFF
00049 
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053 
00054 #endif /* __NTDDBEEP_H */