registry

Windows XP prefetcher registry values

夙愿已清 提交于 2020-01-15 09:13:40
问题 I have been investigating the windows Prefetching system hoping to find a way to speed up the load time of an application I am working on. I found the following link where a developer describes modifications to the prefetcher registry values: http://dotnet.dzone.com/news/improving-cold-startup I have made similar modifications locally and found that they do provide faster application loading times. My problem is that I cannot find any documentation on the registry values that were changed and

Mount other users hive with C# .net

ε祈祈猫儿з 提交于 2020-01-15 05:28:45
问题 I'm writing an application that will write some registry key for every selected user. I was wondering if there was a proper way to mount another user's hive to write in it. At the moment, I'm using "REG LOAD" to mount every hive. It's functional, but messy. Any Idea ? Thanks in advance for your answers. Cheers. --- EDIT 19.06.2013 --- Okay, thanks for the help, I was able to call the function, but was unauthorized to mount the registry. I tought it was a missing privilege, and force it to run

Editing registry value for newly created user

删除回忆录丶 提交于 2020-01-15 04:52:59
问题 I have a .NET application that creates a new local user like so: var principalContext = new PrincipalContext(ContextType.Machine); var userPrincipal = new UserPrincipal(principalContext); userPrincipal.Name = StandardUserName.Text; userPrincipal.Description = "New local user"; userPrincipal.UserCannotChangePassword = true; userPrincipal.PasswordNeverExpires = true; userPrincipal.Save(); // Add user to the users group var usersGroupPrincipal = GroupPrincipal.FindByIdentity(principalContext,

Cannot set registry insert for HKLM for 32-bit

社会主义新天地 提交于 2020-01-15 01:18:38
问题 I want to create a context menu with sub menu items in Inno-setup. The problem is, is that it inserts HKLM keys in the 64-bit registry (WoW6432Node) section. The documentation states that if the 64-bit architecture is not specified, the setup is running in 32-bit mode. Modes [Registry] Root: "HKCR"; Subkey: "folder\shell\TestMenu"; ValueType: string; Flags: UninsDeleteKey Root: "HKCR"; Subkey: "folder\shell\TestMenu"; ValueType: string; ValueName: "MUIVerb"; ValueData: "test menu"; Flags:

Read and write to the registry with VB.NET

馋奶兔 提交于 2020-01-14 14:54:12
问题 I made a game and I would like to store the high score and other values in the windows registry. It's made in VB.NET. Could someone give me a sample code example of simple reading and writing to the registry. Thanks 回答1: Writing Reading Links found using Google. 回答2: http://www.vbdotnetheaven.com/UploadFile/mahesh/WindowsRegistry04262005045814AM/WindowsRegistry.aspx http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx 回答3: I'm more comfortable with C#, but it's pretty

.Net TimeZoneInfo ID - Is it Windows Language Specific?

落爺英雄遲暮 提交于 2020-01-14 09:10:37
问题 I'm using the .net TimeZoneInfo FindSystemTimeZoneById method which I understand queries the registry. Are the values for Time Zone ID strings stored in the registry at "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Time Zone" dependent on the language of the Windows installation of the machine? The registry key contains a value called "Display Name" so it would make sense for this to be the language specific one, but I can't find out if this is the case (short of installing

Python 2.7 32-bit install on Win 7: No registry keys?

杀马特。学长 韩版系。学妹 提交于 2020-01-14 08:14:09
问题 I have downloaded the Python 2.7.2 Windows x86 32-bit MSI from python.org and installed it on a 64-bit Windows 7 system. Everything works (at least the command-line interpreter starts and runs), but the install process does not create any Python entries under HKEY_LOCAL_MACHINE/SOFTWARE in the Windows registry. Various blogs refer to problems created by incomplete Python registry entries when attempting to configure third-party libraries, but I have not found a description of the complete

Python 2.7 32-bit install on Win 7: No registry keys?

十年热恋 提交于 2020-01-14 08:13:12
问题 I have downloaded the Python 2.7.2 Windows x86 32-bit MSI from python.org and installed it on a 64-bit Windows 7 system. Everything works (at least the command-line interpreter starts and runs), but the install process does not create any Python entries under HKEY_LOCAL_MACHINE/SOFTWARE in the Windows registry. Various blogs refer to problems created by incomplete Python registry entries when attempting to configure third-party libraries, but I have not found a description of the complete

Registry - ContextMenu extension of .sdf files

爷,独闯天下 提交于 2020-01-14 05:38:05
问题 i want to extend the contextmenu of sdf database-files. my current source public static void Create() { string keyName = ".sdf"; string contextName = "Das ist ein SDF Test"; string exe = @"C:\Users\........exe"; bool isWritable = true; try { RegistryKey classesRoot = Registry.ClassesRoot; RegistryKey parentKey = classesRoot.OpenSubKey(keyName, isWritable); parentKey.CreateSubKey("shell"); RegistryKey shell = parentKey.OpenSubKey("shell", isWritable); RegistryKey context = shell.CreateSubKey

windows xp: change background color programatically (how to redraw Desktop after changing registry key?)

孤街醉人 提交于 2020-01-14 03:04:53
问题 How do I change the background/wallpaper color on Windows XP programatically? I'm changing the registry key HKEY_CURRENT_USER\Control Panel\Colors\Background (with regedit), but changing that key doesn't change the background color, although that key is changed when I change the color from the Display Properties window. Any idea why? EDIT: ah if I change the key and reboot, the effect takes change. So how do I make it take change without rebooting? 回答1: I think you need to call the Windows