Hi all,
I've solved this problem, I do the following:
- Step 1: Use Notepad to write the code segment:
#include <stdio.h>
#pragma comment(linker, "/ENTRY:ChangedEntry /NODEFAULTLIB /SUBSYSTEM:CONSOLE")
void ChangedEntry()
{
printf("Here is changed entry point!");
}
Save it to a file with extended file .c, suppose Test.c
- Step 2: Run cmd and use this command:
cl.exe Test.c user32.lib
OK, I have an app which runs very well, share my solution for you. Have fun, thanks.