DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
src/libs/porttalk/PortTalk_IOCTL.h
00001 /******************************************************************************/
00002 /*                                                                            */
00003 /*                    PortTalk Driver for Windows NT/2000/XP                  */
00004 /*                        Version 2.0, 12th January 2002                      */
00005 /*                          http://www.beyondlogic.org                        */
00006 /*                                                                            */
00007 /* Copyright  2002 Craig Peacock. Craig.Peacock@beyondlogic.org              */
00008 /* Any publication or distribution of this code in source form is prohibited  */
00009 /* without prior written permission of the copyright holder. This source code */
00010 /* is provided "as is", without any guarantee made as to its suitability or   */
00011 /* fitness for any particular use. Permission is herby granted to modify or   */
00012 /* enhance this sample code to produce a derivative program which may only be */
00013 /* distributed in compiled object form only.                                  */
00014 /******************************************************************************/
00015 
00016 #define PORTTALK_TYPE 40000 /* 32768-65535 are reserved for customers */
00017 
00018 // The IOCTL function codes from 0x800 to 0xFFF are for customer use.
00019 
00020 #define IOCTL_IOPM_RESTRICT_ALL_ACCESS \
00021     CTL_CODE(PORTTALK_TYPE, 0x900, METHOD_BUFFERED, FILE_ANY_ACCESS)
00022 
00023 #define IOCTL_IOPM_ALLOW_EXCUSIVE_ACCESS \
00024     CTL_CODE(PORTTALK_TYPE, 0x901, METHOD_BUFFERED, FILE_ANY_ACCESS)
00025 
00026 #define IOCTL_SET_IOPM \
00027     CTL_CODE(PORTTALK_TYPE, 0x902, METHOD_BUFFERED, FILE_ANY_ACCESS)
00028 
00029 #define IOCTL_ENABLE_IOPM_ON_PROCESSID \
00030     CTL_CODE(PORTTALK_TYPE, 0x903, METHOD_BUFFERED, FILE_ANY_ACCESS)
00031 
00032 #define IOCTL_READ_PORT_UCHAR \
00033     CTL_CODE(PORTTALK_TYPE, 0x904, METHOD_BUFFERED, FILE_ANY_ACCESS)
00034 
00035 #define IOCTL_WRITE_PORT_UCHAR \
00036     CTL_CODE(PORTTALK_TYPE, 0x905, METHOD_BUFFERED, FILE_ANY_ACCESS)
00037