registry

how does the .RGS file works

In the .rgs file, there are some registry info, and I want to know how does the info in .rgs file added into regetry? I have a project AAA and it will generate the file AAA.DLL, and there is a file xxx.rgs which contains the registry info, and the AAA.DLL is built, then it will be deployed to another machine B, so I don't know how the r...

Disable the internet without touching the hardware

How would I go about disabling the internet on my computer without touching the hardware (modem, router, etc) and without disabling it from the Network Connections of the Control Panel. Is there a way to tweak it on the registry instead? I'm wanting to achieve this to control my younger sister's usage of our computer at home. She's kind...

Changing a network volume's name which is represented by Windows Explorer and Common Dialogs.

I want to set the volume name of my network redirector. On 32bit Windows, it's okay. I made it. But on 64bit Windows7, a process which runs as WOW64(eg, EXCEL.EXE) finds following registry path to represent the volume name when we open a file dialog. -I checked it by Process Monitor. HKCU\Software\Microsoft\Windows\CurrentVersion\Ex...

Is RegNotifyChangeKeyValue as coarse as it seems?

I've been using ReadDirectoryChangesW to monitor a particular portion of the file system. It rather nicely provides a partial pathname to the file or directory which changed along with a clue about the nature of the change. This may have spoiled me. I also need to monitor a particular portion of the registry, but it looks as if RegNotif...

read known file extensions / types from the registry

I want to present the user with a list of known file extensions for him to pick. I know that these are stored in the Registry under HKEY_CLASSES_ROOT usually like this: .txt -> (default)="txtfile" where txtfile then contains the information about associated programs etc. Unfortunately that place in the registry also stores lots of oth...

Windows Vista won't boot up after msconfig and rundll

Okay I was trying to remove some of those fake anti virus programs from a laptop, I'm trying to avoid reinstalling the OS as this is setup as a multiple boot machine centos and vista with special configs on both sides that took a lot of time to setup. After a tradeshow it came back with the fake antivirus on it. Generally you can task ma...

What is the Windows Mobile Registry setting to turn off Predictive Text?

I need to have my program not use (or allow to be used) predictive text. I know how to turn it off manually (this web page shows how). But I need to do it programmatically. The best way seems to be by a registry change. Anyone happen to know what that registry setting is? ...

Accessing a key in windows registry LOCAL_MACHINE

Ive made a key in HKEY_LOCAL_MACHINE\Software\MyAppName (with regedit (ive rebootet)), but when i try to list them all out "MyAppName" does not show... :( any clues? rkey = Registry.LocalMachine.OpenSubKey("Software"); foreach (string subkey in rkey.GetSubKeyNames()) { WriteToLogFile("subkey: " + subkey); } ...

Working with registry values

This time i'm tring to work with registry values and so i'm using the following code Private Function RegKeyExists(ByVal hKey As Long, ByVal sKeyPath As String) As Boolean Dim lResult As Long Dim hSubkey As Long lResult = RegOpenKeyEx(hKey, sKeyPath, 0, KEY_EXECUTE, hSubkey) ' Determine if handle is valid ...

PowerShell: How To Use Standard Output In Place of Filename

I'm writing a C# class that runs a Process (REG) to export registry keys. REG requires that you specify a filename to export to but I would rather have the output of REG directed to the standard output so I can capture it directly in my C# code (using Process.StandardOutput). Is there a way in PowerShell to specify the standard output ...

writing a sbkey in registry in vb.net

Dears good morning to all I'm using the following code to open and then write a subkey in the registry Private Sub RegSubKeyCreates(ByVal sKeyPath As String) Dim RegKey As RegistryKey Dim SubKeyParam() As String = Nothing SubKeyParam = Split(sKeyPath, "\") RegKey = Registry.CurrentUser.OpenSubKey(SubKeyParam(0...

Error when reading registry with Visual Basic 6 running on Win7

Hi I have inherited a VB6 application from a friend of a family member, who wants to have some enhancements done to it. I haven’t developed in VB for more than 3 years (I’m currently developing in MS Dynamics Ax). I’ve recently upgraded my hardware and am now running Win7. The last time I worked with the app (about a year and a half ag...

Windows Registry decryption (CryptUnprotectData) WPA keys

Hi. I am writing a program for linux in C to extract the wpa/wep key from a windows registry hive. Initially I was hoping to use wine's CryptUnprotectData function, but I realise now that wine uses a different algorithm and just mimics window's version. I also realise that only the user that encrypted the data can decrypt it. I am usi...

VBScript - Unable to trap IE Settings - Security - Trusted Sites in Windows Registry

Hi, I'm trying to trap the registry keys for the following IE settings. Here's how you get there, a. Open IE and navigate to Internet Options - Settings - Trusted Sites b. Click button - "Custom Level" c. In window - "Security Settings - Trusted Site Zones", I'm trying to update the checkboxes (i.e. set to "Enable") 1. Binary and scri...

command prompt anywhere in Windows 7 (native functionality)

I got this tip from a website that "shift + right click" on a folder in explorer in win7 will give us a context menu option by which I can open command prompt right there. I am looking for a hack that can make this simpler so that whenever I "right click" on a folder in explorer, I always get that "shift + right click" effect. I am not...

Setting a registry value Programatically using vbscript

I would like to change the ie setting under: Internet Options->Security->Trusted Zones->Custom Level->Miscellaneous->Enable I have done this with other registry keys like "Disable Debugging" and such. But I can't seem to set this value to enable. Here is what I have so far: WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVer...

Find Registry Key for: Override automatic cookie handling

I want to set the IE7 privacy settings via the registry and I am not having any luck finding what keys need to be set. I am trying to do the following: Override automatic cookie handling; Allow first party cookies; Block third party cookies; Always Allow session cookies; Anyone know what keys are to be set and what the settings would ...

C# read registry key, compare it to ini config file, if match return result under config section, do somethig else..

Hello, I got below problem and with my entry level of C# please help on how to get this be done? Scenario: 1. My registry keys: __DatabaseConnection |____config1 value: username1 value: password1 |____config2 value: username2 value:password2 My ini file: [configz] Database=MSSQL DatabaseName= ABC Host=localh...

Deployment project: Read a setup variable from registry

I have a setup project in VisualStudio 2005. User is invited to fill-in the server address that will be stored in a registry key. Now, I would like that if the user reinstalls this project, that the old server name be proposed by default as value in the setup interface. Is is possible to keep the ancient registry key value, to propos...

Set user account picture and dis-allow changes.

I am running some changes to the registry of the small number of computers in our group. In Windows 7 Enterprise, how can I disable the ability for the user to change the user account picture? I do not want an empty frame on the Start menu or on the log-on screen. I want our company logo to display, and I don't want it to be able to be...