locked
TOKEN_INFORMATION_CLASS?? RRS feed

  • Question

  • Hi, i have an old app. developed in Visual C++ 6.0 and now i need to do some Vista considerations.

     

    Can this app use the TOKEN_INFORMATION_CLASS enum to use this piece of code? bacase i can't find this new set of values, not even on .net

     

    TOKEN_ELEVATION_TYPE elevationType;
        GetTokenInformation(
                hToken, TokenElevationType,
                &elevationType, sizeof(elevationType), &infoLen)

     

    al i can see is the old enum

     

    typedef enum _TOKEN_INFORMATION_CLASS {
      TokenUser = 1,
      TokenGroups,
      TokenPrivileges,
      TokenOwner,
      TokenPrimaryGroup,
      TokenDefaultDacl,
      TokenSource,
      TokenType,
      TokenImpersonationLevel,
      TokenStatistics,
      TokenRestrictedSids,
      TokenSessionId,
      TokenGroupsAndPrivileges,
      TokenSessionReference,
      TokenSandBoxInert,
      TokenAuditPolicy,
      TokenOrigin
    TOKEN_INFORMATION_CLASS, *PTOKEN_INFORMATION_CLASS;
    How can i get the new enum?
    Thx, Najash


     

     

     

     

     

     

    Monday, July 9, 2007 10:53 PM

All replies

  • Installing the Vista SDK would be a first step. You'd get more up to date includes...

    It may require a more recent compiler though.

     

    Regards

    Eric

    Thursday, July 19, 2007 11:23 PM