• R/O
  • SSH
  • HTTPS

naniya: Commit


Commit MetaInfo

Revision247 (tree)
Zeit2010-06-14 18:06:25
Autornotanpe

Log Message

秘孔をつくのだ!

Ändern Zusammenfassung

Diff

--- branches/mty-makai/hikou.c (nonexistent)
+++ branches/mty-makai/hikou.c (revision 247)
@@ -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+}
Show on old repository browser