© 2006-2007 ETH Zurich

org.ximtec.igesture.io.win32
Interface User32

All Superinterfaces:
com.sun.jna.AltCallingConvention, com.sun.jna.Library, com.sun.jna.win32.StdCall, com.sun.jna.win32.StdCallLibrary, W32API, W32Errors

public interface User32
extends W32API

Since:
igesture
Version:
1.0
Author:
Michele Croci, mcroci@gmail.com, Ueli Kurmann, ueli.kurmann@bbv.ch

Nested Class Summary
static class User32.MSG
           
static class User32.POINT
           
 
Nested classes/interfaces inherited from interface org.ximtec.igesture.io.win32.W32API
W32API.HANDLE, W32API.HBITMAP, W32API.HDC, W32API.HICON, W32API.HINSTANCE, W32API.HMODULE, W32API.HRGN, W32API.HWND, W32API.LONG_PTR, W32API.LPARAM, W32API.LRESULT, W32API.ULONG_PTR, W32API.WPARAM
 
Nested classes/interfaces inherited from interface com.sun.jna.win32.StdCallLibrary
com.sun.jna.win32.StdCallLibrary.StdCallCallback
 
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
 
Field Summary
static int WH_KEYBOARD
           
static int WH_KEYBOARD_LL
           
static int WH_MOUSE
           
static int WH_MOUSE_LL
           
 
Fields inherited from interface org.ximtec.igesture.io.win32.W32API
INVALID_HANDLE_VALUE
 
Fields inherited from interface com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION
 
Fields inherited from interface com.sun.jna.Library
OPTION_FUNCTION_MAPPER, OPTION_INVOKING_METHOD, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
 
Fields inherited from interface org.ximtec.igesture.io.win32.W32Errors
ERROR_FILE_NOT_FOUND, ERROR_INVALID_FUNCTION, ERROR_PATH_NOT_FOUND, NO_ERROR
 
Method Summary
 W32API.LRESULT CallNextHookEx(W32API.HANDLE hhk, int nCode, W32API.WPARAM wParam, W32API.LPARAM lParam)
           
 W32API.LRESULT DispatchMessage(User32.MSG msg)
           
 boolean GetAsyncKeyState(int input)
           
 int GetCurrentThreadId()
           
 int GetCursorPos(User32.POINT p)
           
 int GetMessageW(User32.MSG lpMsg, W32API.HWND hWnd, int wMsgFilterMin, int wMsgFilterMax)
           
 void keybd_event(int key, int b, int state, int d)
          Simulates keyboard input
 int PeekMessage(User32.MSG lpMsg, W32API.HWND hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg)
           
 W32API.HANDLE SetWindowsHookExW(int idHook, com.sun.jna.win32.StdCallLibrary.StdCallCallback lpfn, W32API.HINSTANCE hMod, long dwThreadId)
           
 boolean TranslateMessage(User32.MSG msg)
           
 boolean UnhookWindowsHookExW(W32API.HANDLE hhk)
           
 

Field Detail

WH_KEYBOARD_LL

static final int WH_KEYBOARD_LL
See Also:
Constant Field Values

WH_KEYBOARD

static final int WH_KEYBOARD
See Also:
Constant Field Values

WH_MOUSE

static final int WH_MOUSE
See Also:
Constant Field Values

WH_MOUSE_LL

static final int WH_MOUSE_LL
See Also:
Constant Field Values
Method Detail

CallNextHookEx

W32API.LRESULT CallNextHookEx(W32API.HANDLE hhk,
                              int nCode,
                              W32API.WPARAM wParam,
                              W32API.LPARAM lParam)

GetAsyncKeyState

boolean GetAsyncKeyState(int input)

GetCursorPos

int GetCursorPos(User32.POINT p)

GetCurrentThreadId

int GetCurrentThreadId()

SetWindowsHookExW

W32API.HANDLE SetWindowsHookExW(int idHook,
                                com.sun.jna.win32.StdCallLibrary.StdCallCallback lpfn,
                                W32API.HINSTANCE hMod,
                                long dwThreadId)

UnhookWindowsHookExW

boolean UnhookWindowsHookExW(W32API.HANDLE hhk)

GetMessageW

int GetMessageW(User32.MSG lpMsg,
                W32API.HWND hWnd,
                int wMsgFilterMin,
                int wMsgFilterMax)

PeekMessage

int PeekMessage(User32.MSG lpMsg,
                W32API.HWND hWnd,
                int wMsgFilterMin,
                int wMsgFilterMax,
                int wRemoveMsg)

DispatchMessage

W32API.LRESULT DispatchMessage(User32.MSG msg)

TranslateMessage

boolean TranslateMessage(User32.MSG msg)

keybd_event

void keybd_event(int key,
                 int b,
                 int state,
                 int d)
Simulates keyboard input

Parameters:
key - the key (see Key Enum)
b - should be 0
state - the state (up / down)
d - should be 0

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.