|
|
1.1 root 1: /* ---File: initdll.c -----------------------------------------------------
2: *
3: * Description:
4: * Dynamic Link Library initialization module. These functions are
5: * invoked when the DLL is initially loaded by NT.
6: *
7: * This document contains confidential/proprietary information.
8: * Copyright (c) 1991 Microsoft Corporation, All Rights Reserved.
9: *
10: * Revision History:
11: * [00] 24-Jun-91 stevecat created
12: *
13: * ---------------------------------------------------------------------- */
14:
15: #include <windows.h>
16:
17: HANDLE hModule;
18:
19: /*************************** Function Header ******************************
20: * DllInitialize ()
21: * DLL initialization procedure. Save the module handle since it is needed
22: * by other library routines to get resources (strings, dialog boxes, etc.)
23: * from the DLL's resource data area.
24: *
25: * RETURNS:
26: * TRUE/FALSE.
27: *
28: * HISTORY:
29: * [01] 4-Oct-91 stevecat new dll init logic
30: * [00] 24-Jun-91 stevecat created
31: *
32: ***************************************************************************/
33:
34: BOOL
35: DllInitialize( hmod, ulReason, pctx )
36: PVOID hmod;
37: ULONG ulReason;
38: PCONTEXT pctx;
39: {
40: BOOL bRet; /* Return code */
41:
42: UNREFERENCED_PARAMETER( pctx );
43:
44: bRet = TRUE;
45:
46: switch( ulReason )
47: {
48: case DLL_PROCESS_ATTACH:
49: hModule = hmod;
50: break;
51:
52: default:
53: break;
54: }
55:
56: return bRet;
57: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.