Is there a Windows function or some quick wayget a list of the keys in an .ini file, such as:
I want this: ‘Key1’, ‘Key2’, ‘Key3’, ‘Key4’
There is a PFC service which is designed to do exactly this. The service you should look for is called pfc_n_cst_inifile and the function you need to call is of_getkeys.You pass the function the name of the ini file, the section you want the list of keys for and an unbound array of strings (passed by reference). The function will fillout the array for you.
lnc_ini.of_GetKeys( 'win.ini', 'drivers', ls_Keys )