摘要:
/* 创建第一个线程。主进程结束,则撤销线程。 */ #include<Windows.h> #include<stdio.h> DWORD WINAPI ThreadFunc(LPVOID); void main() { HANDLE hThread; DWORD threadId; hThrea 阅读全文
摘要:
void WINAPI CaptureScreenIntoFile() { BITMAPFILEHEADER bfHeader; BITMAPINFOHEADER biHeader; HGDIOBJ hTempBitmap; HBITMAP hBitmap; BITMAP bAllDesktops; 阅读全文
摘要:
#include <iostream> #include <stdio.h> using namespace std; char* Capital_to_Small(char* str) { char* temp = str; int len = strlen(temp); for (int i = 阅读全文
摘要:
#include <iostream> #include <string> #include <sstream> #include <fstream> #include <Windows.h> using namespace std; int main() { char str[MAX_PATH]; 阅读全文
摘要:
#include <iostream> #include <string> #include <sstream> #include <fstream> #include <Windows.h> using namespace std; int main() { HKEY key; if (RegOp 阅读全文
摘要:
#include <Windows.h> #include <Icm.h> #include <iostream> #include <string> #pragma comment(lib,"Mscms.lib") #define MAX_PATH 1024 BOOL flag = 0; int 阅读全文
摘要:
std::string str = "abc"; const char *p = str.data(); 更多: https://www.cnblogs.com/devilmaycry812839668/p/6353807.html 阅读全文
摘要:
#include <iostream> #pragma warning(disable:4996); using namespace std; char* t = (char*)malloc(1024); char* _strcut(char* des, char* src) { memset(t, 阅读全文
摘要:
#include <iostream> #include <stdio.h> using namespace std; char *_strcpy(char* des, char* src) { if (des == NULL || src == NULL) { return 0; } // cou 阅读全文
摘要:
第一种,依托WMI #define _WIN32_DCOM #include <iostream> using namespace std; #include <comdef.h> #include <Wbemidl.h> # pragma comment(lib, "wbemuuid.lib") 阅读全文