diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 14:19:43 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-26 14:19:43 +0000 |
commit | 7aff1e4cb053394db57c2814d5fe1e6493e0cc75 (patch) | |
tree | c8585e44049b37e4da152495c954242204c2c38d /FddNotify/PortTalk_IOCTL.h | |
parent | 6f3d69266933ef120d229e0daf2da164b77214d0 (diff) |
Project folders rename part 2
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@214 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'FddNotify/PortTalk_IOCTL.h')
-rw-r--r-- | FddNotify/PortTalk_IOCTL.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/FddNotify/PortTalk_IOCTL.h b/FddNotify/PortTalk_IOCTL.h new file mode 100644 index 0000000..1fe562f --- /dev/null +++ b/FddNotify/PortTalk_IOCTL.h @@ -0,0 +1,37 @@ +/******************************************************************************/
+/* */
+/* PortTalk Driver for Windows NT/2000/XP */
+/* Version 2.0, 12th January 2002 */
+/* http://www.beyondlogic.org */
+/* */
+/* Copyright © 2002 Craig Peacock. Craig.Peacock@beyondlogic.org */
+/* Any publication or distribution of this code in source form is prohibited */
+/* without prior written permission of the copyright holder. This source code */
+/* is provided "as is", without any guarantee made as to its suitability or */
+/* fitness for any particular use. Permission is herby granted to modify or */
+/* enhance this sample code to produce a derivative program which may only be */
+/* distributed in compiled object form only. */
+/******************************************************************************/
+
+#define PORTTALK_TYPE 40000 /* 32768-65535 are reserved for customers */
+
+// The IOCTL function codes from 0x800 to 0xFFF are for customer use.
+
+#define IOCTL_IOPM_RESTRICT_ALL_ACCESS \
+ CTL_CODE(PORTTALK_TYPE, 0x900, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+#define IOCTL_IOPM_ALLOW_EXCUSIVE_ACCESS \
+ CTL_CODE(PORTTALK_TYPE, 0x901, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+#define IOCTL_SET_IOPM \
+ CTL_CODE(PORTTALK_TYPE, 0x902, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+#define IOCTL_ENABLE_IOPM_ON_PROCESSID \
+ CTL_CODE(PORTTALK_TYPE, 0x903, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+#define IOCTL_READ_PORT_UCHAR \
+ CTL_CODE(PORTTALK_TYPE, 0x904, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+#define IOCTL_WRITE_PORT_UCHAR \
+ CTL_CODE(PORTTALK_TYPE, 0x905, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
|