Various combobox fixes.
[wine/hacks.git] / misc / main.c
blob90998ea95667b9751a7027830978f2ca41e7e9ef
1 /*
2 * Main function.
4 * Copyright 1994 Alexandre Julliard
5 */
7 #include "config.h"
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>
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"
27 DECLARE_DEBUG_CHANNEL(file);
30 /***********************************************************************
31 * Beep (KERNEL32.11)
33 BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDur )
35 static char beep = '\a';
36 /* dwFreq and dwDur are ignored by Win95 */
37 if (isatty(2)) write( 2, &beep, 1 );
38 return TRUE;
42 /***********************************************************************
43 * FileCDR (KERNEL.130)
45 FARPROC16 WINAPI FileCDR16(FARPROC16 x)
47 FIXME_(file)("(0x%8x): stub\n", (int) x);
48 return (FARPROC16)TRUE;
51 /***********************************************************************
52 * GetTickCount (USER.13) (KERNEL32.299)
54 * Returns the number of milliseconds, modulo 2^32, since the start
55 * of the wineserver.
57 DWORD WINAPI GetTickCount(void)
59 struct timeval t;
60 gettimeofday( &t, NULL );
61 return ((t.tv_sec * 1000) + (t.tv_usec / 1000)) - server_startticks;