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

  1. /*
  2.  * d4iface.h
  3.  *
  4.  * DOT4 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 __D4IFACE_H
  24. #define __D4IFACE_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. #define DOT4_MAX_CHANNELS                 128
  39. #define NO_TIMEOUT                        0
  40.  
  41. #define DOT4_CHANNEL                      0
  42. #define HP_MESSAGE_PROCESSOR              1
  43. #define PRINTER_CHANNEL                   2
  44. #define SCANNER_CHANNEL                   4
  45. #define MIO_COMMAND_PROCESSOR             5
  46. #define ECHO_CHANNEL                      6
  47. #define FAX_SEND_CHANNEL                  7
  48. #define FAX_RECV_CHANNEL                  8
  49. #define DIAGNOSTIC_CHANNEL                9
  50. #define HP_RESERVED                       10
  51. #define IMAGE_DOWNLOAD                    11
  52. #define HOST_DATASTORE_UPLOAD             12
  53. #define HOST_DATASTORE_DOWNLOAD           13
  54. #define CONFIG_UPLOAD                     14
  55. #define CONFIG_DOWNLOAD                   15
  56.  
  57. #define STREAM_TYPE_CHANNEL               1
  58. #define PACKET_TYPE_CHANNEL               2
  59.  
  60. /* DOT4_ACTIVITY.ulMessage flags */
  61. #define DOT4_STREAM_RECEIVED              0x100
  62. #define DOT4_STREAM_CREDITS               0x101
  63. #define DOT4_MESSAGE_RECEIVED             0x102
  64. #define DOT4_DISCONNECT                   0x103
  65. #define DOT4_CHANNEL_CLOSED               0x105
  66.  
  67. typedef unsigned long CHANNEL_HANDLE, *PCHANNEL_HANDLE;
  68.  
  69. typedef struct _DOT4_ACTIVITY {
  70.   ULONG  ulMessage;
  71.   ULONG  ulByteCount;
  72.   CHANNEL_HANDLE  hChannel;
  73. } DOT4_ACTIVITY, *PDOT4_ACTIVITY;
  74.  
  75. typedef struct _DOT4_WMI_XFER_INFO {
  76.   ULONG  ulStreamBytesWritten;
  77.   ULONG  ulStreamBytesRead;
  78.   ULONG  ulPacketBytesWritten;
  79.   ULONG  ulPacketBytesRead;
  80. } DOT4_WMI_XFER_INFO, *PDOT4_WMI_XFER_INFO;
  81.  
  82. #pragma pack(pop)
  83.  
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87.  
  88. #endif /* __D4IFACE_H */
  89.