All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnr.posix.WindowsSecurityAttributes Maven / Gradle / Ivy

The newest version!
package jnr.posix;

import jnr.ffi.*;

/**
 *
 */
public class WindowsSecurityAttributes extends jnr.ffi.Struct {
    public final Unsigned32 length = new Unsigned32();
    public final Pointer securityDescriptor = new Pointer();
    public final WBOOL inheritHandle = new WBOOL();

    public WindowsSecurityAttributes(jnr.ffi.Runtime runtime) {
        super(runtime);
        
        // This seems like the sensible defaults for this.
        length.set(Struct.size(this));
        inheritHandle.set(true);
    }
    
    public long getLength() {
        return length.get();
    }

    public boolean getInheritHandle() {
        return inheritHandle.get();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy