VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Writing a string data into WIN.INI using WriteProfileString API

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

Rate 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

Download this snippet    Add to My Saved Code

Writing a string data into WIN.INI using WriteProfileString API Comments

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.

Post your comment

Subject:
Message:
0/1000 characters