Here is all I could find for Keys. I hope it helps.
VB Code:
  1. 'The GetPrivateProfileInt function retrieves an integer associated with a key in the specified
  2. 'section of an initialization file. Note  This function is provided only for compatibility with
  3. '16-bit Windows-based applications. Win32-based applications should store initialization
  4. 'information in the registry.
  5.  
  6. 'This sample was submitted by Robin ([email protected])
  7. 'Visit his site at [url]http://members.fortunecity.com/rbnwares1[/url]
  8. Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long
  9. Private Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long
  10. Private Sub Form_Load()
  11. 'Sample for reading a numbers directly on the INI file
  12.  
  13.     'Write a number 55 on the sample.ini to be read
  14.     WritePrivateProfileString "Sample", "Sample", "55", App.Path & "\sample.ini"
  15.  
  16.     'Then, read the stored number
  17.     'No need to convert the value returned
  18.     MsgBox GetPrivateProfileInt("Sample", "Sample", 0, App.Path & "\sample.ini")
  19. End Sub