?? arsmsg.cpp
字號:
// arsmsg.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "arsmsg.h"
static HINSTANCE hInstance;
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
hInstance = (HINSTANCE )hModule;
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
// Retrieves resouce given by ID
// lpStr must be atleast ARSMSG_MAX_MSG_SIZE
ARSMSG_API char * arsmsg_GetMessage(UINT nID, char *lpStr, BOOL *res)
{
BOOL r;
lpStr[0] = '\0';
r = LoadString(hInstance, nID, lpStr, ARSMSG_MAX_MSG_SIZE);
if (res)
*res = r;
return lpStr;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -