// Timer.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
void CALLBACK TimerProc(HWND hwnd, UINT message, UINT timerID, DWORD time)
{
MessageBeep(-1);
}
int main(void)
{
MSG msg;
SetTimer(NULL, 0, 1000, TimerProc);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
KillTimer(NULL, 1);
return 0;
}
414




被折叠的 条评论
为什么被折叠?



