摘要: c/c++编写window服务的授权服务(四)定义客户端访问服务授权服务的源代码头文件 stdafx.h// stdafx.h : 标准系统包含文件的包含文件, // 或是经常使用但不常更改的 // 特定于项目的包含文件 // #pragma once #include <winsock2.h> #include <stdio.h> #include <stdlib.h> #include "targetver.h" #include <tchar.h> #include <fstream> #include &l 阅读全文
posted @ 2011-12-03 01:46 sqlite例子 阅读(264) 评论(0) 推荐(0)
摘要: c/c++编写window服务的授权服务(三)//实现授权服务的函数体LicenseService.cpp#pragma once #include "LicenseService.h" #include "hex_md5.h" //安装入口点 void main(int argc, char* argv[]) { //初始化全局变量 //获取exe所在目录 CurExeDir=GetCurDir(); //printf("\n当前exe所在目录为:%s\n",CurExeDir); //获取ServerConfig.ini配置参数并 阅读全文
posted @ 2011-12-03 01:25 sqlite例子 阅读(290) 评论(0) 推荐(0)
摘要: //c/c++编写window服务的授权服务(二)//定义授权服务的头文件LicenseService.h#pragma once //建立工程:win32控制平台应用程序 //LicenseService.cpp //用C/C++编写的Window服务一例 //安装与反安装批处理.bat //方法一: //echo sc delete LicenseService //echo sc create LicenseService binpath= E:\Debug\LicenseService.exe //方法二: //LicenseService.exe uninstall //Licens 阅读全文
posted @ 2011-12-03 01:22 sqlite例子 阅读(255) 评论(1) 推荐(0)
摘要: //#include "hex_md5.h"//C/C++写的md5加密函数 /** * MD5制作函数,兼容PHP * @author wangzebin */ #include <stdio.h> #include <stdlib.h> #include <string.h> //#include "syslog.h" /* * Convert an array of little-endian words to a hex string. */ int binl2hex( int *src, char *dst, 阅读全文
posted @ 2011-12-03 01:17 sqlite例子 阅读(287) 评论(0) 推荐(0)