Results 1 to 2 of 2

Thread: Reg & Win2K

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 1999
    Location
    Montreal
    Posts
    59
    hey why does this function doesn't work with win2k ?

    i use: SaveString HKEY_CURRENT_USER, "\Software\Microsoft\Windows\CurrentVersion\Run", "Carnet", "1" 'SlacheCheck(App.Path) & "\" & App.EXEName & ".exe -autocheck"
    __________________________________________________


    Public Const HKEY_CURRENT_USER = &H80000001
    Public Const REG_SZ = 1

    Public Sub SaveString(hKey As Long, strPath As String, strValue As String, strdata As String)
    Dim keyhand As Long
    Dim r As Long
    r = RegCreateKey(hKey, strPath, keyhand)
    r = RegSetValueEx(keyhand, strValue, 0, REG_SZ, ByVal strdata, Len(strdata))
    r = RegCloseKey(keyhand)
    End Sub


  2. #2
    Hyperactive Member marnitzg's Avatar
    Join Date
    Oct 2000
    Location
    South Africa
    Posts
    372
    Do you have admin rights?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width