我试图使用TRegistry.SaveKey或RegSaveKey函数导出注册表项,但没有成功。我得到的只是一个空文件0字节。我在网上看到了一些例子,似乎没有人在Windows10上工作。reg.SaveKey('HKEY_CURRENT_USER\Software\MyCompanyName\MyApplication', 'test.txt'); //not working
RegSaveKey
我尝试创建python脚本,以用户身份启动进程(将来,这段代码将由windows服务从会话0运行)。为此,我决定使用win32api。win32process.CreateProcessAsUser(token, None, "c:\\windows\\notepad.exe", None, None, 0, 0, None, None, startup)
pywintypes.error: (1314, 'CreateProcessAsUser', 'A required privilege is not held by the cl