thanks for replying but thats not it. it works in all other areas of the registry but this one area and it HAS to do with something along the lines of RegSetKeySecurity ACE's SID's and DACL.
I have checked the permissions for the keys in regedit and it is showing me that I am correct as the...
Thats what I am using already and its not working. As i wrote it works on all other areas except this one area.
I am beginning to look into RegSetKeySecurity but its way over my head on how to use the command. Can anyone confirm this is the reason and give me an example on how to use the...
can anyone give me some help tracking down the reason why my function i wrote deletes all other areas of the registry perfectly yet it just wont allow me to remove any subkeys from this branch...
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum
if anyones knows the trick to it please give me a...
I cant seem to delete keys in this path..
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum
it works for all other areas. The same goes for enumerating the subkeys I cant do it unless I set KEY_READ which means I cant delete the keys. If i open the key to enumerate with KEY_ALL_ACCESS then it wont...
I'm using RegDeleteKey and its working great unless the key has subkeys. How can you delete the key and all sub keys with the least file size and coding ?
Is there a better way then using RegDeleteKey ?
thanks for any help.
I need some help searching an array for a key. I believe that _lfind can do what I want but I dont understand the compare parameter. Why do you need to write a compare function for the command to work and how do you go about writing a simple function to find one string in another string.
At the...
I know how you feel, I just done a short course in C++ and am now trying to move over to the visual side...
Try these two things...
this site..
http://www.cpp-home.com/
and also use imesh / morpheous to get some files called
"learn c++in 21 days"
"learn c++ in 24 hours"...
I have made some headway but still dont know why my last one didn't work. This time i pass this string to the function...
AddRegE("System\\CurrentControlSet\\Control\\MediaResources\\AudioDSP24");
int AddRegE (char strKey[512])
{
HKEY root;
char szData[2];
DWORD dwBufSize = 2...
heres a function that I'm trying to write. I call the function with a line like this..
AddRegE("HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\MediaResources\\AudioDSP24");
int AddRegE (char strKey[512])
{
CRegKey MyRegFix...
I found a tip which hopefully will help others with problems when compiling a release build..
In the project settings under the link tab. tick the "link incrementally" box for the release settings.
It fixed up some errors I was having. Mainly this error....
LINK : warning LNK4089...
I'm slowly learning visual c++ and need a little bit of help.
How do I search the contents of a file for a string ?
For example I wish to search a text file say (test.txt) that I know the name of for the words "hello" . I dont know the exact location of the words and dont care about...
What I want to do is delete a file that is off the windows directory. I know how to delete a file and how to getwindowsdirectory, but how do I combine the two ??
SAy the file is c:\windows\temp\test.tmp
How do I add two strings together or write a line that assigns both strings...
under win95 there is a file called WININT.INI and under a line called [remove] you simply add the program to be removed at startup... Well thats the theory as I've been trying to do it for ages and no luck..
Also you can use the
CopyFile() command and use a NULL destination with a extension...
Thanks for the reply, I'm sure that tip will help me out very soon as I'll need to uninstall software but what I really wanted to know was how to uninstall HARDWARE from the device manager. For example I wish to remove my sound blaster card from the sound video and game controllers section. That...
Could someone please help me with either the commands I need or even better some source code that allows me to uninstall a device driver from the device manager in windows ??
All I wwant to be able to do for now is just remove one device the same as clicking on remove in device manager.
Thanks...
Hi I work in tech support and need to be able to write programs for people to run that will uninstall a device from the device manager. I have seen some graphic cards installation programs remotely open the device manager and upgrade the drivers for a device. How can I write some code to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.