用xml编辑器打开Package.appxmanifest,在【Package】中加入

xmlns=”http://schemas.microsoft.com/appx/manifest/foundation/windows10″
xmlns:uap=”http://schemas.microsoft.com/appx/manifest/uap/windows10″
xmlns:desktop=”http://schemas.microsoft.com/appx/manifest/desktop/windows10″
xmlns:mp=”http://schemas.microsoft.com/appx/2014/phone/manifest”
xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities”
IgnorableNamespaces=”uap rescap mp desktop”

找到【Applications】/【Extensions】节点,加入

找到【Capabilities】节点加入

下面是调用代码:win32中

获取当前是否开机启动,绑定到chkBoxStartup

设置开机启动和取消,绑定到chkBoxStartup



如果您对C#游戏开发感兴趣,可以扫下面二维码加入我们的QQ群来一起学习交流

原创文章,转载请注明本文链接地址(违者必究):Desktop Bridge 开机启动设置