Summary: To get the SID of domain or computer simply left the UserName property empty. Note that the last number in SID string is DWORD(-1). Now note that Source property has ssName value. This property changes automatically to reflect what source of SID is primary now and what is derived. Only primary SID
Image Dimensions: 387 x 220
Image originally found here.