请输入您要查询的百科知识:

 

词条 GetPrivateProfileSection
释义

GetPrivateProfileSection

VB声明

Declare Function GetPrivateProfileSection Lib "kernel32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal 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,路径);

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/22 6:22:48