xref: /vim-8.2.3635/src/os_w32dll.c (revision afde13b6)
1 /* vi:set ts=8 sts=4 sw=4 noet:
2  *
3  * VIM - Vi IMproved		by Bram Moolenaar
4  *
5  * Do ":help uganda"  in Vim to read copying and usage conditions.
6  * Do ":help credits" in Vim to see a list of people who contributed.
7  * See README.txt for an overview of the Vim source code.
8  */
9 /*
10  * Windows GUI: main program (DLL) entry point:
11  *
12  * Ron Aaron <[email protected]> wrote this and the DLL support code.
13  * Adapted by Ken Takata.
14  */
15 #ifndef WIN32_LEAN_AND_MEAN
16 # define WIN32_LEAN_AND_MEAN
17 #endif
18 #include <windows.h>
19 
20 void SaveInst(HINSTANCE hInst);
21 
DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)22 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
23 {
24     if (fdwReason == DLL_PROCESS_ATTACH)
25 	SaveInst(hinstDLL);
26     return TRUE;
27 }
28