Documentation ordinal fixes (using winapi_fixup).
[wine] / misc / main.c
1 /*
2  * Main function.
3  *
4  * Copyright 1994 Alexandre Julliard
5  */
6
7 #include "config.h"
8
9 #include <locale.h>
10 #include <ctype.h>
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <string.h>
14 #include <sys/types.h>
15 #include <sys/time.h>
16 #include <unistd.h>
17
18 #include "windef.h"
19 #include "winbase.h"
20 #include "wine/winbase16.h"
21 #include "ntddk.h"
22 #include "winnls.h"
23 #include "winerror.h"
24 #include "options.h"
25 #include "debugtools.h"
26
27 DECLARE_DEBUG_CHANNEL(file);
28
29
30 /***********************************************************************
31  *           Beep   (KERNEL32.@)
32  */
33 BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDur )
34 {
35     static char beep = '\a';
36     /* dwFreq and dwDur are ignored by Win95 */
37     if (isatty(2)) write( 2, &beep, 1 );
38     return TRUE;
39 }
40
41
42 /***********************************************************************
43 *       FileCDR (KERNEL.130)
44 */
45 FARPROC16 WINAPI FileCDR16(FARPROC16 x)
46 {
47         FIXME_(file)("(0x%8x): stub\n", (int) x);
48         return (FARPROC16)TRUE;
49 }
50
51 /***********************************************************************
52  *           GetTickCount   (USER.13)
53  *           GetCurrentTime (USER.15)
54  *           GetTickCount   (KERNEL32.@)
55  *
56  * Returns the number of milliseconds, modulo 2^32, since the start
57  * of the wineserver.
58  */
59 DWORD WINAPI GetTickCount(void)
60 {
61     struct timeval t;
62     gettimeofday( &t, NULL );
63     return ((t.tv_sec * 1000) + (t.tv_usec / 1000)) - server_startticks;
64 }