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

eu.aschuetz.nativeutils.api.structs.SpDeviceInfoData Maven / Gradle / Ivy

There is a newer version: 4.7
Show newest version
//
// Copyright Alexander Schütz, 2021-2022
//
// This file is part of JavaNativeUtils.
//
// JavaNativeUtils is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// JavaNativeUtils is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// A copy of the GNU Lesser General Public License should be provided
// in the COPYING & COPYING.LESSER files in top level directory of JavaNativeUtils.
// If not, see .
//
package eu.aschuetz.nativeutils.api.structs;

/**
 *
 */
public class SpDeviceInfoData {
    int cbSize;
    GUID InterfaceClassGuid = new GUID();
    int DevInst;

    //Reserved by os to store some info
    long ptr;

    public SpDeviceInfoData() {

    }

    public SpDeviceInfoData(int cbSize, GUID guid, int flags, long ptr) {
        this.cbSize = cbSize;
        this.InterfaceClassGuid = guid.clone();
        this.DevInst = DevInst;
        this.ptr = ptr;
    }

    public int getCbSize() {
        return cbSize;
    }

    public GUID getInterfaceClassGuid() {
        return InterfaceClassGuid.clone();
    }

    public int getDevInst() {
        return DevInst;
    }

    public long getPtr() {
        return ptr;
    }

    @Override
    public String toString() {
        return "SpDeviceInfoData{" +
                "cbSize=" + cbSize +
                ", InterfaceClassGuid=" + InterfaceClassGuid +
                ", DevInst=" + DevInst +
                ", ptr=" + ptr +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy