秘孔をつくのだ!
@@ -0,0 +1,21 @@ | ||
1 | +#include <stdio.h> | |
2 | +#include <windows.h> | |
3 | + | |
4 | +main() | |
5 | +{ | |
6 | + TIMECAPS tc; | |
7 | + | |
8 | + if ( timeGetDevCaps( &tc, sizeof( TIMECAPS ) ) != MMSYSERR_NOERROR ) { | |
9 | + printf( "秘孔の位置が見えないッ!\n" ); | |
10 | + exit( 1 ); | |
11 | + } | |
12 | + | |
13 | + printf( "秘孔は %d だッ!\n", tc.wPeriodMin ); | |
14 | + | |
15 | + if ( timeBeginPeriod( tc.wPeriodMin ) != TIMERR_NOERROR ) { | |
16 | + printf( "秘孔がつけないだとッ!\n" ); | |
17 | + exit( 1 ); | |
18 | + } | |
19 | + Sleep( INFINITE ); | |
20 | + timeEndPeriod( 1 ); | |
21 | +} |