登录
2020-09-25 01:01:52

GetPrivateProfile来自Section 免费编辑 添加义项名

B 添加义项
?
义项指多义词的不同概念,如李娜360百科义项:网球运动员、歌手等;非诚勿扰的义项:冯小刚执导电影、江苏卫视交友节目等。 看详细规范>>
所属类别 :
其他
其他
编辑分类

GetPrivateProfileSection,函数,获取指定小节所有项名和值的一个列表。

基本信息

  • 外文名称

    GetPrivateProfileSection

  • 欲获取的小节

    lpAppName String

  • 缓冲区

    lpReturnedString String

  • 缓冲区的大小

    nSize Long,lpReturnedString

目录
济兵怕好零3例子

折叠 编辑本段 简介

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推荐AI 推荐