I writing program for the Windows registry and trying to query values from it, but even if I running my own program with the permissions of Administrator, I can not read all
You are asking for too much access. You are asking for KEY_ALL_ACCESS when all you actually need is KEY_READ. You do not have all-access permission, but you do have read permission.