C# 클래스 Globals.RegistryAccess

파일 보기 프로젝트 열기: troymac1ure/Entity 1 사용 예제들

공개 메소드들

메소드 설명
AddRecentFile ( int pos, string fileName ) : void

Adds a file to the Halo 2 recently used list

CloseReg ( ) : void

Closes the Registry read access.

RegistryAccess ( RegistryKey mainKey, string subKey ) : System

Opens access to reading the registry. Call the CloseReg() function when complete

copyKey ( RegistryKey parentKey, string keyNameToCopy, string newKeyName ) : bool

Copy a registry key. The parentKey must be writeable.

getKeys ( ) : string[]
getNames ( ) : string[]
getValue ( string valueName ) : string

Returns a value from the Label in the current path use setKey() to set the current mainKey & path

getValues ( ) : object[]
removeKey ( RegistryKey mainKey, string subKey ) : bool
removeValue ( RegistryKey mainKey, string subKey, string valueName ) : bool

Used to remove a value from the registry

renameSubKey ( RegistryKey parentKey, string subKeyName, string newSubKeyName ) : bool

Renames a subkey of the passed in registry key since the Framework totally forgot to include such a handy feature.

setKey ( RegistryKey mainKey, string subKey ) : void

Sets the current mainkey & path

setValue ( RegistryKey mainKey, string subKey, string valueName, object value ) : bool

Sets a registry value

비공개 메소드들

메소드 설명
recurseCopyKey ( RegistryKey sourceKey, RegistryKey destinationKey ) : void

메소드 상세

AddRecentFile() 공개 정적인 메소드

Adds a file to the Halo 2 recently used list
public static AddRecentFile ( int pos, string fileName ) : void
pos int The position in which to add the fileName (0-9)
fileName string The location and name of the file
리턴 void

CloseReg() 공개 메소드

Closes the Registry read access.
public CloseReg ( ) : void
리턴 void

RegistryAccess() 공개 메소드

Opens access to reading the registry. Call the CloseReg() function when complete
public RegistryAccess ( RegistryKey mainKey, string subKey ) : System
mainKey Microsoft.Win32.RegistryKey Windows.Win32.Registry (Halo 2 uses CurrentUser)
subKey string The path to the Label
리턴 System

copyKey() 공개 정적인 메소드

Copy a registry key. The parentKey must be writeable.
public static copyKey ( RegistryKey parentKey, string keyNameToCopy, string newKeyName ) : bool
parentKey Microsoft.Win32.RegistryKey
keyNameToCopy string
newKeyName string
리턴 bool

getKeys() 공개 메소드

public getKeys ( ) : string[]
리턴 string[]

getNames() 공개 메소드

public getNames ( ) : string[]
리턴 string[]

getValue() 공개 메소드

Returns a value from the Label in the current path use setKey() to set the current mainKey & path
public getValue ( string valueName ) : string
valueName string The label name to return (Halo 2 uses RegistryAccess.RegNames)
리턴 string

getValues() 공개 메소드

public getValues ( ) : object[]
리턴 object[]

removeKey() 공개 정적인 메소드

public static removeKey ( RegistryKey mainKey, string subKey ) : bool
mainKey Microsoft.Win32.RegistryKey
subKey string
리턴 bool

removeValue() 공개 정적인 메소드

Used to remove a value from the registry
public static removeValue ( RegistryKey mainKey, string subKey, string valueName ) : bool
mainKey Microsoft.Win32.RegistryKey Windows.Win32.Registry (Halo 2 uses CurrentUser)
subKey string The path to the Label
valueName string The Value Label name to remove
리턴 bool

renameSubKey() 공개 정적인 메소드

Renames a subkey of the passed in registry key since the Framework totally forgot to include such a handy feature.
public static renameSubKey ( RegistryKey parentKey, string subKeyName, string newSubKeyName ) : bool
parentKey Microsoft.Win32.RegistryKey
subKeyName string The name of the subkey that you want to rename ///
newSubKeyName string The new name of the RegistryKey
리턴 bool

setKey() 공개 메소드

Sets the current mainkey & path
public setKey ( RegistryKey mainKey, string subKey ) : void
mainKey Microsoft.Win32.RegistryKey Windows.Win32.Registry (Halo 2 uses CurrentUser)
subKey string The path to the Label
리턴 void

setValue() 공개 정적인 메소드

Sets a registry value
public static setValue ( RegistryKey mainKey, string subKey, string valueName, object value ) : bool
mainKey Microsoft.Win32.RegistryKey A Windows.Win32.Registry value (Halo2 uses CurrentUser)
subKey string The path to the value (Halo 2 uses RegistryAccess.RegPaths)
valueName string The Label of the value (Halo 2 uses RegistryAccess.RegNames)
value object The new value
리턴 bool