英语翻译
英语翻译
Private DeclareFunction OSGetProfileInt Lib "kernel32" Alias _
"GetProfileIntA" (ByVal lpAppNameAs String,ByVal lpKeyName As String,_
ByVal nDefault As Long) As Long
Private DeclareFunction OSGetProfileSection Lib "kernel32" Alias _
"GetProfileSectionA" (ByVallpAppName As String,_
ByVal lpReturnedString As String,ByValnSize As Long) As Long
Private DeclareFunction OSGetProfileString Lib "kernel32" Alias _
"GetProfileStringA" (ByVallpAppName As String,ByVal lpKeyName As String,_
ByVal lpDefault As String,ByVallpReturnedString As String,ByVal nSize As Long) As Long
Private DeclareFunction OSWriteProfileSection Lib "kernel32" Alias _
"WriteProfileSectionA" (ByVallpAppName As String,ByVal lpString As String) As Long
Private DeclareFunction OSWriteProfileString Lib "kernel32" Alias _
"WriteProfileStringA" (ByVal
lpszSection As String,ByVal lpszKeyName As String,ByVal lpszString As String)
As Long
Private ConstnBUFSIZEINI = 1024
Private ConstnBUFSIZEINIALL = 4096
这些代码没什么实际意义,都是声明API而已,一个个告诉你这些API都是什么作用吧.1、OSGetProfileInt:取得win.ini初始化文件中指定条目的一个整数值(参数lpAppName,String,欲在其中搜索条目的小节名.这个字串不区分大...