aboutsummaryrefslogtreecommitdiff
path: root/winsrc/lombok_installer_WindowsDriveInfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsrc/lombok_installer_WindowsDriveInfo.c')
-rw-r--r--winsrc/lombok_installer_WindowsDriveInfo.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/winsrc/lombok_installer_WindowsDriveInfo.c b/winsrc/lombok_installer_WindowsDriveInfo.c
new file mode 100644
index 00000000..5bccd047
--- /dev/null
+++ b/winsrc/lombok_installer_WindowsDriveInfo.c
@@ -0,0 +1,29 @@
+/* DO NOT EDIT THIS FILE - it is machine generated */
+#include <jni.h>
+#include <windows.h>
+#include <stdio.h>
+#include <winbase.h>
+#include "lombok_installer_WindowsDriveInfo.h"
+
+/*
+ * Class: lombok_installer_WindowsDriveInfo
+ * Method: getLogicalDrives0
+ * Signature: ()I
+ */
+JNIEXPORT jint JNICALL Java_lombok_installer_WindowsDriveInfo_getLogicalDrives0
+ (JNIEnv *env, jobject obj) {
+ return GetLogicalDrives();
+}
+
+/*
+ * Class: lombok_installer_WindowsDriveInfo
+ * Method: getDriveType
+ * Signature: (Ljava/lang/String;)I
+ */
+JNIEXPORT jint JNICALL Java_lombok_installer_WindowsDriveInfo_getDriveType
+ (JNIEnv *env, jobject obj, jstring drive) {
+ const char *str= (*env)->GetStringUTFChars(env, drive, 0);
+ DWORD val = GetDriveTypeA(str);
+ (*env)->ReleaseStringUTFChars(env, drive, str);
+ return val;
+}