/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.nplusc.izc.tools.WinToolz;

import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.PointerType;
import com.sun.jna.Structure;
import com.sun.jna.WString;
import com.sun.jna.platform.win32.User32;
import com.sun.jna.win32.W32APIOptions;

/**
 *
 * @author LH
 */
public interface User32Extended extends User32
{
        public long SendMessageA(Pointer hWnd, int Msg, int wParam, Structure.ByReference lparam);
        public long SendMessageA(PointerType hWnd, int Msg, int wParam, Structure.ByReference lparam);
        public long SendMessageW(Pointer hWnd, int Msg, int wParam, Structure.ByReference lparam);
        public long SendMessageW(PointerType hWnd, int Msg, int wParam, Structure.ByReference lparam);
        User32Extended INSTANCE = (User32Extended) Native.loadLibrary("user32.dll",
        User32Extended.class, W32APIOptions.DEFAULT_OPTIONS);
        //public int SendMessageA(int hWnd, int Msg, int wParam, Structure.ByReference lparam);

        public HWND FindWindowA(WString lpClassName, WString lpWindowName);
        public HWND FindWindowW(WString lpClassName, WString lpWindowName);

}
