摘要: int GetGmtTime(char* szGmtTime) { if (szGmtTime == NULL) { return -1; } time_t rawTime = time(NULL) + pTmg->Get_WhiteUser_Vtime(); char szTemp[30] = { 阅读全文
posted @ 2020-02-17 16:11 r00t_exp 阅读(636) 评论(0) 推荐(0) 编辑
摘要: char* UnicodeToUtf8(const wchar_t* unicode) { int len; len = WideCharToMultiByte(CP_UTF8, 0, unicode, -1, NULL, 0, NULL, NULL); char *szUtf8 = (char*) 阅读全文
posted @ 2019-12-30 16:38 r00t_exp 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 需要添加的依赖项: libcurl_a.libws2_32.libwinmm.libwldap32.libssleay32.liblibeay32.libmsvcrtd.libzlib.libNormaliz.lib 预编译头: CURL_STATICLIBBUILDING_LIBCURLHTTP_ 阅读全文
posted @ 2019-12-26 18:18 r00t_exp 阅读(282) 评论(0) 推荐(0) 编辑
摘要: #include <string> #include <stdio.h> string GetUnixTime() { string nowTimeUnix; string cs_uninxtime; string cs_milliseconds; SYSTEMTIME sysTime; GetLo 阅读全文
posted @ 2019-12-08 20:15 r00t_exp 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: int GenerateMiniDump(PEXCEPTION_POINTERS pExceptionPointers) { // 定义函数指针 typedef BOOL(WINAPI * MiniDumpWriteDumpT)( HANDLE, DWORD, HANDLE, MINIDUMP_TY 阅读全文
posted @ 2019-12-06 14:21 r00t_exp 阅读(715) 评论(0) 推荐(0) 编辑
摘要: UTF8转为UNICODE char* UTF82Char(const char* szU8) { int wcsLen = MultiByteToWideChar(CP_UTF8, NULL, szU8, (int)strlen(szU8), NULL, 0); wchar_t* wszStrin 阅读全文
posted @ 2019-11-25 14:38 r00t_exp 阅读(1390) 评论(0) 推荐(1) 编辑
摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文
posted @ 2019-08-22 17:43 r00t_exp 阅读(393) 评论(0) 推荐(0) 编辑
摘要: >>> CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止fire 阅读全文
posted @ 2019-04-29 11:05 r00t_exp 阅读(377) 评论(0) 推荐(0) 编辑
摘要: package main import ( "crypto/tls" "fmt" "io" "io/ioutil" "net/http" ) func main(){ GetData() PostMethod() } //这是get请求 func GetData(){ tr := &http.Transport{ ... 阅读全文
posted @ 2019-04-08 13:32 r00t_exp 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 需要引用 System.Win.Registry单元 阅读全文
posted @ 2019-04-01 13:22 r00t_exp 阅读(668) 评论(0) 推荐(0) 编辑