折叠 编辑本段 简介
GetPrivateProfileSection
VB声明
Declare Function Get着首套PrivatePr思坐消掉些修教九快错光ofileSection Lib "kernel32" Al字才越空说输露周ias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVa构选后排青眼管额告取点l lpReturnedString As String, ByVal nSize 胶诉As Long, ByVa极祖似儿委l lpFileName As String) As Long
返回值
Long,装终年载到lpReturnedString缓冲区的字符数量。排阿力何防士如缓冲区的容量不够大,不能容下所有信息,就返回nSize-2
参数表
参数 类型及说明
lpAppName String,欲获取的小节。注意这个字串不区分大小写
lpReturnedString String,缓冲区
nSize Long,lpReturnedString缓冲区的大小。在windows系统中最大值为32767
lpFileName String,初始化文件的名字。如没有指定完整路径名,windows就在Windows目录测服中查找文件
折叠 编辑本段 注解
情鱼类信次武参考对GetPrivateProfileInt函数的注解
折叠 编辑本段 例子
TCHAR buf[200];
::GetPrivateProfileSection(小节名,buf1,200,路径);











AI 推荐