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

  1. #ifndef _DBT_H
  2. #define _DBT_H
  3. #if __GNUC__ >=3
  4. #pragma GCC system_header
  5. #endif
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #define DBT_NO_DISK_SPACE    0x47
  11. #define DBT_CONFIGMGPRIVATE    0x7FFF
  12. #define DBT_DEVICEARRIVAL    0x8000
  13. #define DBT_DEVICEQUERYREMOVE    0x8001
  14. #define DBT_DEVICEQUERYREMOVEFAILED    0x8002
  15. #define DBT_DEVICEREMOVEPENDING    0x8003
  16. #define DBT_DEVICEREMOVECOMPLETE    0x8004
  17. #define DBT_DEVICETYPESPECIFIC    0x8005
  18. #define DBT_DEVTYP_OEM    0
  19. #define DBT_DEVTYP_DEVNODE    1
  20. #define DBT_DEVTYP_VOLUME    2
  21. #define DBT_DEVTYP_PORT    3
  22. #define DBT_DEVTYP_NET    4
  23. #define DBT_APPYBEGIN 0
  24. #define DBT_APPYEND 1
  25. #define DBT_DEVNODES_CHANGED 7
  26. #define DBT_QUERYCHANGECONFIG 0x17
  27. #define DBT_CONFIGCHANGED 0x18
  28. #define DBT_CONFIGCHANGECANCELED 0x19
  29. #define DBT_MONITORCHANGE 0x1B
  30. #define DBT_SHELLLOGGEDON 32
  31. #define DBT_CONFIGMGAPI32 34
  32. #define DBT_VXDINITCOMPLETE 35
  33. #define DBT_VOLLOCKQUERYLOCK 0x8041
  34. #define DBT_VOLLOCKLOCKTAKEN 0x8042
  35. #define DBT_VOLLOCKLOCKFAILED 0x8043
  36. #define DBT_VOLLOCKQUERYUNLOCK 0x8044
  37. #define DBT_VOLLOCKLOCKRELEASED 0x8045
  38. #define DBT_VOLLOCKUNLOCKFAILED 0x8046
  39. #define DBT_USERDEFINED 0xFFFF
  40. #define DBTF_MEDIA    1
  41. #define DBTF_NET    2
  42. #define BSM_ALLCOMPONENTS 0
  43. #define BSM_VXDS 1
  44. #define BSM_NETDRIVER 2
  45. #define BSM_INSTALLABLEDRIVERS 4
  46. #define BSM_APPLICATIONS 8
  47. #define BSF_QUERY 1
  48. #define BSF_IGNORECURRENTTASK 2
  49. #define BSF_FLUSHDISK 4
  50. #define BSF_NOHANG 8
  51. #define BSF_POSTMESSAGE 16
  52. #define BSF_FORCEIFHUNG 32
  53. #define BSF_NOTIMEOUTIFNOTHUNG 64
  54. #define BSF_MSGSRV32ISOK_BIT 31
  55. #define BSF_MSGSRV32ISOK 0x80000000
  56.  
  57. typedef struct _DEV_BROADCAST_HDR {
  58.     DWORD dbch_size;
  59.     DWORD dbch_devicetype;
  60.     DWORD dbch_reserved;
  61. } DEV_BROADCAST_HDR,*PDEV_BROADCAST_HDR;
  62. typedef struct _DEV_BROADCAST_OEM {
  63.     DWORD dbco_size;
  64.     DWORD dbco_devicetype;
  65.     DWORD dbco_reserved;
  66.     DWORD dbco_identifier;
  67.     DWORD dbco_suppfunc;
  68. } DEV_BROADCAST_OEM,*PDEV_BROADCAST_OEM;
  69. typedef struct _DEV_BROADCAST_PORT_A {
  70.     DWORD dbcp_size;
  71.     DWORD dbcp_devicetype;
  72.     DWORD dbcp_reserved;
  73.     char dbcp_name[1];
  74. } DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A;
  75. typedef struct _DEV_BROADCAST_PORT_W {
  76.     DWORD dbcp_size;
  77.     DWORD dbcp_devicetype;
  78.     DWORD dbcp_reserved;
  79.     wchar_t dbcp_name[1];
  80. } DEV_BROADCAST_PORT_W, *PDEV_BROADCAST_PORT_W;
  81. typedef struct _DEV_BROADCAST_USERDEFINED {
  82.     struct _DEV_BROADCAST_HDR dbud_dbh;
  83.     char dbud_szName[1];
  84. } DEV_BROADCAST_USERDEFINED;
  85. typedef struct _DEV_BROADCAST_VOLUME {
  86.     DWORD dbcv_size;
  87.     DWORD dbcv_devicetype;
  88.     DWORD dbcv_reserved;
  89.     DWORD dbcv_unitmask;
  90.     WORD dbcv_flags;
  91. } DEV_BROADCAST_VOLUME,*PDEV_BROADCAST_VOLUME;
  92.  
  93. #ifdef UNICODE
  94. typedef DEV_BROADCAST_PORT_W DEV_BROADCAST_PORT, *PDEV_BROADCAST_PORT;
  95. #else
  96. typedef DEV_BROADCAST_PORT_A DEV_BROADCAST_PORT, *PDEV_BROADCAST_PORT;
  97. #endif
  98.  
  99. #ifdef __cplusplus
  100. }
  101. #endif
  102. #endif
  103.