当前位置:首页 科普知识 GetProfileSection

GetProfileSection

发布时间:2023-09-06 20:09:04

GetProfileSection是一个计算机函数。

GetProfileSection详细介绍

GetProfileSection是一个计算机函数。

GetProfileSection

GetProfileSection简介

GetProfileSection

VB声明

Declare Function GetProfileSection Lib "kernel32" Alias "GetProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long) As Long

说明

GetProfileSection

获取指定小节(在win.ini文件中)所有项名和值的一个列表

返回值

Long,装载到lpReturnedString缓冲区的字符数量。如缓冲区的长度不足以容下所有信息,则返回nSize-2

参数表

参数 类型及说明

GetProfileSection

lpAppName String,欲获取的小节。这个字串不区分大小写

lpReturnedString String,用于容纳项和值字串列表的一个缓冲区。每个字串都用一个NULL分隔,最后一个字串用两个NULL字符中止

nSize Long,lpReturnedString缓冲区的大小,在windows 95中最大为32767

GetProfileSection注解

参考GetPrivateProfileInt函数的注解

温馨提示:
本文【GetProfileSection】由作者 爱百科 转载提供。 该文观点仅代表作者本人, 自学教育网 信息发布平台,仅提供信息存储空间服务, 若存在侵权问题,请及时联系管理员或作者进行删除。
(c)2008-2025 自学教育网 All Rights Reserved 汕头市灵创科技有限公司
粤ICP备2024240640号-6