by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th January 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Writing a string data into WIN.INI using WriteProfileString API
' Set the "Wallpaper" setting in the [Desktop] section of WIN.INI to C:\Windows\Plus!.bmp.
' WARNING: Use extreme caution when editing the WIN.INI file, because writing bad data to it can create disasterous results to the system!
Dim retval As Long ' return value
' Set the value.
retval = WriteProfileString("Desktop", "Wallpaper", "C:\Windows\Plus!.bmp")
End
End Sub
No comments have been posted about Writing a string data into WIN.INI using WriteProfileString API. Why not be the first to post a comment about Writing a string data into WIN.INI using WriteProfileString API.