📄 gamespy.cpp
字号:
// GameSpy.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#pragma data_seg(".share")
volatile int g_application_count = 0;
#pragma data_seg()
#pragma comment(linker, "/section:.share,rws")
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
if(g_application_count > 0)
{
//MessageBox(0, "a", "", 0);
return 1;
}
g_application_count ++;
if(InitSocket())
{
_beginthread(CheckGameQuit, 0, 0);
DoSniffing();
WSACleanup();
return 0;
}
else
{
return 2;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -