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.

83 lines
983 B

  1. #ifndef UTILITY_H
  2. #define UTILITY_H
  3. #define ResultFromDWORD(dw) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, dw))
  4. //
  5. // pidl utility functions
  6. //
  7. LPCITEMIDLIST
  8. SearchPidlByType(
  9. LPCITEMIDLIST pidl,
  10. DWORD dwPidlType
  11. );
  12. DWORD
  13. GetLastPidlType(
  14. LPCITEMIDLIST pidl
  15. );
  16. PST_KEY
  17. GetLastPidlKeyType(
  18. LPCITEMIDLIST pidl
  19. );
  20. GUID *
  21. GetLastPidlGuid(
  22. LPCITEMIDLIST pidl
  23. );
  24. LPCWSTR
  25. GetLastPidlText(
  26. LPCITEMIDLIST pidl
  27. );
  28. LPCWSTR
  29. GetPidlText(
  30. LPCITEMIDLIST pidl
  31. );
  32. GUID *
  33. GetPidlGuid(
  34. LPCITEMIDLIST pidl
  35. );
  36. DWORD
  37. GetPidlType(
  38. LPCITEMIDLIST pidl
  39. );
  40. PST_KEY
  41. GetPidlKeyType(
  42. LPCITEMIDLIST pidl
  43. );
  44. LPCITEMIDLIST
  45. GetPidlNextItem(
  46. LPCITEMIDLIST
  47. );
  48. UINT
  49. GetPidlSize(
  50. LPCITEMIDLIST
  51. );
  52. LPITEMIDLIST
  53. CopyPidl(
  54. LPMALLOC,
  55. LPCITEMIDLIST
  56. );
  57. LPITEMIDLIST
  58. CopyCatPidl(
  59. LPCITEMIDLIST pidl1,
  60. LPCITEMIDLIST pidl2
  61. );
  62. VOID
  63. FreePidl(
  64. LPITEMIDLIST pidl
  65. );
  66. #endif // UTILITY_H