C# Класс Abstractions.Windows.User

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

DelProfileList() публичный статический Метод

Delete ProfileList regkeys
public static DelProfileList ( string userSID ) : System.Boolean
userSID string
Результат System.Boolean

FixProfileList() публичный статический Метод

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
Результат System.Boolean

GetProfileDir() публичный статический Метод

returns profiledir based on regkey
public static GetProfileDir ( System.Security.Principal.SecurityIdentifier sid ) : List
sid System.Security.Principal.SecurityIdentifier
Результат List

GetProfileDir() публичный статический Метод

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
Результат string

IsProfileTemp() публичный статический Метод

return true if profile is temp. uses ProfileList State regkey
public static IsProfileTemp ( string sid ) : bool?
sid string
Результат bool?

QueryQuota() публичный статический Метод

query for already set user profile quota
public static QueryQuota ( Abstractions where, string name ) : System.Boolean
where Abstractions
name string
Результат System.Boolean

SetQuota() публичный статический Метод

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
Результат System.Boolean