Hello,
I am writing a legacy filter driver, and in my driver I retrieve the SID of the user performing an operation. I do it in the Create IRP. When I print the sid, I get this output in DebugView:
SID (Revision 108, SubAuthorityCount 20):
PsclUtilsGetSid: IdentifierAuthority = 17-248-32-196-137-249
PsclUtilsGetSid: SubAuthority = index 0 value 3785799280
PsclUtilsGetSid: SubAuthority = index 1 value 0
PsclUtilsGetSid: SubAuthority = index 2 value 3783678608
PsclUtilsGetSid: SubAuthority = index 3 value 4186575584
PsclUtilsGetSid: SubAuthority = index 4 value 4186575352
PsclUtilsGetSid: SubAuthority = index 5 value 7864404
PsclUtilsGetSid: SubAuthority = index 6 value 0
PsclUtilsGetSid: SubAuthority = index 7 value 1
PsclUtilsGetSid: SubAuthority = index 8 value 9048800
PsclUtilsGetSid: SubAuthority = index 9 value 4161869060
PsclUtilsGetSid: SubAuthority = index 10 value 4186577036
PsclUtilsGetSid: SubAuthority = index 11 value 0
PsclUtilsGetSid: SubAuthority = index 12 value 2171557368
PsclUtilsGetSid: SubAuthority = index 13 value 4
PsclUtilsGetSid: SubAuthority = index 14 value 4161869080
PsclUtilsGetSid: SubAuthority = index 15 value 4186577036
PsclUtilsGetSid: SubAuthority = index 16 value 0
PsclUtilsGetSid: SubAuthority = index 17 value 4161869044
PsclUtilsGetSid: SubAuthority = index 18 value 2153050784
PsclUtilsGetSid: SubAuthority = index 19 value 2152974525
And when I check for the SID in the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList) it looks like this: S-1-5-21-1343024091-1292428093-839522115-500.
Why are they different?
Thanks!