Pushbuttons should only be rounded in Win31 look.
[wine/multimedia.git] / server / main.c
blobe7190c96525aad8e7f161ae8ef695bf7b6e47f59
1 /*
2 * Server main function
4 * Copyright (C) 1998 Alexandre Julliard
5 */
7 #include <ctype.h>
8 #include <fcntl.h>
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <unistd.h>
13 #include "server.h"
14 #include "server/object.h"
15 #include "server/thread.h"
17 int main( int argc, char *argv[] )
19 int fd;
21 if (argc != 2) goto error;
22 if (!isdigit( *argv[1] )) goto error;
23 fd = atoi( argv[1] );
24 /* make sure the fd is valid */
25 if (fcntl( fd, F_GETFL, 0 ) == -1) goto error;
27 debug_level = 1;
29 if (debug_level) fprintf( stderr, "Server: starting (pid=%d)\n", getpid() );
30 create_initial_thread( fd );
31 if (debug_level) fprintf( stderr, "Server: exiting (pid=%d)\n", getpid() );
32 exit(0);
34 error:
35 fprintf( stderr, "%s: must be run from Wine.\n", argv[0] );
36 exit(1);