I tried to read a key and its value from windows registry. I succeeded in it. But i want to know the error code returned by those functions and hence made the function to fail (by asking program to get value for a non-existing key). GetLastError i used. But it always returns zero as the error code.
Can anyone help me in this regard.
Thanks in advance.