Hi all,
I want to update the registry through my java program using the JNI
so for that i created the C file and wanted to update the registry
when i execute the sample program given in the book it update the
registry
but for my specified key it gives the message as Open key failed when i
want to write into the registry the code which gives the message
is given below
if (RegOpenKeyEx(root, cpath, 0, KEY_WRITE, &hkey)
!= ERROR_SUCCESS)
{ (*env)->ThrowNew(env,
(*env)->FindClass(env, "Win32RegKeyException"),
"Open key failed ");
(*env)->ReleaseStringUTFChars(env, path, cpath);
return;
}
please advice me why it coming, I had used the sample code from
Core Java 2
thanks in advance
Rajesh
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html