Computing.Net > Forums > Programming > Add Entry to Registry

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Add Entry to Registry

Reply to Message Icon

Name: Mario
Date: November 11, 2002 at 08:34:21 Pacific
OS: Win2K
CPU/Ram: 1.7 Ghz, 512 MB
Comment:

I am trying to create a small program to add a few entries into the registry but I have some questions on how to do it. I know I have to use the addEntry command, but I how do I write the entry. To I have to type it all out or is there some way of shorteneing it? i.e

public void addEntry(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\EnableOplocks entry)
throws java.lan.string Entry_Already_Present

Is this correct, or what do I need to do to it for it to work properly? I believe after this I need to do a setEntry to set the value of the new entry. Also the entry has to be a Reg_DWORD, do I have to do something different for this?



Sponsored Link
Ads by Google

Response Number 1
Name: Jeff J
Date: November 11, 2002 at 16:54:16 Pacific
Reply:

What package is this from? I am not familiar with any Windows registry stuff from Sun (is the $un vs. M$ war over?), and none of the 3rd-party ones I know of have an addEntry method.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Add Entry to Registry

Add path to registry with variable www.computing.net/answers/programming/add-path-to-registry-with-variable/15732.html

Perl script - add text to a jpg ima www.computing.net/answers/programming/perl-script-add-text-to-a-jpg-ima/3331.html

C++ - add color to screen output www.computing.net/answers/programming/c-add-color-to-screen-output/8187.html