Mercurial > pidgin.yaz
annotate src/win_gaim.c @ 6886:b5fb1d5282e5
[gaim-migrate @ 7432]
Buddy icon caching can now be enabled/disabled in the core, and the cache
dir can be changed.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 18 Sep 2003 07:11:55 +0000 |
parents | 5aeba37b303c |
children | 4eee806af511 |
rev | line source |
---|---|
4490 | 1 /* |
2 * win_aim.c | |
3 * | |
4 * Author: Herman Bloggs <hermanator12002@yahoo.com> | |
5 * Date: June, 2002 | |
6 * Description: Entry point for win32 gaim, and various win32 dependant | |
7 * routines. | |
8 */ | |
9 #include <windows.h> | |
10 #include <stdlib.h> | |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
11 #include <glib.h> |
4490 | 12 |
13 /* | |
14 * GLOBALS | |
15 */ | |
16 __declspec(dllimport) HINSTANCE gaimexe_hInstance; | |
17 | |
18 /* | |
19 * LOCALS | |
20 */ | |
21 | |
22 /* | |
23 * PROTOTYPES | |
24 */ | |
25 extern int gaim_main( int, char** ); | |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
26 extern char* wgaim_install_dir(); |
4490 | 27 |
28 #ifdef __GNUC__ | |
29 # ifndef _stdcall | |
30 # define _stdcall __attribute__((stdcall)) | |
31 # endif | |
32 #endif | |
33 | |
34 int _stdcall | |
35 WinMain (struct HINSTANCE__ *hInstance, | |
36 struct HINSTANCE__ *hPrevInstance, | |
37 char *lpszCmdLine, | |
38 int nCmdShow) | |
39 { | |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
40 char* drmingw; |
4490 | 41 gaimexe_hInstance = hInstance; |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
42 |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
43 /* Load exception handler if we have it */ |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
44 drmingw = g_build_filename(wgaim_install_dir(), "exchndl.dll", NULL); |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
45 LoadLibrary(drmingw); |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
46 g_free(drmingw); |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4490
diff
changeset
|
47 |
4490 | 48 return gaim_main (__argc, __argv); |
49 } | |
50 |