On 7/29/2012 02:24, Detlef Riekenberg wrote:
{/* report always "S-1-16-12288" (high mandatory level) */static BYTE high_level[] = {1, /* SID_VERSION */1, /* One SubAuthority entry */0,0,0,0,0,16, /* SECURITY_MANDATORY_LABEL_AUTHORITY */0,0x30,0,0}; /* SECURITY_MANDATORY_HIGH_RID */
This is ugly. Better way is:
static const SID highlabel = { SID_REVISION, 1, { SECURITY_MANDATORY_LABEL_AUTHORITY}, { SECURITY_MANDATORY_HIGH_RID } };
and comment is not needed after that cause level is now obvious with these defines.