aduipathenums.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #pragma once
  11. #pragma pack (push, 8)
  12. /* Define an error type for this package */
  13. typedef enum {
  14. PATH_NOERR = 0,
  15. PATH_INVALID, /* invalid pathname */
  16. PATH_BADOP, /* invalid operation for path type */
  17. PATH_REFUSED, /* operation refused. This error code is
  18. returned when an operation (other than
  19. Empty) would leave an empty path. */
  20. PATH_ERR /* catchall error code */
  21. } PathErr;
  22. typedef enum {
  23. NO_PATH = 0, /* new pathname object, no data yet */
  24. NEW_PATH, /* the path doesn't represent an existing file/dir */
  25. WC_PATH, /* the path represents a wildcard specification */
  26. FILE_PATH, /* the path represents a file */
  27. DIR_PATH, /* the path represents a directory */
  28. DEV_PATH, /* the path represents a device (LPT1: etc.) */
  29. } path_type;
  30. // What kind of path?
  31. enum path_category {
  32. DRIVE_TYPE, // ie. "c:\\" drive letter, colon, single backslash.
  33. UNC_TYPE, // ie. \\jackl\public. A double backslash machine name backslash share name
  34. ROOT_TYPE, // ie. a single backslash.
  35. RELATIVE_TYPE
  36. };
  37. #pragma pack (pop)