#include <tchar.h> // The caption of our message box TCHAR g_szCaption[] = TEXT("Timed Message Box"); // How many seconds we'll display the message box int g_nSecLeft =0; // This is STATIC window control ID for a message box #define ID_MSGBOX_STATIC_TEXT 0x0000ffff //控件得值為即xFFFF VOID WINAPI MsgBoxTimeout(PVOID pvContext, BOOLEAN fTimeout)