This question: http://stackoverflow.com/questions/5458392/programmatically-take-ownership-of-a-registry-key-in-c seems to have been closed because no reason was given WHY the asker wished to do what they wanted and better options might have been available, but IMO that doesn't diminish the value of the question.
How do I take ownership of a registry key programmatically in C#?
Now, I find myself in the position of needing the answer, and there is precedence for closing questions of this type, and not only will my question be subject to the same judgements, it will also now be a duplicate.
"How do I do X" is just as valid a question as "What is the best way to accomplish Y", and they're not the same question. Is it reasonable to vote to close the first question because you think the asker should have asked the second question instead?
Was this question closed in error?