You should use RegOpenCurrentUser instead of RegOpenKey(Ex) (TRegistry). These functions don't work with impersonation. Christian Wimmer