Results 1 to 2 of 2

Thread: Writing Reg_Multi_Sz to the registry

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2000
    Posts
    51

    Cool Writing Reg_Multi_Sz to the registry

    I need to write an application that prompts the user to input network setting changes, ie: IP address, Gateway and Subnet. the problem I have is all of these value are reg_multi_sz and I have been unsuccessfuly in updating the value in the registry. When I attempt to update the values the (Default) value gets changed and the settings are never applied.

    I have searched high and low for information on this. The only thing I found was each value needs to be null terminated with a null terminator and at the end. I just can't figure out how to do this.

    Please if there is a second set of eyes that knows what I am talking could you please HELP

    Thanks.
    Everyone!!! Can I have your attention please?

    Sit back, Relax and watch the world unfold before your very eyes.

    Mystical isn't it, oh well I tried!!!

  2. #2
    New Member
    Join Date
    Jul 2002
    Posts
    7
    Have you tried to make a method like

    shared writeMultiSZ (ByVal Argument() as string)

    and write it to the registry??

    _key = Registry.CurrentUser.OpenSubKey(key, True)
    _key.SetValue(key, Argument)

    Something like this, I am working on a Class that writes in the registry, but at the moment I didn't work with multisz, the other data type for the registry are simply Objects so...

    I guess this can help you.

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