Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   Help for creating a new key in C++ (http://www.go4expert.com/forums/help-creating-key-cpp-t21433/)

raghav 21Mar2010 05:50

Help for creating a new key in C++
 
Hello people, i needed some help for creating a key in c++.

I need help for iether, creating it or just writing it on an existing one for a program/software, so that every time the computer starts up, it runs my application.

If i want the software to start up for only 1 user and no one else on the network, how would i do that? I read on MSDN that there is something called: HKEY_local Machine or something...which i think is the ip address or for all computers in subnet...

but what i want is, i want the application, to run at every start - up, ONLY for one specific user. So in c++, if i write an program, for exapmple, it blocks the input and swaps the mouse buttons:

#include <windows.h>
#include <winable.h>
int main()
{
BlockInput(true);
Sleep(7000);
BlockInput(false);
SwapMouseButton(true);
Sleep(9000);
SwapMouseButton(false);
return(0);
}


- I want to make it start up every time the user logs in or something, how would i creat a reg key in c++ or any other method of doing it?

:D Thanks.
Raghav.

shabbir 21Mar2010 09:58

Re: Help for creating a new key in C++
 
RegOpenKey and related functions you can use to write them.

For Startups there is a Run key where you can have all your startups programs can be placed.

raghav 4May2010 13:37

Re: Help for creating a new key in C++
 
Hey haven't logged in for ages!!! sory mate....too mch Homework frm school lOL!

um....and im looking for programming abit now....im looking forward to learn something easy first such as delphi or VB.
Thanks!!! take care bro
!!!


All times are GMT +5.5. The time now is 06:09.