winstuff.cpp
来自「linux下简单对象应用协议的开发库」· C++ 代码 · 共 23 行
CPP
23 行
// calc.cpp : Defines the entry point for the DLL application.
//
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <winsock2.h>
#if _MSC_VER > 1000
#pragma comment(lib, "wsock32")
#endif
static struct WSAInit { \
WSADATA WsaData; \
WSAInit() {WSAStartup(0x0101, &WsaData);} \
~WSAInit() {WSACleanup();} \
} WsaInit;
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
return TRUE;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?