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

  1. /*
  2.  * mountdev.h
  3.  *
  4.  * Mount point manager/mounted devices 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 __MOUNTDEV_H
  24. #define __MOUNTDEV_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. #include "mountmgr.h"
  38.  
  39.  
  40. #define IOCTL_MOUNTDEV_QUERY_DEVICE_NAME \
  41.   CTL_CODE(MOUNTDEVCONTROLTYPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
  42.  
  43. #define IOCTL_MOUNTDEV_QUERY_UNIQUE_ID \
  44.   CTL_CODE(MOUNTDEVCONTROLTYPE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
  45.  
  46. #define IOCTL_MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY \
  47.   CTL_CODE(MOUNTDEVCONTROLTYPE, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
  48.  
  49. #define IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME \
  50.   CTL_CODE(MOUNTDEVCONTROLTYPE, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
  51.  
  52. #define IOCTL_MOUNTDEV_LINK_CREATED \
  53.   CTL_CODE(MOUNTDEVCONTROLTYPE, 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
  54.  
  55. #define IOCTL_MOUNTDEV_LINK_DELETED \
  56.   CTL_CODE(MOUNTDEVCONTROLTYPE, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)
  57.  
  58.  
  59. typedef struct _MOUNTDEV_SUGGESTED_LINK_NAME {
  60.   BOOLEAN  UseOnlyIfThereAreNoOtherLinks;
  61.   USHORT  NameLength;
  62.   WCHAR  Name[1];
  63. } MOUNTDEV_SUGGESTED_LINK_NAME, *PMOUNTDEV_SUGGESTED_LINK_NAME;
  64.  
  65. typedef struct _MOUNTDEV_UNIQUE_ID {
  66.   USHORT  UniqueIdLength;
  67.   UCHAR  UniqueId[1];
  68. } MOUNTDEV_UNIQUE_ID, *PMOUNTDEV_UNIQUE_ID;
  69.  
  70. typedef struct _MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY_OUTPUT {
  71.   ULONG  Size;
  72.   USHORT  OldUniqueIdOffset;
  73.   USHORT  OldUniqueIdLength;
  74.   USHORT  NewUniqueIdOffset;
  75.   USHORT  NewUniqueIdLength;
  76. } MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY_OUTPUT;
  77.  
  78. #pragma pack(pop)
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83.  
  84. #endif /* __MOUNTDEV_H */
  85.