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.

54 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995 - 1995.
  5. //
  6. // File: dutil.hxx
  7. //
  8. // Contents: Utility functions and macros for data objects
  9. //
  10. // History: 14-Dec-95 BruceFo Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef __DUTIL_HXX__
  14. #define __DUTIL_HXX__
  15. LPIDA
  16. DataObj_GetHIDA(
  17. LPDATAOBJECT pdtobj,
  18. STGMEDIUM* pmedium
  19. );
  20. //===========================================================================
  21. // HIDA -- IDList Array handle
  22. //===========================================================================
  23. #define HIDA_GetPIDLFolder(pida) (LPCITEMIDLIST)(((LPBYTE)pida)+(pida)->aoffset[0])
  24. #define HIDA_GetPIDLItem(pida,i) (LPCITEMIDLIST)(((LPBYTE)pida)+(pida)->aoffset[i+1])
  25. typedef HGLOBAL HIDA;
  26. VOID
  27. HIDA_ReleaseStgMedium(
  28. LPIDA pida,
  29. STGMEDIUM* pmedium
  30. );
  31. //===========================================================================
  32. // ID list functions
  33. //===========================================================================
  34. LPITEMIDLIST*
  35. ILA_Clone(
  36. UINT cidl,
  37. LPCITEMIDLIST* apidl
  38. );
  39. VOID
  40. ILA_Free(
  41. UINT cidl,
  42. LPITEMIDLIST* apidl
  43. );
  44. #endif // __DUTIL_HXX__