Thanx for the code.

Will u tell me what exactly I need to pass as "hKey","wSubkey","wValname" . I am confused with key and subkey concept!!!.