Share via


Determining integrity level and isolation

It may be necessary for your ActiveX control to determine the current integrity or isolation level. This can be achieved by checking the process token, as shown here:

The GetTokenInformation function gets information about an access token, if the calling process has rights to access the information.

For an example, see Searching for a SID in an access token.

To determine if a process is running in an AppContainer, use the TokenIsAppContainer value from the TOKEN_INFORMATION_CLASS enumeration.

For more info, see:

Enhanced protected mode (EPM) may be enabled on the desktop

Supporting enhanced protected mode (EPM)

Granting resource access to AppContainers

Creating and opening securable objects