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

at.spardat.xma.boot.natives.Natives Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
/*******************************************************************************
 * Copyright (c) 2003, 2007 s IT Solutions AT Spardat GmbH .
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     s IT Solutions AT Spardat GmbH - initial API and implementation
 *******************************************************************************/

/*
 * Created on 15.01.2004
 */
package at.spardat.xma.boot.natives;

/**
 * This class gets informations needed from the native windows (win32) api.
 *
 * @author s3595
 */
public class Natives {

    static {
        System.loadLibrary("natives");
    }

    public native String getRegistryKey(String strKey, String strSubKey, String strValueKey );

/*
    public static void main(String[] args) {

        String strkey   = "HKEY_CURRENT_USER";
        String strSub   = "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings";
        String strValue = "ProxyServer";

        Natives natives = new Natives();

        for( int i = 0 ; i<1; i++ ) {
           String res = natives.getRegistryKey( strkey, strSub, strValue );
           System.out.println( "res:  \"" + res +"\"" );
        }
    }
*/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy