I just want to open a key in a registry(Windows XP) using RegOpenKeyEx() function which takes the second argument as path of the registry key. The second argument type is LPCTSTR (means pointer to a Const Char).
Example of the Path:
here I know about the path till the \\CurrentControlSet\\... at starting. There after i will came to know the exact path at runtime.
How can i modified that?
Main problem is we have to pass the second argument in RegOpenKeyEx() function as LPCTSTR.