VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get a integer data from WIN.INI using GetProfileInt 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)

Get a integer data from WIN.INI using GetProfileInt API

Rate Get a integer data from WIN.INI using GetProfileInt API



' Read the value "WallpaperStyle" under the [Desktop] section of the WIN.INI file.  Return -1 if an error occured. 
Dim tile As Long  ' receives the information read from WIN.INI 
' Read the data from WIN.INI 
tile = GetProfileInt("Desktop", "TileWallPaper", -1) 
If tile = 0 Then 
MsgBox "Wallpaper is not tiled." 
End If 
If tile = 1 Then 
MsgBox "Wallpaper is tiled" 
End If 
End 
End Sub

Download this snippet    Add to My Saved Code

Get a integer data from WIN.INI using GetProfileInt API Comments

No comments have been posted about Get a integer data from WIN.INI using GetProfileInt API. Why not be the first to post a comment about Get a integer data from WIN.INI using GetProfileInt API.

Post your comment

Subject:
Message:
0/1000 characters