How do I change the ACLs on a registry key? (C++)
I need to delete a regsitry key. It has a deny ACL on Set Value (I need this permission to delete it). How do I change the ACLs in C++? ...
I need to delete a regsitry key. It has a deny ACL on Set Value (I need this permission to delete it). How do I change the ACLs in C++? ...
Based on the advice provided at http://www.tweakguides.com/VA_4.html to prevent Windows Vista from "intelligently" rearranging column formats in Windows Explorer, I have written a script to automate the process a little. Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell") 'Remove the "filthy" reg keys first. regKey = "HK...
I have been given a .Hive file from a registry which i have to parse and use the contents as part of a html report(from this i assume i have to convert to text somehow). The whole thing must be done within the program so i cant just convert the hive file and then run it through my program. I currently have no idea how to even start this ...
There's an executable file generated from my program in MFC and I want to use it as the default program to open the .jpg files. That is to say, each time I double click a .jpg file, my program will run. I tried to add some registry entries linking .jpg files with my program, such as HKEY_CLASSES_ROOT.jpg\shell\open\command (set its val...
I am looking for an inverse version of "RunOnceEx". RunOnceEx does run some program, before the user's shell(desktop&taskbar) start. The login progress will not continue before the runonceex complete. I want to do exact the same but on user logout. When she/he logout, all running program shutdown, leaving shell(desktop&taskbar), then "...
If you want to open an msg Email file with the extension .msg, Outlook 2003 will be started with some parameters. Therefore you can find the following registry keys: HKEY_CLASSES_ROOT\msgfile\shell\Open\command\(standard) HKEY_CLASSES_ROOT\msgfile\shell\Open\command\command The first one points to the "outlook.exe" with the parameter ...
Hi, I'm looking at this 3rd party licensing component, and I'm curious what measures they can take to secure a .net desktop application? they provide things like: trial version, registered version using a license key. It also can lock the application if their license expires. It is a C++ dll under the covers, and in .net you have to ...
I would like to document the file format of regedit utility, so data can be merged into the registry. From the command-line you can (silently) merge data from a batch file like this: regedit /s file.reg Exporting from a subkey goes like this: regedit /e file.reg "HKEY_XX\key" ...
for running it in local system , i use REGEDIT.EXE /S "test.reg" how to run a registry file to remote registry. by the same command or by any other means, let me know that. ...
For testing purposes I need to get my Outlook 2003 addin (vb.net) disabled so that it can only be reactivated through the help menu or by deleting the resilency key from within the registry. I tried to achieve this by creating an unhandled invalid cast exception during the startup eventhandler but this does not help. Outlook only says t...
My company has got quite a number of client laptops out in the field. These laptops are running Windows Vista Home edition. I was recently asked if I could find a way to disable the user's ability to adjust the system time. My first thought was to use gpedit, but as I found this is unavailable in home edition. I then looked for reg...
I have a registry value which is stored as a binary value (REG_BINARY) holding information about a filepath. The value is read out into an byte array. But how can I transform it into a readable string? I have read about system.text.encoding.ASCII.GetString(value) but this does not work. As far as I got to know the registry value is arbi...
I'm having trouble with the following two items: How to retrieve all of the subkey values in ClassesRoot\Typelib, and; How to find a match for a known value (path/dll name) in the array of subkey values. As background info, I'm trying to find a way to check if a DLL has been registered. Someone mentioned that checking ClassesRoot\Typ...
I have these two lines of code. CString strHost = AfxGetApp()->GetProfileString(_T("WebServices"), _T("Server")); AfxMessageBox(strHost); Nowhere in the app do I set the value. (the installer does that). So the strHost, should be the same no matter where or when this line is run. Here's what I've got. Press A -> run function that ...
I need to grant rights to Widnows user group Everyone to the HKCR hive and all the keys below th HKCR.I would like to use PowerShell scripting for this. Is it possible? ...
In a project that I've been involved with for many years, I've gradually evolved a design pattern that's proven to be extremely useful for me. I sometimes feel I should get a bit evangelical with it, but I'd be a bit embarrassed if I tried and found out that it was just my version of somebody's old hat. I've dug through Design Patterns...
Sometimes it's necessary to modify Windows registry settings during an application install. I've recently been frustrated by applications that don't restore these settings when they are uninstalled. As I thought more about this, it occurs to me that there may not be a good (or valid) way to save and restore registry settings. Take the...
Hi there, I need to develop a process that will detect if the users computer has certain programs installed and if so, what version. I believe I will need a list with the registry location and keys to look for and feed it to the program which is not a problem. Is there a better way to accomplish this? My first thought was to check in t...
With the upcoming release of Windows 7, one of the newly touted features is the Jump Lists, with their automatic population of most recently used items. Supposedly, if you've been 'properly' recording these most recently used items with the Windows registry, they'll automatically appear. So, where in the registry do they actually need ...
Hi, I think I have something broken with the path that VS 2008 saves the backup files. Since few days, it creates a new "Visual Studio 2008" directory in the same folder that my .sln file exists. Then, after the time of the first auto-save expires, the backup files are being saved to this folder. I browsed the tools-options dialog but ...