summaryrefslogtreecommitdiffstats
path: root/private/unimodem/inc/mcxioctl.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/unimodem/inc/mcxioctl.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/unimodem/inc/mcxioctl.h')
-rw-r--r--private/unimodem/inc/mcxioctl.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/private/unimodem/inc/mcxioctl.h b/private/unimodem/inc/mcxioctl.h
new file mode 100644
index 000000000..ce4a403bd
--- /dev/null
+++ b/private/unimodem/inc/mcxioctl.h
@@ -0,0 +1,65 @@
+//****************************************************************************
+//
+// File: mcxioctl.h
+// Content: This file contains the declaration for Unimodem
+// DeviceIOControl.
+//
+// Copyright (c) 1992-1995, Microsoft Corporation, all rights reserved
+//
+//****************************************************************************
+
+#ifndef _MCXIOCTL_H_
+#define _MCXIOCTL_H_
+
+// DeviceIOControl Input/Output structure
+//
+typedef struct tagMdmIn {
+ DWORD dwPendingID;
+ DWORD dwParam;
+ CHAR szAddress[1];
+} MDM_IN, *PMDM_IN;
+
+typedef struct tagMdmOut {
+ DWORD dwResult;
+} MDM_OUT, *PMDM_OUT;
+
+// DeviceIOControl operations
+//
+#define IOCTL_UMDM_INIT 1
+#define IOCTL_UMDM_DIAL 2
+#define IOCTL_UMDM_START_MONITOR 3
+#define IOCTL_UMDM_STOP_MONITOR 4
+#define IOCTL_UMDM_START_MONITOR_DISCONNECT 5
+#define IOCTL_UMDM_STOP_MONITOR_DISCONNECT 6
+#define IOCTL_UMDM_ANSWER 7
+#define IOCTL_UMDM_HANGUP 8
+#define IOCTL_UMDM_PASSTHOUGH 9
+#define IOCTL_UMDM_GETLINKSPEED 10
+
+// Monitor modes for IOCTL_UMDM_START_MONITOR
+//
+#define MONITOR_NON_CONTINUOUS 0
+#define MONITOR_CONTINUOUS 1
+
+// Passthrough modes for IOCTL_UMDM_PASSTHROUGH
+//
+#define PASSTHROUGH_ON 1
+#define PASSTHROUGH_OFF 2
+#define PASSTHROUGH_OFF_BUT_CONNECTED 3
+
+// DeviceIOControl operation result
+//
+#define MDM_SUCCESS 0
+#define MDM_CANCEL 1
+#define MDM_FAILURE 2
+#define MDM_HANGUP 3
+#define MDM_BUSY 4
+#define MDM_NOANSWER 5
+#define MDM_NOCARRIER 6
+#define MDM_NODIALTONE 7
+
+// Invalid Pending operation ID
+//
+#define MDM_ID_NULL 0xFFFFFFFF
+
+#endif // _MCXIOCTL_H_