GetPrivateProfileSectionNames()

  • Thread starter Thread starter Schemer
  • Start date Start date
S

Schemer

In the .Net framework, are there functions for reading and writing the
key/value pairs in a .ini file?
Thanks.
 
In the .Net framework, are there functions for reading and writing the
key/value pairs in a .ini file?

No - you would need to use the API functions through p/invoke...
 
In the .Net framework, are there functions for reading and writing the
No - you would need to use the API functions through p/invoke...

Thanks for the reply. I am using GetPrivateProfileString():
DWORD GetPrivateProfileString( LPCTSTR lpAppName, LPCTSTR lpKeyName,
LPCTSTR lpDefault, LPTSTR lpReturnedString, DWORD nSize, LPCTSTR
lpFileName);While my program seems to be working, I am not sure I am using
the correct types, nor the most efficient method to get the lpReturnedString
into a System.String.Thanks for any suggestions on how to prototype
GetPrivateProfileString() for the [DLLImport ...].
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top