Hi,
We have now added your needed functionality into JCAPI. This is a very early release candidate of the next version (v1.2), so we have decided to not publish it on our public download page. Instead you can download it from the link below.
Note: make sure that you delete the old JCAPI DLL file before you use the new JCAPI JAR file:
C:\Documents and Settings\
your user\Local Settings\Temp\JCAPI.dll
The following new methods have been added into the
JCAPIProperties class:
- void setSystemStoreRegistryLocation(JCAPISystemStoreRegistryLocation location) - Set JCAPI to use a new registry location.
- JCAPISystemStoreRegistryLocation getSystemStoreRegistryLocation() - Get current location used by JCAPI.
- void resetSystemStoreRegistryLocation() - Tell JCAPI to use the default registry location which is the current user i.e JCAPISystemStoreRegistryLocation.CERT_SYSTEM_STORE_CURRENT_USER
The new class
JCAPISystemStoreRegistryLocation defines the following static registry locations for your convenience:
- CERT_SYSTEM_STORE_CURRENT_SERVICE
- CERT_SYSTEM_STORE_CURRENT_USER
- CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY
- CERT_SYSTEM_STORE_LOCAL_MACHINE
- CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE
- CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY
- CERT_SYSTEM_STORE_SERVICES
- CERT_SYSTEM_STORE_USERS
In your specific case when using the local machine, you could use the following code:
JCAPISystemStoreRegistryLocation location =
new JCAPISystemStoreRegistryLocation(JCAPISystemStoreRegistryLocation.CERT_SYSTEM_STORE_LOCAL_MACHINE);
JCAPIProperties.getInstance().setSystemStoreRegistryLocation(location);
Please let us know if you encounter any problems.
Regards,
Tommy