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.

105 lines
2.2 KiB

  1. //==========================================================================;
  2. //
  3. // init.c
  4. //
  5. // Copyright (c) 1992-1994 Microsoft Corporation
  6. //
  7. // Description:
  8. //
  9. //
  10. // History:
  11. // 11/16/92 cjp [curtisp]
  12. //
  13. //==========================================================================;
  14. #include <windows.h>
  15. #include <windowsx.h>
  16. #include <mmsystem.h>
  17. #include <mmreg.h>
  18. #include <msacm.h>
  19. #include <msacmdrv.h>
  20. #include "codec.h"
  21. #include "debug.h"
  22. //==========================================================================;
  23. //
  24. // WIN 16 SPECIFIC SUPPORT
  25. //
  26. //==========================================================================;
  27. #ifndef WIN32
  28. //--------------------------------------------------------------------------;
  29. //
  30. // int LibMain
  31. //
  32. // Description:
  33. // Library initialization code.
  34. //
  35. // Arguments:
  36. // HINSTANCE hinst: Our module handle.
  37. //
  38. // WORD wDataSeg: Specifies the DS value for this DLL.
  39. //
  40. // WORD cbHeapSize: The heap size from the .def file.
  41. //
  42. // LPSTR pszCmdLine: The command line.
  43. //
  44. // Return (int):
  45. // Returns non-zero if the initialization was successful and 0 otherwise.
  46. //
  47. // History:
  48. // 11/15/92 cjp [curtisp]
  49. //
  50. //--------------------------------------------------------------------------;
  51. int FNGLOBAL LibMain
  52. (
  53. HINSTANCE hinst,
  54. WORD wDataSeg,
  55. WORD cbHeapSize,
  56. LPSTR pszCmdLine
  57. )
  58. {
  59. DbgInitialize(TRUE);
  60. DPF(1, "LibMain(hinst=%.4Xh, wDataSeg=%.4Xh, cbHeapSize=%u, pszCmdLine=%.8lXh)",
  61. hinst, wDataSeg, cbHeapSize, pszCmdLine);
  62. return (TRUE);
  63. } // LibMain()
  64. //--------------------------------------------------------------------------;
  65. //
  66. // int WEP
  67. //
  68. // Description:
  69. //
  70. //
  71. // Arguments:
  72. // WORD wUselessParam:
  73. //
  74. // Return (int):
  75. //
  76. // History:
  77. // 03/28/93 cjp [curtisp]
  78. //
  79. //--------------------------------------------------------------------------;
  80. int FNEXPORT WEP
  81. (
  82. WORD wUselessParam
  83. )
  84. {
  85. DPF(1, "WEP(wUselessParam=%u)", wUselessParam);
  86. //
  87. // always return 1.
  88. //
  89. return (1);
  90. } // WEP()
  91. #endif