com.jniwrapper.win32
Class Handle

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Pointer.Void
          extended bycom.jniwrapper.win32.Handle
All Implemented Interfaces:
IntegerParameter
Direct Known Subclasses:
AccessToken, DC, EventLog, EventObject, GdiObject, GlobalMemoryBlock, LocalMemoryBlock, Module, Mutex, Process, ProcessVariables, RegistryKey, ScHandle, Snapshot, Wnd

public class Handle
extends Pointer.Void

A base class for all handle types.


Field Summary
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
Handle()
          Constucts a blank handle instance.
Handle(long value)
          Constructs a handle with the passed value.
 
Method Summary
 java.lang.Object clone()
           
static boolean closeHandle(Handle handle)
          Closes an open object handle.
 
Methods inherited from class com.jniwrapper.Pointer.Void
asFunction, asFunction, asTypedPointer, castTo, equals, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
acceptIOPerformer, asReturnValue, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Handle

public Handle()
Constucts a blank handle instance.


Handle

public Handle(long value)
Constructs a handle with the passed value.

Parameters:
value - handle value.
Method Detail

clone

public java.lang.Object clone()

closeHandle

public static boolean closeHandle(Handle handle)
Closes an open object handle. This method closes handles to the following objects:

Parameters:
handle - Handle to an open object
Returns:
If the function succeeds, the return value is true; false otherwise