Top Description Inners Fields
com.sun.jna.examples.win32

public Interface W32API

extends StdCallLibrary, W32Errors
Known Direct Subinterfaces
com.sun.jna.examples.win32.GDI32, com.sun.jna.examples.win32.Kernel32, com.sun.jna.examples.win32.Shell32, com.sun.jna.examples.win32.User32
Imports
java.util.HashMap, .Map, com.sun.jna.FromNativeContext, .IntegerType, .Pointer, .PointerType, com.sun.jna.ptr.ByReference, com.sun.jna.win32.StdCallLibrary, .W32APIFunctionMapper, .W32APITypeMapper

Base type for most W32 API libraries. Provides standard options for unicode/ASCII mappings. Set the system property w32.ascii to true to default to the ASCII mappings.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final Map<K, V>
ASCII_OPTIONS

Standard options to use the ASCII/MBCS version of a w32 API.

public static final Map<K, V>
public static final W32API.HWND
HWND_BROADCAST

Special HWND value.

public static final W32API.HANDLE
INVALID_HANDLE_VALUE

Constant value representing an invalid HANDLE.

public static final Map<K, V>
UNICODE_OPTIONS

Standard options to use the unicode version of a w32 API.

Inherited from com.sun.jna.examples.win32.W32Errors:
ERROR_FILE_NOT_FOUNDERROR_INVALID_FUNCTIONERROR_PATH_NOT_FOUNDNO_ERROR
Inherited from com.sun.jna.win32.StdCallLibrary:
FUNCTION_MAPPERSTDCALL_CONVENTION

Field Detail

ASCII_OPTIONSback to summary
public static final Map<K, V> ASCII_OPTIONS

Standard options to use the ASCII/MBCS version of a w32 API.

DEFAULT_OPTIONSback to summary
public static final Map<K, V> DEFAULT_OPTIONS
HWND_BROADCASTback to summary
public static final W32API.HWND HWND_BROADCAST

Special HWND value.

INVALID_HANDLE_VALUEback to summary
public static final W32API.HANDLE INVALID_HANDLE_VALUE

Constant value representing an invalid HANDLE.

UNICODE_OPTIONSback to summary
public static final Map<K, V> UNICODE_OPTIONS

Standard options to use the unicode version of a w32 API.

com.sun.jna.examples.win32 back to summary

public Class W32API.HANDLE

extends PointerType
Class Inheritance
Known Direct Subclasses
com.sun.jna.examples.win32.W32API.HDC, com.sun.jna.examples.win32.W32API.HICON, com.sun.jna.examples.win32.W32API.HBITMAP, com.sun.jna.examples.win32.W32API.HRGN, com.sun.jna.examples.win32.W32API.HWND, com.sun.jna.examples.win32.W32API.HINSTANCE, com.sun.jna.examples.win32.User32.HHOOK

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
fromNative(Object nativeValue, FromNativeContext context)

Overrides com.sun.jna.PointerType.fromNative.

Implements com.sun.jna.NativeMapped.fromNative.

Override to the appropriate object for INVALID_HANDLE_VALUE.
Inherited from com.sun.jna.PointerType:
equalsgetPointerhashCodenativeTypesetPointertoNative

Constructor Detail

HANDLEback to summary
public HANDLE()

Method Detail

fromNativeback to summary
public Object fromNative(Object nativeValue, FromNativeContext context)

Overrides com.sun.jna.PointerType.fromNative.

Implements com.sun.jna.NativeMapped.fromNative.

Override to the appropriate object for INVALID_HANDLE_VALUE.

com.sun.jna.examples.win32 back to summary

public Class W32API.HANDLEByReference

extends ByReference
Class Inheritance

LPHANDLE

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public W32API.HANDLE
public void

Constructor Detail

HANDLEByReferenceback to summary
public HANDLEByReference()
HANDLEByReferenceback to summary
public HANDLEByReference(W32API.HANDLE h)

Method Detail

getValueback to summary
public W32API.HANDLE getValue()
setValueback to summary
public void setValue(W32API.HANDLE h)
com.sun.jna.examples.win32 back to summary

public Class W32API.HBITMAP

extends HANDLE
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.examples.win32.W32API.HANDLE:
fromNative

Constructor Detail

HBITMAPback to summary
public HBITMAP()
com.sun.jna.examples.win32 back to summary

public Class W32API.HDC

extends HANDLE
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
HDC()

Method Summary

Inherited from com.sun.jna.examples.win32.W32API.HANDLE:
fromNative

Constructor Detail

HDCback to summary
public HDC()
com.sun.jna.examples.win32 back to summary

public Class W32API.HICON

extends HANDLE
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.examples.win32.W32API.HANDLE:
fromNative

Constructor Detail

HICONback to summary
public HICON()
com.sun.jna.examples.win32 back to summary

public Class W32API.HINSTANCE

extends HANDLE
Class Inheritance
Known Direct Subclasses
com.sun.jna.examples.win32.W32API.HMODULE

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.examples.win32.W32API.HANDLE:
fromNative

Constructor Detail

HINSTANCEback to summary
public HINSTANCE()
com.sun.jna.examples.win32 back to summary

public Class W32API.HMODULE

extends HINSTANCE
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

HMODULEback to summary
public HMODULE()
com.sun.jna.examples.win32 back to summary

public Class W32API.HRGN

extends HANDLE
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
HRGN()

Method Summary

Inherited from com.sun.jna.examples.win32.W32API.HANDLE:
fromNative

Constructor Detail

HRGNback to summary
public HRGN()
com.sun.jna.examples.win32 back to summary

public Class W32API.HWND

extends HANDLE
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
HWND()

Method Summary

Inherited from com.sun.jna.examples.win32.W32API.HANDLE:
fromNative

Constructor Detail

HWNDback to summary
public HWND()
com.sun.jna.examples.win32 back to summary

public Class W32API.LONG_PTR

extends IntegerType
Class Inheritance
Known Direct Subclasses
com.sun.jna.examples.win32.W32API.SSIZE_T, com.sun.jna.examples.win32.W32API.LPARAM, com.sun.jna.examples.win32.W32API.LRESULT

Constructor Summary

AccessConstructor and Description
public
public
LONG_PTR(long value)

Method Summary

Inherited from com.sun.jna.IntegerType:
doubleValueequalsfloatValuefromNativehashCodeintValuelongValuenativeTypesetValuetoNativetoString

Constructor Detail

LONG_PTRback to summary
public LONG_PTR()
LONG_PTRback to summary
public LONG_PTR(long value)
com.sun.jna.examples.win32 back to summary

public Class W32API.LPARAM

extends LONG_PTR
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public
LPARAM(long value)

Constructor Detail

LPARAMback to summary
public LPARAM()
LPARAMback to summary
public LPARAM(long value)
com.sun.jna.examples.win32 back to summary

public Class W32API.LRESULT

extends LONG_PTR
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public
LRESULT(long value)

Constructor Detail

LRESULTback to summary
public LRESULT()
LRESULTback to summary
public LRESULT(long value)
com.sun.jna.examples.win32 back to summary

public Class W32API.SIZE_T

extends ULONG_PTR
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public
SIZE_T(long value)

Constructor Detail

SIZE_Tback to summary
public SIZE_T()
SIZE_Tback to summary
public SIZE_T(long value)
com.sun.jna.examples.win32 back to summary

public Class W32API.SSIZE_T

extends LONG_PTR
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public
SSIZE_T(long value)

Constructor Detail

SSIZE_Tback to summary
public SSIZE_T()
SSIZE_Tback to summary
public SSIZE_T(long value)
com.sun.jna.examples.win32 back to summary

public Class W32API.UINT_PTR

extends IntegerType
Class Inheritance
Known Direct Subclasses
com.sun.jna.examples.win32.W32API.WPARAM

Constructor Summary

AccessConstructor and Description
public
public
UINT_PTR(long value)

Method Summary

Modifier and TypeMethod and Description
public Pointer
Inherited from com.sun.jna.IntegerType:
doubleValueequalsfloatValuefromNativehashCodeintValuelongValuenativeTypesetValuetoNativetoString

Constructor Detail

UINT_PTRback to summary
public UINT_PTR()
UINT_PTRback to summary
public UINT_PTR(long value)

Method Detail

toPointerback to summary
public Pointer toPointer()
com.sun.jna.examples.win32 back to summary

public Class W32API.ULONG_PTR

extends IntegerType
Class Inheritance
Known Direct Subclasses
com.sun.jna.examples.win32.W32API.SIZE_T

Constructor Summary

AccessConstructor and Description
public
public
ULONG_PTR(long value)

Method Summary

Inherited from com.sun.jna.IntegerType:
doubleValueequalsfloatValuefromNativehashCodeintValuelongValuenativeTypesetValuetoNativetoString

Constructor Detail

ULONG_PTRback to summary
public ULONG_PTR()
ULONG_PTRback to summary
public ULONG_PTR(long value)
com.sun.jna.examples.win32 back to summary

public Class W32API.WPARAM

extends UINT_PTR
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public
WPARAM(long value)

Method Summary

Inherited from com.sun.jna.examples.win32.W32API.UINT_PTR:
toPointer

Constructor Detail

WPARAMback to summary
public WPARAM()
WPARAMback to summary
public WPARAM(long value)