7071727374757677787980
int handle = 0; advapi32 = Advapi32.INSTANCE; pHandle = new IntByReference(); if (advapi32.RegOpenKeyEx(rootKeyMap.get(key), null, 0, 0, pHandle) == WINERROR.ERROR_SUCCESS) { handle = pHandle.getValue(); } return (handle); }
9899100101102103104105106107108
advapi32 = Advapi32.INSTANCE; rootKeyHandle = getRegistryRootKey(rootKey); pHandle = new IntByReference(); if (advapi32.RegOpenKeyEx(rootKeyHandle, subKeyName, 0, access, pHandle) == WINERROR.ERROR_SUCCESS) { return (pHandle.getValue()); } else