>PS:Only changing the declaration was sufficient for your other thread.
>
>Hello Cetin;
>
>His code was also out of sequence of some sentences..
>
>The declarations of API was after of get_value's call, and closekey (I believe) was not there..
>
>Claudio
Might be. I copied his code and only changed the decaration, added RegCloseKey declaration and it worked as expected:)
Cetin