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.

65 lines
1.8 KiB

  1. #pragma warning(disable:4001)
  2. #define STRICT
  3. #define CONST_VTABLE
  4. //
  5. // ATL / OLE HACKHACK
  6. //
  7. // Include <w95wraps.h> before anything else that messes with names.
  8. // Although everybody gets the wrong name, at least it's *consistently*
  9. // the wrong name, so everything links.
  10. //
  11. // NOTE: This means that while debugging you will see functions like
  12. // CWindowImplBase__DefWindowProcWrapW when you expected to see
  13. // CWindowImplBase__DefWindowProc.
  14. //
  15. #include <windows.h>
  16. #include <windowsx.h>
  17. #include <intshcut.h>
  18. #include <wininet.h>
  19. #include <shellapi.h>
  20. #include <commctrl.h>
  21. #include "shfusion.h"
  22. #include <shlobj.h>
  23. #include <ieguidp.h>
  24. #include <shlwapi.h>
  25. #include <varutil.h>
  26. #include <ccstock.h>
  27. #include <crtfree.h>
  28. #include <cfdefs.h>
  29. #include <port32.h>
  30. #include <strsafe.h>
  31. #include "debug.h"
  32. #include "resource.h"
  33. // constants and DLL life time manangement
  34. extern HINSTANCE g_hinst;
  35. STDAPI_(void) DllAddRef();
  36. STDAPI_(void) DllRelease();
  37. // stuff for COM objects. every object needs to have a CLSID and Create function
  38. extern const GUID CLSID_DesktopShortcut;
  39. extern CLIPFORMAT g_cfHIDA; // from sendmail.cpp
  40. #define DEFAULTICON TEXT("DefaultIcon")
  41. // in util.cpp
  42. HRESULT ShellLinkSetPath(IUnknown *punk, LPCTSTR pszPath);
  43. HRESULT ShellLinkGetPath(IUnknown *punk, LPTSTR pszPath, UINT cch);
  44. BOOL IsShortcut(LPCTSTR pszFile);
  45. HRESULT CLSIDFromExtension(LPCTSTR pszExt, CLSID *pclsid);
  46. HRESULT GetShortcutTarget(LPCTSTR pszPath, LPTSTR pszTarget, UINT cch);
  47. HRESULT GetDropTargetPath(LPTSTR pszPath, int cchPath, int id, LPCTSTR pszExt);
  48. void CommonRegister(HKEY hkCLSID, LPCTSTR pszCLSID, LPCTSTR pszExtension, int idFileName);
  49. BOOL SHPathToAnsi(LPCTSTR pszSrc, LPSTR pszDest, int cbDest);