Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以为我提供一个 RegOpenCurrentUser 的工作示例吗?它对我所做的只是把 ERROR_INVALID_PARAMETER 还给我。
PHKEY keyCurrentUser = NULL; lResult = RegOpenCurrentUser(KEY_READ, keyCurrentUser);
lResult总是87。不知道为什么。
您没有初始化指针,NULL 不是可接受的值。使固定:
HKEY keyCurrentUser; lResult = RegOpenCurrentUser(KEY_READ, &keyCurrentUser);