Answer to Question #25277 in C++ for dharmendra

Question #25277
**i need c++ or c program to Chang software registry** i want to Chang HKEY_LOCAL_MACHINE\SOFTWARE\Linktop3G
Engineer key value is 1 but i want to chang it 0 (change the Engineer key from 1 to 0 by c++ or c .)
but how? canany one one help me ??? could u send me that program at my email id?(dharmendrak320@gmail.com)
1
Expert's answer
2013-02-28T09:19:21-0500
#include <stdio.h>
#include <conio.h>
#include <windows.h>

int main()
{
int value = 0;
if (RegSetKeyValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Linktop3G", "Engineer",
REG_DWORD, &value, sizeof(value)) != ERROR_SUCCESS)
printf("Failed to change key value.\n");
else
printf("Key value successfully changed.\n");

_getch();
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS