In my project, I need identify a SID is wellknown sid or not. I found a function to do it.
Well-known SIDs
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379649(v=vs.85).aspx
Well-known-sid-type enumeration
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379650(v=vs.85).aspx
IsWellKnownSid function
http://msdn.microsoft.com/en-us/library/windows/desktop/aa379154(v=vs.85).aspx
BOOL WINAPI IsWellKnownSid(
_In_ PSID pSid,
_In_ WELL_KNOWN_SID_TYPE WellKnownSidType
);
No comments:
Post a Comment