need help with option box Programming Software Development by DeadlyMan … lpSubKey As String, phkResult As Long) As Long Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal… As String) Call ParseKey(Keyname, MainKeyHandle) If MainKeyHandle Then rtn = RegDeleteKey(MainKeyHandle, Keyname) 'delete the key End If End Function Function… RegOpenkeyEx Error: 87 aka INVALID_PARAMETER Programming Software Development by Abhineet.Ayan …am implementing a recursive registry delete using RegOpenKeyEx, RegDeleteKey and RegEnumKey. **Problem::** Though the code works … } if( hKeySub != NULL ) { RegCloseKey(hKeySub) ; hKeySub = NULL ; } lRet = RegDeleteKey( hKey, lpszSub ) ; printf("RegDelKey:: %S :: lRet = %ld\n"… Re: File association in vb6 Programming Software Development by choudhuryshouvi … As String, lpcbData As Long) As Long Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal…, KEY_WRITE, lphKey&) If ret& = ERROR_SUCCESS Then ret& = RegDeleteKey(lphKey&, "") 'delete the key ret& = RegCloseKey… Re: Registry Access Programming Software Development by abbajee …Long, ByVal lpValueName As String) _ As Long Declare Function RegDeleteKey Lib "advapi32.dll" _ Alias "RegDeleteKeyA&…, sSubKey, 0, KEY_CREATE_SUB_KEY, lHandle) If lResult = ERROR_SUCCESS Then lResult = RegDeleteKey(lHandle, sKeyName) End If If lResult = ERROR_SUCCESS Or lResult = ERROR_FILE_NOT_FOUND… Re: Portable application!! Need your suggestion Programming Software Development by AndreRet … String, ByVal cbData As Long) As Long Public Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal… Long, ByVal strKey As String) Dim r As Long r = RegDeleteKey(hKey, strKey) End Function Public Function GetSettingString(hKey As Long… Re: To delete a folder from registry Programming Software Development by Ancient Dragon [URL="http://msdn2.microsoft.com/en-us/library/ms724845(VS.85).aspx"]RegDeleteKey()[/URL] Re: To delete a folder from registry Programming Software Development by harishankarb [QUOTE=Ancient Dragon;554368][URL="http://msdn2.microsoft.com/en-us/library/ms724845(VS.85).aspx"]RegDeleteKey()[/URL][/QUOTE] what do u mean by that mr dragon Re: Deleting a subkey from the registry Programming Software Development by djMot … programatically? If so... [CODE] 'Delete Key declaration Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal… Re: Have a question.... Programming Software Development by vb5prgrmr …, you can use the following API's RegCreateKey or RegCreateKeyEx RegDeleteKey RegQueryValue or RegQueryValueEx Good Luck Re: How to delete the registry entry of vb project Programming Software Development by vb5prgrmr RegDeleteValue and RegDeleteKey API's are what you are looking for. Good Luck Re: Get ClsID, ProgID, TlbID of a DLL file Programming Software Development by AndreRet …, lpData As Any, lpcbData As Long) As Long ' Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" _… Re: Win32 registry functions failing Programming Software Development by caut_baia … (Key_,Buff,0,KEY_ALL_ACCESS,&tmpKey)==ERROR_SUCCESS) { DeleteKey (tmpKey); } } else { RegDeleteKey (Key_,Buff); DeleteKey (Root); } } //------------------------------------------------------------------------------------ HKEY RegistryEntry::OpenKey (const HKEY&… Re: RegOpenkeyEx Error: 87 aka INVALID_PARAMETER Programming Software Development by triumphost Question for you.. Are you sure the following is correct? if( lRet != ERROR_SUCCESS ) { if( lRet == ERROR_FILE_NOT_FOUND ) { bRet = FALSE ; break ; } else { bRet = FALSE ; //Are… Re: RegOpenkeyEx Error: 87 aka INVALID_PARAMETER Programming Software Development by Abhineet.Ayan Thanks for trying. That if-else condition is My Bad. And again, RegOpenKeyEx is returning the INVALID_PARAMETER ERROR. My first problem is atleast opening the key.