Skip to content

Generate a token to unlock LAF without requesting a token from Microsoft.

Methods

Name
GenerateTokenFromFeatureId
GenerateAttestation
cs
var featureId = "com.microsoft.windows.composition.engine";
var token = LimitedAccessFeatureTokenGenerator.GenerateTokenFromFeatureId(featureId);
var attestation = LimitedAccessFeatureTokenGenerator.GenerateAttestation(featureId);

var accessResult = LimitedAccessFeatures.TryUnlockFeature(featureId, token, attestation);

WARNING

If the featureId is not available in our built-in dictionary, you can provide the featureId and its corresponding code directly: LimitedAccessFeatureTokenGenerator.GenerateTokenFromFeatureId("com.microsoft.windows.composition.engine", "26ef12c7-bf7e-4fa7-ac71-9665b27be6f7");

The following featureId values are built in:

cs
{ "com.microsoft.windows.windowdecorations", "425261a8-7f73-4319-8a53-fc13f87e1717" },
{ "com.microsoft.windows.updateorchestrator.1", "20C662033A4007A55375BF00D986C280B41A418F" },
{ "com.microsoft.windows.update.1", "01B2AEA8-7DD5-4066-A081-1E4CD1479CCA" },
{ "com.microsoft.windows.taskbar.requestPinSecondaryTile", "04c19204-10d9-450a-95c4-2910c8f72be3" },
{ "com.microsoft.windows.richeditmath", "RDZCQjY2M0YtQkFDMi00NkIwLUI3NzEtODg4NjMxMEVENkFF" },
{ "com.microsoft.windows.holographic.xrruntime.2", "58AA36EF-7C1A-4A56-9308-FC882F56465A" },
{ "com.microsoft.windows.holographic.xrruntime.1", "036EFF74-8BF2-4249-82AF-92235C6E1A10" },
{ "com.microsoft.windows.holographic.shell", "527f4968-f193-419a-b91f-46b9106e1129" },
{ "com.microsoft.windows.holographic.keyboardcursor_v1", "FE676B8B-E396-4A80-9573-B67542840E5C" },
{ "com.microsoft.windows.callcontrolpublicapi_v1", "6e7e52aa-cddb-4e57-9f1c-7dd511ad7d01" },
{ "com.microsoft.windows.applicationwindow", "e5a85131-319b-4a56-9577-1c1d9c781218" },
{ "com.microsoft.windows.applicationmodel.phonelinetransportdevice_v1", "cb9WIvVfhp+8lFhaSrB6V6zUBGqctteKi/f/9AIeoZ4" },
{ "com.microsoft.windows.applicationmodel.conversationalagent_v1", "hhrovbOc/z8TgeoWheL4RF5vLLJrKNAQpdyvhlTee6I" },
{ "com.microsoft.services.cortana.cortanaactionableinsights_v1", "nEVyyzytE6ankNk1CIAu6sZsh8vKLw3Q7glTOHB11po=" },
{ "com.microsoft.windows.composition.engine", "26ef12c7-bf7e-4fa7-ac71-9665b27be6f7" }

Demo

you can run demo and see this feature.

Released under the MIT License.