The SECURITY_ATTRIBUTES structure contains the security descriptor for an object and specifies whether the handle retrieved by specifying this structure is inheritable. This structure provides security settings for objects created by various functions, such as CreateFile, CreateNamedPipe, CreateProcess, RegCreateKeyEx, or RegSaveKeyEx.
Class used to manage program's uac Exemple of use: Uac uac = new Uac(); bool InAdminGroup = uac.IsUserInAdminGroup(); bool uac.IsRunAsAdmin(); bool uac.IsProcessElevated(); if(!fIsElevated) uac.SetShieldOnButton(btnElevate);