46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
// stdafx.h : 자주 사용하지만 자주 변경되지는 않는
|
|
// 표준 시스템 포함 파일 및 프로젝트 관련 포함 파일이
|
|
// 들어 있는 포함 파일입니다.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
|
#define DECL_CONST_MEMBER static const DWORD
|
|
#define DEFINE_CONST const DWORD
|
|
|
|
|
|
DEFINE_CONST MAGIC_MEMORY_IDS_MARK = 0xDEADBEEF;
|
|
typedef DWORD MAGIC_CODE_T;
|
|
#define MAGIC_CODE_EXPOSURE(ptr) (*((MAGIC_CODE_T*)(ptr)))
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
#define DISPMSG printf
|
|
|
|
#define P_SUCCESS DISPMSG("SUCCESS!\n")
|
|
#define P_FAILED DISPMSG("FAILED!\n")
|
|
|
|
|
|
#define __READ_CONFIG_NUMBER(outValue, szSectionName, keyName, defValue, ini) \
|
|
outValue = GetPrivateProfileInt(szSectionName, keyName, defValue, ini)
|
|
#define __READ_CONFIG_STRING(outString, szSectionName, keyName, defValue, ini) \
|
|
GetPrivateProfileString(szSectionName, keyName, defValue, outString, 256, ini)
|
|
#define __READ_CONFIG_STRING_IP(outString, szSectionName, keyName, defValue, ini) \
|
|
GetPrivateProfileString(szSectionName, keyName, defValue, outString, 16, ini)
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
# define DEBUG_INTERRUPT() __asm { int 3 }
|
|
# define SHOW_PACKET_STREAM(ptr, size, comment)
|
|
//# define SHOW_PACKET_STREAM(ptr, size, comment) PACKET_CONTROL::ShowPacketStream(ptr, size, comment)
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
enum eIOHANDLER
|
|
{
|
|
//SERVER_IOHANDLER = 0x01,
|
|
CLIENT_IOHANDLER = 0x02,
|
|
};
|
|
|