JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative.misc
Class SecurityAttributes

java.lang.Object
  extended by org.xvolks.jnative.misc.SecurityAttributes

public class SecurityAttributes
extends java.lang.Object

SecurityAttributes this utility class is used by Kernel32.createFile().
This is the native peer.

         typedef struct _SECURITY_ATTRIBUTES {
   DWORD nLength;
   LPVOID lpSecurityDescriptor;
   BOOL bInheritHandle;
  } SECURITY_ATTRIBUTES,
  *PSECURITY_ATTRIBUTES;
$Id: SecurityAttributes.java,v 1.6 2006/06/09 20:44:05 mdenty Exp $; This software is released under the LGPL.


Constructor Summary
SecurityAttributes()
           
 
Method Summary
 void dispose()
           
protected  void finalize()
           
 Pointer getLpSecurityDescriptor()
          Returns LpSecurityDescriptor
 int getNLength()
          Returns NLength
 Pointer getPointer()
           
 boolean isBInheritHandle()
          Returns BInheritHandle
 void setBInheritHandle(boolean bInheritHandle)
          Sets BInheritHandle
 void setLpSecurityDescriptor(Pointer lpSecurityDescriptor)
          Sets LpSecurityDescriptor
 void setNLength(int nLength)
          Sets NLength
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityAttributes

public SecurityAttributes()
Method Detail

getPointer

public Pointer getPointer()

dispose

public void dispose()
             throws NativeException
Throws:
NativeException

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

setNLength

public void setNLength(int nLength)
                throws NativeException
Sets NLength

Parameters:
NLength - an int
Throws:
NativeException

getNLength

public int getNLength()
               throws NativeException
Returns NLength

Returns:
an int
Throws:
NativeException

setLpSecurityDescriptor

public void setLpSecurityDescriptor(Pointer lpSecurityDescriptor)
                             throws NativeException
Sets LpSecurityDescriptor

Parameters:
LpSecurityDescriptora - Pointer
Throws:
NativeException

getLpSecurityDescriptor

public Pointer getLpSecurityDescriptor()
Returns LpSecurityDescriptor

Returns:
a Pointer

setBInheritHandle

public void setBInheritHandle(boolean bInheritHandle)
                       throws NativeException
Sets BInheritHandle

Parameters:
BInheritHandle - a boolean
Throws:
NativeException

isBInheritHandle

public boolean isBInheritHandle()
                         throws NativeException
Returns BInheritHandle

Returns:
a boolean
Throws:
NativeException

JNative v1.3 project : see http://jnative.sf.net