Changeset 9232 for trunk/src/dsound/initterm.cpp
- Timestamp:
- Sep 14, 2002, 10:31:25 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/initterm.cpp
r6646 r9232 1 /* $Id: initterm.cpp,v 1.1 7 2001-09-05 12:53:02 birdExp $1 /* $Id: initterm.cpp,v 1.18 2002-09-14 08:31:25 sandervl Exp $ 2 2 * 3 3 * DLL entry point … … 27 27 #define INCL_DOSPROCESS 28 28 #include <os2wrap.h> //Odin32 OS/2 api wrappers 29 #include <stdlib.h>30 #include <stdio.h>31 29 #include <string.h> 32 #include <odin.h>33 30 #include <win32type.h> 34 #include <winconst.h>35 31 #include <odinlx.h> 36 32 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 37 33 #include <initdll.h> 38 34 39 extern "C" { 40 //Win32 resource table (produced by wrc) 41 extern DWORD _Resource_PEResTab; 42 } 35 char dsoundPath[CCHMAXPATH] = ""; 43 36 44 char dsoundPath[CCHMAXPATH] = "";45 static HMODULE dllHandle = 0;46 47 //******************************************************************************48 //******************************************************************************49 BOOL WINAPI OdinLibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)50 {51 switch (fdwReason)52 {53 case DLL_PROCESS_ATTACH:54 return TRUE;55 56 case DLL_THREAD_ATTACH:57 case DLL_THREAD_DETACH:58 return TRUE;59 60 case DLL_PROCESS_DETACH:61 ctordtorTerm();62 return TRUE;63 }64 return FALSE;65 }66 37 /****************************************************************************/ 67 38 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 89 60 90 61 ctordtorInit(); 91 92 62 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 93 94 dllHandle = RegisterLxDll(hModule, OdinLibMain, (PVOID)&_Resource_PEResTab); 95 if(dllHandle == 0) 96 return 0UL; 97 98 break; 63 return inittermDSound(hModule, ulFlag); 99 64 } 100 65 101 66 case 1 : 102 if(dllHandle) { 103 UnregisterLxDll(dllHandle); 104 } 67 inittermDSound(hModule, ulFlag); 68 ctordtorTerm(); 105 69 break; 106 70 default :
Note:
See TracChangeset
for help on using the changeset viewer.