Leaked source code of windows server 2003
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.

48 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: F O L D I N C . H
  7. //
  8. // Contents: Standard include for the shell\folder code
  9. //
  10. // Notes:
  11. //
  12. // Author: jeffspr 30 Sep 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #ifndef _FOLDINC_H_
  17. #define _FOLDINC_H_
  18. #if DBG
  19. LPITEMIDLIST ILNext(LPCITEMIDLIST pidl);
  20. BOOL ILIsEmpty(LPCITEMIDLIST pidl);
  21. #else
  22. #define ILNext(pidl) ((LPITEMIDLIST) ((BYTE *)pidl + ((LPITEMIDLIST)pidl)->mkid.cb))
  23. #define ILIsEmpty(pidl) (!pidl || !((LPITEMIDLIST)pidl)->mkid.cb)
  24. #endif
  25. #define ResultFromShort(i) MAKE_HRESULT(SEVERITY_SUCCESS, 0, (USHORT)(i))
  26. #include "nsbase.h"
  27. #include "nsres.h"
  28. #include <ncdebug.h>
  29. #include <ncreg.h>
  30. #include <netshell.h>
  31. #include <netconp.h>
  32. #include <ncui.h>
  33. #include "..\folder\confold.h"
  34. #include "..\folder\contray.h"
  35. #include "..\folder\foldglob.h"
  36. #include "..\folder\shutil.h"
  37. #include <openfold.h> // For launching connections folder
  38. #define _ILSkip(pidl, cb) ((LPITEMIDLIST)(((BYTE*)(pidl))+cb))
  39. #define _ILNext(pidl) _ILSkip(pidl, (pidl)->mkid.cb)
  40. #endif // _FOLDINC_H_