Bram Moolenaar | afde13b | 2019-04-28 19:46:49 +0200 | [diff] [blame] | 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 <ronaharon@yahoo.com> 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 | |
| 22 | BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) |
| 23 | { |
| 24 | if (fdwReason == DLL_PROCESS_ATTACH) |
| 25 | SaveInst(hinstDLL); |
| 26 | return TRUE; |
| 27 | } |