You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/10 11:39:38 UTC
svn commit: r813330 - in
/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows:
acr_arch_registry.h acr_arch_service.h
Author: mturk
Date: Thu Sep 10 09:39:38 2009
New Revision: 813330
URL: http://svn.apache.org/viewvc?rev=813330&view=rev
Log:
Add matching defines for Java enums
Modified:
commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h
commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_service.h
Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h?rev=813330&r1=813329&r2=813330&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_registry.h Thu Sep 10 09:39:38 2009
@@ -24,6 +24,41 @@
extern "C" {
#endif
+/**
+ * Definitions matching the KeyAccessRights Java enum
+ */
+#define ACR_KEY_ALL_ACCESS 0x0001
+#define ACR_KEY_CREATE_LINK 0x0002
+#define ACR_KEY_CREATE_SUB_KEY 0x0004
+#define ACR_KEY_ENUMERATE_SUB_KEYS 0x0008
+#define ACR_KEY_EXECUTE 0x0010
+#define ACR_KEY_NOTIFY 0x0020
+#define ACR_KEY_QUERY_VALUE 0x0040
+#define ACR_KEY_READ 0x0080
+#define ACR_KEY_SET_VALUE 0x0100
+#define ACR_KEY_WOW64_64KEY 0x0200
+#define ACR_KEY_WOW64_32KEY 0x0400
+#define ACR_KEY_WRITE 0x0800
+
+/**
+ * Definitions matching the HKEY Java enum
+ */
+#define ACR_HKEY_CLASSES_ROOT 1
+#define ACR_HKEY_CURRENT_CONFIG 2
+#define ACR_HKEY_CURRENT_USER 3
+#define ACR_HKEY_LOCAL_MACHINE 4
+#define ACR_HKEY_USERS 5
+
+/**
+ * Definitions matching the RegistrValueType Java enum
+ */
+#define ACR_REG_UNKNOWN 0
+#define ACR_REG_BINARY 1
+#define ACR_REG_DWORD 2
+#define ACR_REG_EXPAND_SZ 3
+#define ACR_REG_MULTI_SZ 4
+#define ACR_REG_QWORD 5
+#define ACR_REG_SZ 6
#ifdef __cplusplus
}
Modified: commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_service.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_service.h?rev=813330&r1=813329&r2=813330&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_service.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/arch/windows/acr_arch_service.h Thu Sep 10 09:39:38 2009
@@ -24,6 +24,35 @@
extern "C" {
#endif
+/**
+ * Definitions matching the ServiceState Java enum
+ */
+#define ACR_SVC_S_UNKNOWN 0
+#define ACR_SVC_S_STOPPED 1
+#define ACR_SVC_S_START_PENDING 2
+#define ACR_SVC_S_STOP_PENDING 3
+#define ACR_SVC_S_RUNNING 4
+#define ACR_SVC_S_CONTINUE_PENDING 5
+#define ACR_SVC_S_PAUSE_PENDING 6
+#define ACR_SVC_S_PAUSED 7
+#define ACR_SVC_S_DISABLED 8
+
+/**
+ * Definitions matching the ServiceErrorControl Java enum
+ */
+#define ACR_SVC_E_IGNORE 0
+#define ACR_SVC_E_NORMAL 1
+#define ACR_SVC_E_SEVERE 2
+#define ACR_SVC_E_CRITICAL 3
+
+/**
+ * Definitions matching the ServiceStartType Java enum
+ */
+#define ACR_SVC_M_BOOT 0
+#define ACR_SVC_M_SYSTEM 1
+#define ACR_SVC_M_AUTO 2
+#define ACR_SVC_M_DEMAND 3
+#define ACR_SVC_M_DISABLED 4
#ifdef __cplusplus
}