Use the Windows API Operation Configuration (.ini) file

xiaoxiao2021-03-06  109

Declare Function GetPrivateProfileString Lib "kernel32" Alias ​​_ "GetPrivateProfileStringA" (Byval lpApplicationName As String, _ lpKeyName As Any, Byval lpDefault As String, _ Byval lpRetunedString As String, Byval nSize As Long, _ Byval lpFileName As String) As Long

Declare Function WritePrivateProfileString Lib "kernel32" _Alias ​​"WritePrivateProfileStringA" _ (Byval lpApplicationName As String, _Byval lpKeyName As Any, Byval lpString As String, _Byval lpFileName As String) As Long

'Initialize or wherever main code section you are for: Dim OldValue As String Dim NewValue As String

转载请注明原文地址:https://www.9cbs.com/read-100441.html

New Post(0)