Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2005, 06:18 AM
Authorized User
 
Join Date: Sep 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vb_programmer Send a message via Yahoo to vb_programmer
Default RegDeleteKey API does not work ...

Hello to all Forum members ;

I'm new to Registry stuff and I need to implment few Registry API in my current on-going project. I'm trying to implement RegDeleteKey API to delete a specific registry key. I found that if there is any sub-key for the reg-key I'm passing as param, this API fails to delete the key. Is that the same way it has to be or I'm missing something ?

Please tell me if there is any solution for this ? Any ready API to handle this functionality (which will delete the Registry key with all its sub-keys.)

Waiting for your reply ...
 
Old June 5th, 2005, 03:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use RegQueryInfoKey to get the list of the subkeys, and I recursively delete all of them (sorry I cannot post code in production)
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
API mallik C++ Programming 2 February 20th, 2008 04:03 AM
API Read it please lord655 C# 2005 3 October 29th, 2007 01:38 PM
API Panduchandra Visual C++ 1 March 27th, 2006 11:48 PM
JNLP API edmontJS Java GUI 0 July 24th, 2005 03:36 AM
about visit c-api 6cet6 VS.NET 2002/2003 0 March 25th, 2004 06:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.