registry

Adding a guideline to the editor in Visual Studio

Introduction I've always been searching for a way to make Visual Studio draw a line after a certain amount of characters: Below is a guide to enable these so called guidelines for various versions of Visual Studio. Visual Studio 2010 Install Paul Harrington's Editor Guidelines extension. Open the registry at: HKEY_CURRENT_USER\So...

How to get runonce to run, without having to have an adminstrator login.

Is there any way to force an update of software using RunOnce, without having an administrator log in, if there is a service running as Adminstrator running in the background? EDIT: The main thing I want to be able to do is Run when the RunOnce does, I.E. before Explorer starts. I need to be able to install things, without booting into...

VB6 error : Error accessing the system registry

In visual basic 6, when I attempt to access Project > References, it throws an error "Error accessing system registry" I'm logged in as the local computer administrator running windows XP professional and I can execute regedt32.exe and access all the registry keys just fine. VB6 was installed as the local administrator. any ideas w...

Looking for C# registry class

Looking for C# class which wraps calls to do the following: read and write a key value read & write a key entry enumerate the entries in a key. This is important. For example, need to list all entries in: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources (I scanned through some codeproject.com registry classes and they didn'...

Shut-down script on Windows to delete a registry key?

EDIT: This was formerly more explicitly titled: - "Best solution to stop Kontiki's KHOST.EXE from loading automatically at start-up on Windows XP?" Essentially, whenever the 40D application is run it sets up khost.exe to automatically start-up with Windows. This is annoying as it increases my boot up time by a couple of minutes and I d...

How do I use Inno Setup to optionally install a plugin/file in a folder based on a registry entry?

Inno Setup is a nice easy to use installer. It is rated high in this stackoverflow question. I have a need to install a plugin to a folder relative to the installation folder of a 3rd Party application. It isn't obvious from the docs how to do this. ...

Is it possible to modify a registry entry via a .bat/.cmd script?

Is it possible to modify a registry value (whether string or DWORD) via a .bat/.cmd script? ...

Clearing the Windows "Run" dialog history without rebooting

I am currently working on a program to immediately clear the list of previously-run-commands which appears in the Windows Start -> Run dialog. The procedure for clearing this list by removing the *HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU* key is well documented; however, before these changes take effec...

Fastest small datastore on Windows

My app keeps track of the state of about 1000 objects. Those objects are read from and written to a persistent store (serialized) in no particular order. Right now the app uses the registry to store each object's state. This is nice because: It is simple It is very fast Individual object's state can be read/written without needing...

Tracking changes in Windows registry

Is there a way to track changes in Windows registry? I'd like to see what changes in the registry are made during installation of various programs. ...

How can I limit the maximum number of running processes within Microsoft Windows?

I'm looking for a way to limit the maximum number of running processes in Windows Server 2003. Is there a registry key somewhere that controls it? If so, which one is it? ...

How do I add a multline REG_SZ string to the registry from the command line?

As part of a build setup on a windows machine I need to add a registry entry and I'd like to do it from a simple batch file. The entry is for a third party app so the format is fixed. The entry takes the form of a REG_SZ string but needs to contain newlines ie. 0xOA characters as separators. I've hit a few problems. First attempt use...

How to launch a Windows process as 64-bit from 32-bit code?

To pop up the UAC dialog in Vista when writing to the HKLM registry hive, we opt to not use the Win32 Registry API, as when Vista permissions are lacking, we'd need to relaunch our entire application with administrator rights. Instead, we do this trick: ShellExecute(hWnd, "runas" /* display UAC prompt on Vista */, windir + "\\Reg", "add...

How do I track what registry changes is done to the system by an install shield installer?

I need something like i6comp but for list of reg changes rather than list of files. Does such a thing exist? EDIT:I know there are ways to do monitor changes to the ergistry but are there ways to do it by examining the setup files? ...

What does the setting WorkArounds2=8192 do on an ODBC connection?

My company has a 3rd party application that runs on a Progress database. I've been building an application on top of their database using an ODBC connection. One of the "quirks" of Progress is that it doesn't honor SQL column widths, so it will allow 100 characters in a column defined as a varchar(50). When reading this data via ODBC,...

Converting registry access to db calls from MFC Feature Pack

We may start converting an old VS2003 MFC project to use the fancy new features provided by the MFC Feature Pack and VS2008. Several of the new UI controls would be very nice except for one thing - they automatically save their information to the registry. I don't have a problem with the registry, but for the multiple environments the us...

How to add custom protocol to Vista "Set Associations" list?

I've registered custom protocol "xyz" on Windows Vista: HKEY_CLASSES_ROOT\xyz = "URL:Extensions Protocol" It works OK with my application. Open "Control Panel -> Programs -> Default Programs -> Set Associations", scroll the list to the end. Here is the list of protocols. I would like to see my custom protocol associated with my applica...

How to programmatically update the Outlook contact name resolution order

When in Outlook 2003, open the Address Book, select Tools->Options. You get the Address dialog showing the option "When sending mail, check names using these address lists in the following order:" For most people, this will contain only "Contacts". For corporate networks, it'll probably also contain "Global Address List". The problem...

How to find full path of Outlook .pst file?

Is there a way to programmatically find the location of the current user's Outlook .pst file(s) through an API call or registry entry? ...

Programmatically Set Browser Proxy Settings in C#

I'm writing an winforms app that needs to set internet explorer's proxy settings and then open a new browser window. At the moment, I'm applying the proxy settings by going into the registry: RegistryKey registry = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", true); registry.SetValue...