从 "user" 帐户下的服务 运行 调用 OpenWindowStation

Calling OpenWindowStation from a service running under a "user" account

我的服务使用与此非常相似的内容启动交互式客户端进程:https://msdn.microsoft.com/en-us/library/windows/desktop/aa379608(v=vs.85).aspx

当服务以 本地系统 登录时有效,如果它在 管理员 下 运行 则有效帐户 具有 SE_ASSIGNPRIMARYTOKEN_NAMESE_INCREASE_QUOTA_NAME 权限。

我的问题是在使用 标准用户 帐户或 本地服务 时,它在 OpenWindowStation[=32] 处失败=] 错误代码 5(拒绝访问)。

// Get a handle to the interactive window station.
hwinsta = OpenWindowStation(_T("winsta0"),               // the interactive window station 
                            FALSE,                       // handle is not inheritable
                            READ_CONTROL | WRITE_DAC);   // rights to read/write the DACL

是否可以从标准用户帐户调用 OpenWindowStation,或者我的服务必须 运行 在管理员帐户下?我尝试了几乎所有的本地策略都没有成功

谢谢!

可惜打不开,好像只有Administrator才能打开互动站