函数怎么可以独立使用的呢?
网上 看到一个代码中的部分程序:// Global variables
static HHOOK g_hHook = NULL; // Handle to the hook
static DWORD g_dwThreadId = 0; // Hooked thread
static HINSTANCE g_hInstDll = NULL; // Handle to this DLL
static CIPC g_obIPC; // Shared resources used to transfer data from PwdSpy to the hook code
const static LPCTSTR g_szIPCCustomMsg = _T("{34F673E2-878F-11D5-B98A-00B0D07B8C7C}");
const static UINT g_wmScanPassword = RegisterWindowMessage(g_szIPCCustomMsg);
有点意思的是,函数RegisterWindowMessage怎么在函数体外被调用了呢 ??