Source code of Windows XP (NT5)
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.

115 lines
3.0 KiB

  1. /***************************************************************************
  2. *
  3. * File: hwsmain.c
  4. *
  5. * INTEL Corporation Proprietary Information
  6. * Copyright (c) 1996 Intel Corporation.
  7. *
  8. * This listing is supplied under the terms of a license agreement
  9. * with INTEL Corporation and may not be used, copied, nor disclosed
  10. * except in accordance with the terms of that agreement.
  11. *
  12. ***************************************************************************
  13. *
  14. * $Workfile: hwsmain.c $
  15. * $Revision: 1.8 $
  16. * $Modtime: 03 Feb 1997 19:20:32 $
  17. * $Log: S:\sturgeon\src\h245ws\vcs\hwsmain.c_v $
  18. *
  19. * Rev 1.8 03 Feb 1997 19:21:18 SBELL1
  20. * removed DATE and TIME from loading of DLL for H.323 proxy compatability.
  21. *
  22. * Rev 1.7 19 Dec 1996 18:56:46 SBELL1
  23. * Moved Initialize to linkLayerInit
  24. *
  25. * Rev 1.6 13 Dec 1996 12:13:02 SBELL1
  26. * moved ifdef _cplusplus to after includes
  27. *
  28. * Rev 1.5 11 Dec 1996 13:44:44 SBELL1
  29. * Put in UNICODE tracing stuff.
  30. *
  31. * Rev 1.4 Oct 01 1996 14:30:26 EHOWARDX
  32. * Moved Initialize() and Unitialize() calls to DllMain().
  33. *
  34. * Rev 1.3 Oct 01 1996 14:05:04 EHOWARDX
  35. * Deleted trace of default case (DLL_THREAD_ATTACH/DLL_THREAD_DETACH).
  36. *
  37. * Rev 1.2 03 Jun 1996 10:46:18 EHOWARDX
  38. * Added trace of DLL loading/unloading.
  39. *
  40. * Rev 1.1 Apr 24 1996 16:15:58 plantz
  41. * Removed include winsock2.h
  42. * .
  43. *
  44. * Rev 1.0 08 Mar 1996 20:21:22 unknown
  45. * Initial revision.
  46. *
  47. ***************************************************************************/
  48. #ifndef STRICT
  49. #define STRICT
  50. #endif // not defined STRICT
  51. #pragma warning ( disable : 4115 4201 4214 4514 )
  52. #undef _WIN32_WINNT // override bogus platform definition in our common build environment
  53. #include <windows.h>
  54. #include "queue.h"
  55. #include "linkapi.h"
  56. #include "h245ws.h"
  57. #if defined(__cplusplus)
  58. extern "C"
  59. {
  60. #endif // (__cplusplus)
  61. void Initialize();
  62. void Uninitialize();
  63. //---------------------------------------------------------------------------
  64. // Function: dllmain
  65. //
  66. // Description: DLL entry/exit points.
  67. //
  68. // Inputs:
  69. // hInstDll : DLL instance.
  70. // fdwReason : Reason the main function is called.
  71. // lpReserved : Reserved.
  72. //
  73. // Return Value:
  74. // TRUE : OK
  75. // FALSE : Error, DLL won't load
  76. //---------------------------------------------------------------------------
  77. #pragma warning ( disable : 4100 )
  78. // If we are not using the Unicode version of the ISR display utility, then undef the
  79. // __TEXT macro.
  80. #ifndef UNICODE_TRACE
  81. #undef __TEXT
  82. #define __TEXT(x) x
  83. #endif
  84. BOOL WINAPI H245WSDllMain (HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
  85. {
  86. switch (fdwReason)
  87. {
  88. case DLL_PROCESS_ATTACH:
  89. HWSTRACE0(0, HWS_NOTIFY, __TEXT("***** Loading H245WS DLL"));
  90. break;
  91. case DLL_PROCESS_DETACH:
  92. HWSTRACE0(0, HWS_NOTIFY, __TEXT("***** Unloading H245WS DLL"));
  93. Uninitialize();
  94. break;
  95. }
  96. return TRUE;
  97. }
  98. #pragma warning ( default : 4100 )
  99. #if defined(__cplusplus)
  100. }
  101. #endif // (__cplusplus)