commonlib.h

来源:互联网 发布:提取淘宝视频真实地址 编辑:程序博客网 时间:2024/05/05 16:52
#ifndef _COMMONLIB_H_
#define _COMMONLIB_H_


#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <windows.h>
#include <fstream.h>
#include <iostream.h>




void createDir(char * dir);
void getMatchValue(char *strret,char * str,char * match);
int killProcess(ULONG nProcessID);
int getprocessid(char *pname);
char * getAppPath(char * appPath);
void rebootWithoutMsg();
void getFileValue(char * filename,char *sector,char *match,char value[]);
int getListint(char *str,char *match,int * port);
void Alltolower(char *lowerstring,char *origstring);
BOOL   DeleteDir(char   *   path);
void writeinfo(char *filepath,char *messageStr);
void writeinfo_cover(char *filepath,char *messageStr);
void lockFlagWrite(char *nameStr,char *flagStr);


#endif