文件夹监控wei服务

伪服务
This commit is contained in:
yanshui177
2017-05-17 20:50:34 +08:00
parent 6dcd378738
commit e9f18bbc9b
11 changed files with 340 additions and 241 deletions

View File

@@ -0,0 +1,21 @@
#include <string>
#include <windows.h>
#include <string>
#include <stdio.h>
#include <iostream>
#include <dos.h>
#include <time.h>
#pragma comment(lib, "Advapi32")
//#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )//没有界面运行
using namespace std;
/*定义全局变量*/
#define SLEEP_TIME 1000 //5000毫秒刷新一次
/*时间获取函数u*/
time_t ltime;
char *srcTime=NULL;
char timeNow[22]={0};
char msg[100]={0};