|
|
1.1 root 1: /********************** Module Header **************************************
2: * modinit.c
3: * The generic minidriver module. This is the DLL initialisation
4: * function, being called at load time. We remember our handle,
5: * in case it might be useful.
6: *
7: * HISTORY:
8: * 17:37 on Fri 05 Apr 1991 -by- Lindsay Harris [lindsayh]
9: * Created it.
10: *
11: * Copyright (C) 1992 Microsoft Corporation.
12: *
13: **************************************************************************/
14:
15: #include <windows.h>
16:
17:
18:
19: /*************************** Function Header ******************************
20: * bInitProc()
21: * DLL initialization procedure. Save the module handle and
22: * initialise some machine dependent "constants".
23: *
24: * Returns:
25: * This function returns TRUE.
26: *
27: * HISTORY:
28: * 15:59 on Wed 08 Jan 1992 -by- Lindsay Harris [lindsayh]
29: * Taken from rasdd's enabldrv.c
30: *
31: ***************************************************************************/
32:
33: BOOL
34: bInitProc( hmod, Reason, pctx )
35: PVOID hmod;
36: ULONG Reason;
37: PCONTEXT pctx;
38: {
39:
40:
41: UNREFERENCED_PARAMETER( hmod );
42: UNREFERENCED_PARAMETER( Reason );
43: UNREFERENCED_PARAMETER( pctx );
44:
45:
46: return TRUE;
47: }
48:
49:
50: #ifdef _GET_FUNC_ADDR
51:
52: /*
53: * If the minidriver contains code called by RasDD, then we will need
54: * to be initialised: we need some function addresses in RasDD. But these
55: * cannot be statically linked since we do not know the path to rasdd.
56: * Hence, we export the following function, which RasDD will call first.
57: * This gives us the address of the RasDD functions available to us.
58: */
59:
60:
61: /******************************* Function Header ***************************
62: * bSetFuncAddr
63: * Called by RasDD to pass in addresses needed by us to call into
64: * the available functions in Rasdd.
65: *
66: * RETURNS:
67: * TRUE if data is understable, else FALSE.
68: *
69: * HISTORY:
70: * 13:50 on Wed 20 May 1992 -by- Lindsay Harris [lindsayh]
71: * First version
72: *
73: ***************************************************************************/
74:
75: BOOL
76: bSetFuncAddr( pntmd_init )
77: NTMD_INIT *pntmd_init;
78: {
79: /*
80: * Check that the data format is the type we understand.
81: */
82:
83: if( pntmd_init->wSize < sizeof( NTMD_INIT ) ||
84: pntmd_init->wVersion < NTMD_INIT_VER )
85: {
86: return FALSE; /* Can't afford to monkey around */
87: }
88:
89: /* Data is GOOD, so copy it to our global data */
90:
91: ntmdInit = *pntmd_init;
92:
93: return TRUE;
94: }
95:
96: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.