C# Class mCleaner.Helpers.Win32API.IniHelper

Mostra file Open project: MicroHealthLLC/mCleaner

Public Methods

Method Description
GetKeyNames ( string sectionName, string filename ) : string[]
GetValue ( string filename, string section, string name ) : string
IsSectionExists ( string filename, string section ) : bool
SetValue ( string filename, string section, string name, string val ) : void

Private Methods

Method Description
ConvertNullSeperatedStringToStringArray ( IntPtr ptr, int valLength ) : string[]

Converts the null seperated pointer to a string into a string array.

OpenIni ( string filename ) : string

Method Details

GetKeyNames() public static method

public static GetKeyNames ( string sectionName, string filename ) : string[]
sectionName string
filename string
return string[]

GetValue() public static method

public static GetValue ( string filename, string section, string name ) : string
filename string
section string
name string
return string

IsSectionExists() public static method

public static IsSectionExists ( string filename, string section ) : bool
filename string
section string
return bool

SetValue() public static method

public static SetValue ( string filename, string section, string name, string val ) : void
filename string
section string
name string
val string
return void