C# Class Abstractions.Windows.User

Afficher le fichier Open project: MutonUfoAI/pgina

Méthodes publiques

Méthode Description
DelProfileList ( string userSID ) : System.Boolean

Delete ProfileList regkeys

FixProfileList ( string userSID ) : System.Boolean

if a user receives a temp profile of whatever reason MS is renaming the SID key under ProfileList to SID.bak if so winapi calls will fail and not returning anything

GetProfileDir ( System.Security.Principal.SecurityIdentifier sid ) : List

returns profiledir based on regkey

GetProfileDir ( string username, string password, System.Security.Principal.SecurityIdentifier sid ) : string

returns user profile direrctory empty string on error

IsProfileTemp ( string sid ) : bool?

return true if profile is temp. uses ProfileList State regkey

QueryQuota ( Abstractions where, string name ) : System.Boolean

query for already set user profile quota

SetQuota ( Abstractions where, string name, uint quota ) : System.Boolean

sets user profile quota

Method Details

DelProfileList() public static méthode

Delete ProfileList regkeys
public static DelProfileList ( string userSID ) : System.Boolean
userSID string
Résultat System.Boolean

FixProfileList() public static méthode

if a user receives a temp profile of whatever reason MS is renaming the SID key under ProfileList to SID.bak if so winapi calls will fail and not returning anything
public static FixProfileList ( string userSID ) : System.Boolean
userSID string
Résultat System.Boolean

GetProfileDir() public static méthode

returns profiledir based on regkey
public static GetProfileDir ( System.Security.Principal.SecurityIdentifier sid ) : List
sid System.Security.Principal.SecurityIdentifier
Résultat List

GetProfileDir() public static méthode

returns user profile direrctory empty string on error
public static GetProfileDir ( string username, string password, System.Security.Principal.SecurityIdentifier sid ) : string
username string
password string
sid System.Security.Principal.SecurityIdentifier
Résultat string

IsProfileTemp() public static méthode

return true if profile is temp. uses ProfileList State regkey
public static IsProfileTemp ( string sid ) : bool?
sid string
Résultat bool?

QueryQuota() public static méthode

query for already set user profile quota
public static QueryQuota ( Abstractions where, string name ) : System.Boolean
where Abstractions
name string
Résultat System.Boolean

SetQuota() public static méthode

sets user profile quota
public static SetQuota ( Abstractions where, string name, uint quota ) : System.Boolean
where Abstractions ROOTKEY hklm or hku
name string SubKey name
quota uint if 0 means the profile quota GPO it will be deleted
Résultat System.Boolean