#229 IShellLinkW::GetPath

closed-fixed
Earnie Boyd
2002-12-12
2002-12-11
No

Hi,

The IShellLinkW::GetPath() declaration in shlobj.h is wrong. It is:
STDMETHOD(GetPath)(THIS_ LPSTR,...) PURE;
instead of:
STDMETHOD(GetPath)(THIS_ LPWSTR,...) PURE;

Indeed the current declarations are inconsistent:
DECLARE_INTERFACE_(IShellLinkA, IUnknown)
STDMETHOD(GetPath)(THIS_ LPSTR,...) PURE;
STDMETHOD(SetPath)(THIS_ LPCSTR) PURE;
DECLARE_INTERFACE_(IShellLinkW, IUnknown)
STDMETHOD(GetPath)(THIS_ LPSTR,...) PURE;
STDMETHOD(SetPath)(THIS_ LPCWSTR) PURE;

Reference:
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/ifaces/ishelllink/GetPath.asp

Discussion

  • Danny Smith
    Danny Smith
    2002-12-12

    Logged In: YES
    user_id=11494

    Thanks
    Fixed in CVS.
    Danny

     
  • Danny Smith
    Danny Smith
    2002-12-12

    • status: open --> closed-fixed