From 5835344277d10d069d792c59d67e41313d589d68 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Thu, 23 Jul 2009 23:17:59 +0200 Subject: Rewrote the "find hard disks on windows" to use a dll instead. The reasons: A) FSUTIL is internationalized, so on non-english installs, we can't figure out if a disk is fixed. B) I trust this better than fsutil for user control access (a.k.a. popups from hell) on vista. C) fsutil.exe is in C:\windows\system32 so pretty sure it would be there, but there's always a chance it's not in the PATH, or otherwise not accessible. --- winsrc/lombok_installer_WindowsDriveInfo.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 winsrc/lombok_installer_WindowsDriveInfo.h (limited to 'winsrc/lombok_installer_WindowsDriveInfo.h') diff --git a/winsrc/lombok_installer_WindowsDriveInfo.h b/winsrc/lombok_installer_WindowsDriveInfo.h new file mode 100644 index 00000000..3f6c28ff --- /dev/null +++ b/winsrc/lombok_installer_WindowsDriveInfo.h @@ -0,0 +1,29 @@ +/* DO NOT EDIT THIS FILE - it is machine generated */ +#include +/* Header for class lombok_installer_WindowsDriveInfo */ + +#ifndef _Included_lombok_installer_WindowsDriveInfo +#define _Included_lombok_installer_WindowsDriveInfo +#ifdef __cplusplus +extern "C" { +#endif +/* + * Class: lombok_installer_WindowsDriveInfo + * Method: getLogicalDrives0 + * Signature: ()I + */ +JNIEXPORT jint JNICALL Java_lombok_installer_WindowsDriveInfo_getLogicalDrives0 + (JNIEnv *, jobject); + +/* + * Class: lombok_installer_WindowsDriveInfo + * Method: getDriveType + * Signature: (Ljava/lang/String;)I + */ +JNIEXPORT jint JNICALL Java_lombok_installer_WindowsDriveInfo_getDriveType + (JNIEnv *, jobject, jstring); + +#ifdef __cplusplus +} +#endif +#endif -- cgit