Click here to Skip to main content
15,881,812 members
Articles / Desktop Programming / Win32

Using Windows Transactions to Recursively Delete a Registry Tree

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
16 Aug 2022MIT4 min read 6.8K   158   2  
This article describes how to use Windows transactions to recursively delete a registry tree under a registry subkey and then the subkey itself.
Using registry transactions, it is possible to chain multiple independent operations together and have them all succeed at once, or have them rolled back if somewhere in the chain there is an error. In a previous article, I explained transactions in general. In this article, I provide a real-world scenario, and describe how transactions can be used to mitigate problems.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer
Belgium Belgium
I am a former professional software developer (now a system admin) with an interest in everything that is about making hardware work. In the course of my work, I have programmed device drivers and services on Windows and linux.

I have written firmware for embedded devices in C and assembly language, and have designed and implemented real-time applications for testing of satellite payload equipment.

Generally, finding out how to interface hardware with software is my hobby and job.

Comments and Discussions