Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.4 KiB

  1. /*+-------------------------------------------------------------------------+
  2. | Copyright 1993-1994 (C) Microsoft Corporation - All rights reserved. |
  3. +-------------------------------------------------------------------------+*/
  4. // Munged needed defines from FPNW code - fpnwapi.h file
  5. #ifndef _FPNWAPI_H_
  6. #define _FPNWAPI_H_
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif /* __cplusplus */
  10. //
  11. // Volume types : disk or printer
  12. //
  13. #define NWVOL_TYPE_DISKTREE FPNWVOL_TYPE_DISKTREE
  14. #define NWVOL_TYPE_CDROM FPNWVOL_TYPE_CDROM
  15. #define NWVOL_TYPE_REMOVABLE FPNWVOL_TYPE_REMOVABLE
  16. #define NWVOL_MAX_USES_UNLIMITED ((ULONG)-1)
  17. //
  18. // Volume flags returned by VolumeGetInfo
  19. //
  20. #define FPNWVOL_TYPE_DISKTREE 0
  21. #define FPNWVOL_TYPE_CDROM 104
  22. #define FPNWVOL_TYPE_REMOVABLE 105
  23. //
  24. // Permissions flags returned in structure FPNWFILEINFO
  25. //
  26. #define FPNWFILE_PERM_NONE 0
  27. #define FPNWFILE_PERM_READ 0x01
  28. #define FPNWFILE_PERM_WRITE 0x02
  29. #define FPNWFILE_PERM_CREATE 0x04
  30. #define FPNWFILE_PERM_EXEC 0x08
  31. #define FPNWFILE_PERM_DELETE 0x10
  32. #define FPNWFILE_PERM_ATRIB 0x20
  33. #define FPNWFILE_PERM_PERM 0x40
  34. typedef BYTE FPNWSERVERADDR[12]; // Network address, first 4 bytes is
  35. // the network number, and bytes
  36. // 5-10 is the physical node
  37. // address. The last two bytes are
  38. // reserved.
  39. //
  40. // This is the level 1 structure for FpnwVolumeAdd, FpnwVolumeDel, FpnwVolumeEnum,
  41. // FpnwVolumeGetInfo, & FpnwVolumeSetInfo.
  42. //
  43. typedef struct _FPNWVolumeInfo
  44. {
  45. LPWSTR lpVolumeName; // Name of the volume
  46. DWORD dwType; // The type of the volume. It can be one of the
  47. // following: FPNWVOL_TYPE_DISK, FPNWVOL_TYPE_PRINT
  48. DWORD dwMaxUses; // Maximum number of connections that are
  49. // allowed to the volume
  50. DWORD dwCurrentUses; // Current number of connections to the volume
  51. LPWSTR lpPath; // Path of the volume
  52. } FPNWVOLUMEINFO, *PFPNWVOLUMEINFO;
  53. typedef FPNWVOLUMEINFO NWVOLUMEINFO, *PNWVOLUMEINFO;
  54. #ifdef __cplusplus
  55. }
  56. #endif /* __cplusplus */
  57. #endif
  58.