Skip to content

Help with LimitedAccessFeatures::TryUnlockFeature in a unpackaged application #5062

Answered by jso-mega
jso-mega asked this question in Q&A
Discussion options

You must be logged in to vote

So at last i've managed to make this work, in a unpackaged application i added/embeded a .rc file with the following:
Identity LimitedAccessFeature { L"AppName_testidpublisher123" }
then using the name "AppName_testidpublisher123" as a PackageFamilyName in the https://withinrafael.com/api/windows_laf_token i get the token to be used in LimitedAccessFeatures.TryUnlockFeature("com.microsoft.windows.taskbar.pin", tokenFromWebApi, attestation)
The last argument is the attestation formed in the following way:

var publishedId = testidpublisher123
var featureId = com.microsoft.windows.taskbar.pin

attestation = $publisherId has registered their use of $featureId with Microsoft and agrees to the t…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@jso-mega
Comment options

@riverar
Comment options

@jso-mega
Comment options

@jso-mega
Comment options

Answer selected by jso-mega
@ghost1372
Comment options

@hzq4git
Comment options

@jso-mega
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants