Function winsafe::GetPrivateProfileSectionNames

source ·
pub fn GetPrivateProfileSectionNames(
    file_name: Option<&str>
) -> SysResult<Vec<String>>
Available on crate feature kernel only.
Expand description

GetPrivateProfileSectionNames function.

§Examples

Reading all section names from an INI file:

use winsafe::{self as w, prelude::*};

let sections = w::GetPrivateProfileSectionNames(
    Some("C:\\Temp\\foo.ini"),
)?;

for section in sections.iter() {
    println!("{}", section);
}