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

oshi.jna.platform.windows.WinNT Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019-2022 The OSHI Project Contributors
 * SPDX-License-Identifier: MIT
 */
package oshi.jna.platform.windows;

import com.sun.jna.Structure;
import com.sun.jna.Structure.FieldOrder;

import oshi.util.Util;

public interface WinNT extends com.sun.jna.platform.win32.WinNT {

    @FieldOrder({ "TokenIsElevated" })
    class TOKEN_ELEVATION extends Structure implements AutoCloseable {
        public int TokenIsElevated;

        @Override
        public void close() {
            Util.freeMemory(getPointer());
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy