从文件中读取偏移量

时间:2017-01-29 13:09:40

标签: .net vb.net

我不知道如何用ini文件读取偏移(& H123等)。这是我的功能:

<DllImport("kernel32", EntryPoint:="GetPrivateProfileString")>
Private Shared Function ReadINI(
    ByVal Sektion As String, ByVal Key As String, ByVal StandartVal As String,
    ByVal Result As StringBuilder, ByVal Size As Int32, ByVal Dateiname As String) As Int32
End Function

Public Function read(Sektion As String, Parameter As String)
    Dim sb As StringBuilder = New StringBuilder(1024)
    ReadINI(Sektion, Parameter, "", sb, sb.Capacity, ConfigPath)
    Return sb.ToString
End Function

0 个答案:

没有答案