Lines Matching refs:nativeHandle

530      * @param nativeHandle handle to the base Windows key.
538 private int openKey(int nativeHandle, byte[] windowsRelativePath,
542 int[] result = WindowsRegOpenKey1(nativeHandle,
545 result = WindowsRegOpenKey1(nativeHandle,
551 " at root 0x" + Integer.toHexString(nativeHandle) +
575 int nextNativeHandle = openKey(nativeHandle, nextRelativeRoot,
595 private void closeKey(int nativeHandle) {
596 int result = WindowsRegCloseKey(nativeHandle);
612 int nativeHandle = openKey(KEY_SET_VALUE);
613 if (nativeHandle == NULL_NATIVE_HANDLE) {
617 int result = WindowsRegSetValueEx1(nativeHandle,
627 closeKey(nativeHandle);
637 int nativeHandle = openKey(KEY_QUERY_VALUE);
638 if (nativeHandle == NULL_NATIVE_HANDLE) {
641 Object resultObject = WindowsRegQueryValueEx(nativeHandle,
644 closeKey(nativeHandle);
647 closeKey(nativeHandle);
659 int nativeHandle = openKey(KEY_SET_VALUE);
660 if (nativeHandle == NULL_NATIVE_HANDLE) {
664 WindowsRegDeleteValue(nativeHandle, toWindowsName(key));
674 closeKey(nativeHandle);
685 int nativeHandle = openKey(KEY_QUERY_VALUE);
686 if (nativeHandle == NULL_NATIVE_HANDLE) {
691 int[] result = WindowsRegQueryInfoKey1(nativeHandle);
704 closeKey(nativeHandle);
710 byte[] windowsName = WindowsRegEnumValue1(nativeHandle, i,
722 closeKey(nativeHandle);
734 int nativeHandle = openKey(KEY_ENUMERATE_SUB_KEYS| KEY_QUERY_VALUE);
735 if (nativeHandle == NULL_NATIVE_HANDLE) {
741 int[] result = WindowsRegQueryInfoKey1(nativeHandle);
754 closeKey(nativeHandle);
761 byte[] windowsName = WindowsRegEnumKeyEx1(nativeHandle, i,
774 closeKey(nativeHandle);
794 int nativeHandle = openKey(KEY_READ);
795 if (nativeHandle == NULL_NATIVE_HANDLE) {
800 int result = WindowsRegFlushKey1(nativeHandle);
809 closeKey(nativeHandle);