MCPcopy Create free account
hub / github.com/java-native-access/jna / getWindowPointer

Method getWindowPointer

src/com/sun/jna/Native.java:432–434  ·  view source on GitHub ↗

Utility method to get the native window pointer for a Java Window as a Pointer value. This method is primarily for w32, which uses the HANDLE type (actually void ) to identify windows. @throws HeadlessException if the current VM is running headless

(Window w)

Source from the content-addressed store, hash-verified

430 * @throws HeadlessException if the current VM is running headless
431 */
432 public static Pointer getWindowPointer(Window w) throws HeadlessException {
433 return new Pointer(AWT.getWindowID(w));
434 }
435
436 /** Utility method to get the native window pointer for a heavyweight Java
437 * {@link Component} as a {@link Pointer} value. This method is primarily

Callers 3

Wtsapi32TestMethod · 0.95
getHwndMethod · 0.95
loadJAWTMethod · 0.95

Calls 1

getWindowIDMethod · 0.95

Tested by 2

Wtsapi32TestMethod · 0.76
loadJAWTMethod · 0.76