C# 클래스 Abstractions.Windows.User

파일 보기 프로젝트 열기: MutonUfoAI/pgina

공개 메소드들

메소드 설명
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