1
// calc.cpp : Defines the entry point for the DLL application.
4
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
9
#pragma comment(lib, "wsock32")
12
static struct WSAInit { \
14
WSAInit() {WSAStartup(0x0101, &WsaData);} \
15
~WSAInit() {WSACleanup();} \
19
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {