(1)
1 #include <windows.h>
2 #include <process.h>
3 #pragma comment(linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
4
5 void callBox(void * p)
6 {
7 MessageBoxA(0, "helloworld", "callbox", 0);
8 }
9
10 int main()
11 {
12 for (int i = 0; i < 4; i++)
13 {
14 callBox(NULL);
15 }
16
17 /*
18 for (int i = 0; i < 4; i++)
19 {
20 _beginthread(callBox , 0 , NULL);
21 }
22
23 system("pause");
24 */
25 return 0;
26 }
(2)
#include <windows.h>
_declspec(dllexport) void injects()
{
//eating memory
for (int i=0; i<1000; i++)
{
malloc(1024 * 10);
Sleep(1000);
}
}
(3)
#include <stdio.h>
#include <stdlib.h>
#include "libuse.h"
#pragma comment(lib,"add.lib")
int main()
{
printf("%d", add(1,9));
system("pause");
return 0;
}
posted on 2017-08-07 10:22
silvercell 阅读(124)
评论(0) 编辑 收藏 引用 所属分类:
EachDayUp