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.

118 lines
2.9 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1993-1996 Microsoft Corporation
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. // init.c
  13. //
  14. // Description:
  15. // This file contains module initialization routines. Note that there
  16. // is no module initialization for Win32 - the only initialization
  17. // required is to set ghinst, which is done in the DRV_LOAD message
  18. // of DriverProc (in codec.c).
  19. //
  20. //
  21. //==========================================================================;
  22. #include <windows.h>
  23. #include <windowsx.h>
  24. #include <mmsystem.h>
  25. #include <mmreg.h>
  26. #include <msacm.h>
  27. #include <msacmdrv.h>
  28. #include "codec.h"
  29. #include "debug.h"
  30. //==========================================================================;
  31. //
  32. // WIN 16 SPECIFIC SUPPORT
  33. //
  34. //==========================================================================;
  35. #ifndef _WIN32
  36. //--------------------------------------------------------------------------;
  37. //
  38. // int LibMain
  39. //
  40. // Description:
  41. // Library initialization code.
  42. //
  43. // Arguments:
  44. // HINSTANCE hinst: Our module handle.
  45. //
  46. // WORD wDataSeg: Specifies the DS value for this DLL.
  47. //
  48. // WORD cbHeapSize: The heap size from the .def file.
  49. //
  50. // LPSTR pszCmdLine: The command line.
  51. //
  52. // Return (int):
  53. // Returns non-zero if the initialization was successful and 0 otherwise.
  54. //
  55. // History:
  56. // 11/15/92 Created.
  57. //
  58. //--------------------------------------------------------------------------;
  59. int FNGLOBAL LibMain
  60. (
  61. HINSTANCE hinst,
  62. WORD wDataSeg,
  63. WORD cbHeapSize,
  64. LPSTR pszCmdLine
  65. )
  66. {
  67. DbgInitialize(TRUE);
  68. //
  69. // if debug level is 5 or greater, then do a DebugBreak() to debug
  70. // loading of this driver
  71. //
  72. DPF(1, "LibMain(hinst=%.4Xh, wDataSeg=%.4Xh, cbHeapSize=%u, pszCmdLine=%.8lXh)",
  73. hinst, wDataSeg, cbHeapSize, pszCmdLine);
  74. DPF(5, "!*** break for debugging ***");
  75. return (TRUE);
  76. } // LibMain()
  77. //--------------------------------------------------------------------------;
  78. //
  79. // int WEP
  80. //
  81. // Description:
  82. //
  83. //
  84. // Arguments:
  85. // WORD wUselessParam:
  86. //
  87. // Return (int):
  88. //
  89. // History:
  90. // 03/28/93 Created.
  91. //
  92. //--------------------------------------------------------------------------;
  93. EXTERN_C int FNEXPORT WEP
  94. (
  95. WORD wUselessParam
  96. )
  97. {
  98. DPF(1, "WEP(wUselessParam=%u)", wUselessParam);
  99. //
  100. // always return 1.
  101. //
  102. return (1);
  103. } // WEP()
  104. #endif