返回Windows类型配置文件(.INI)指定的section. 预置文件必须具备以下形式:
[section]
entry=string
...
(dos_getini section entry filename [default])
section
包含entry的section.
entry
与所要返回字符串相关联的entry.
filename
配置文件(.INI)的文件名.
default
如果entry未找到时, 默认返回值.
注意, 参数不区分大小写, 所以section和entry可以采用任意大小写的组合.
如果section是nil, 返回section列表.
如果entry是nil,返回指定section下的entry列表.
如果entry未找到, 返回default.
否则, 返回与entry相关联的字符串Otherwise.
nil 失败时.
Command: (dos_getini nil nil "C:\\Windows\\win.ini")
("AeDebug" "Clock" "Colors" "Compatibility" "Console" "Cursors" "DeskTop" "Devices" "Embedding" "Extensions" "Fonts" "FontSubstitutes" "GRE_Initialize" "Intl" "IOProcs" "MCI Extensions" "ModuleCompatibility" "MSCharMap" "Net_Files" "NWCS" "Ports" "PrinterPorts" "Sounds" "TrueType" "Twain" "Windows Help" "Winlogon" "Network" "Windows" "fonts" "extensions" "mci extensions" "files" "Mail" "MCI Extensions.BAK" "MSUCE" "SciCalc" "WS_FTP" "CKSN")
Command: (dos_getini "Mail" nil "C:\\Windows\\win.ini")
("MAPI" "CMC" "CMCDLLNAME" "CMCDLLNAME32" "MAPIX" "MAPIXVER" "OLEMessaging")
Command: (dos_getini "Mail" "CMCDLLNAME32" "C:\\Windows\\win.ini")
"mapi32.dll"