TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ken H
NA
646
361k
ram to run automatically in c
Aug 7 2012 11:07 PM
hi friends,
How will the path inside the '\' before again add.
thanks.
Codes:
#include<stdio.h>
void main(int argc,char *argv[])
{
char *appPath=argv[0]; /*How will the path inside the '\' before again add '\' */
HKEY hKey;
RegCreateKeyEx(
HKEY_LOCAL_MACHINE,
"Software\\Microsoft\\Windows\\CurrentVersion\\Run ",
0,
NULL,
REG_OPTION_NON_VOLATILE,
KEY_ALL_ACCESS,
NULL,
&hKey,
0);
RegSetValueExA(
hKey,
"this demo",
0,
REG_SZ,
(CONST BYTE*) appPath,
50);
RegCloseKey(hKey);
}
Reply
Answers (
2
)
The "for" cyclic of question
how to write a delete program oneself in C