Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.6 KiB

  1. /*****************************************************************/
  2. /** Microsoft **/
  3. /** Copyright (C) Microsoft Corp., 1991-1998 **/
  4. /*****************************************************************/
  5. //
  6. // DLLENTRY.CPP -
  7. //
  8. // HISTORY:
  9. //
  10. // 05/14/98 donaldm created
  11. //
  12. #include "pre.h"
  13. // instance handle must be in per-instance data segment
  14. HINSTANCE ghInstance = NULL;
  15. HINSTANCE ghInstanceResDll = NULL;
  16. typedef UINT RETERR;
  17. INT _convert; // For string conversion
  18. #ifdef __cplusplus
  19. extern "C"
  20. {
  21. #endif // __cplusplus
  22. BOOL _stdcall DllEntryPoint(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpReserved);
  23. #ifdef __cplusplus
  24. }
  25. #endif // __cplusplus
  26. /*******************************************************************
  27. NAME: DllEntryPoint
  28. SYNOPSIS: Entry point for DLL.
  29. NOTES: Initializes thunk layer to WIZ16.DLL
  30. ********************************************************************/
  31. BOOL _stdcall DllEntryPoint(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpReserved)
  32. {
  33. if( fdwReason == DLL_PROCESS_ATTACH )
  34. {
  35. ghInstance = hInstDll;
  36. ghInstanceResDll = LoadLibrary(ICW_RESOURCE_ONLY_DLL);
  37. ASSERT(ghInstanceResDll);
  38. }
  39. if (fdwReason == DLL_PROCESS_DETACH)
  40. {
  41. ASSERT(ghInstanceResDll);
  42. FreeLibrary(ghInstanceResDll);
  43. }
  44. return TRUE;
  45. }
  46. #ifdef __cplusplus
  47. extern "C"
  48. {
  49. #endif // __cplusplus
  50. void __cdecl main() {};
  51. #ifdef __cplusplus
  52. }
  53. #endif // __cplusplus