You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
>Would GetPrivateProfileString be able to work with either
Will work with any file in "INI" format.
Remember, the name of the INI file is passed to that function.
Get your INI file name from SHGetFolderPath with the CSIDL for user application data and you will have software which works even if the profile does "roam".
I want to make an application capable of running from a PDC logon script. I want to support both global and personal configuration files.
I am thinking the program will be invoked as:
\\server\users\foobar.exe \\servers\users\foobar.ini
Would GetPrivateProfileString support using a UNC to specify the file you want to work with? It would do no good to discover the program is on the PDC's C: when that will not be the user's C:. If this function is not network-aware, I will need to know now so I can plan a different way of getting the global configuration data.
I am thinking of the personal configuration being in Documents and Settings. This could be either on C: or in a roaming profile on the PDC, depending on how the domain is set up. Would GetPrivateProfileString be able to work with either?
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: