package com.sun.jna.platform.win32;

/*
 * @author L W Ahonen, lwahonen@iki.fi
 */

import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.Shell32;
import com.sun.jna.platform.win32.WinNT;
import com.sun.jna.ptr.PointerByReference;
import com.sun.jna.win32.W32APIOptions;

public interface Shlwapi extends WinNT {
    Shlwapi INSTANCE = (Shlwapi) Native.loadLibrary("Shlwapi", Shlwapi.class, W32APIOptions.UNICODE_OPTIONS);


    /**
     * Takes an STRRET structure returned by IShellFolder::GetDisplayNameOf and returns a pointer
     * to an allocated string containing the display name.
     *
     * @param pstr
     *            A pointer to the STRRET structure. When the function returns,
     *            this pointer will no longer be valid.
     * @param pidl
     *            A pointer to the item's ITEMIDLIST structure. This value can be NULL.
     *
     * @param ppszName
     *            A pointer to an allocated string containing the result. StrRetToStr allocates
     *            memory for this string with CoTaskMemAlloc. You should free the string
     *            with CoTaskMemFree when it is no longer needed.
     *
     * @return If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
     */

    HRESULT StrRetToStr(PointerByReference pstr, Pointer pidl, PointerByReference ppszName);
}

@@ -156,29 +156,29 @@
 na.p
-latform.win32.Shell32
+tr.PointerByReference
 ;%0Aim
@@ -198,28 +198,28 @@
 jna.
-platform.win32.WinNT
+win32.StdCallLibrary
 ;%0Aim
@@ -239,70 +239,70 @@
 jna.
-ptr.PointerByReference;%0Aimport com.sun.jna.win32.W32APIOptions
+win32.W32APIOptions;%0Aimport com.sun.jna.platform.win32.WinNT.*
 ;%0A%0Ap
@@ -333,21 +333,30 @@
 extends 
-WinNT
+StdCallLibrary
  %7B%0A    S

Make Shlwapi inherit the right class