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.

78 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: storage.c (16 bit target)
  7. //
  8. // Contents: Storage.dll common code
  9. //
  10. // History: 17-Dec-93 JohannP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #include <headers.cxx>
  14. #pragma hdrstop
  15. #include <call32.hxx>
  16. #include <apilist.hxx>
  17. DECLARE_INFOLEVEL(thk1);
  18. //+---------------------------------------------------------------------------
  19. //
  20. // Function: LibMain, public
  21. //
  22. // Synopsis: DLL initialization function
  23. //
  24. // Arguments: [hinst] - Instance handle
  25. // [wDataSeg] - Current DS
  26. // [cbHeapSize] - Heap size for the DLL
  27. // [lpszCmdLine] - Command line information
  28. //
  29. // Returns: One for success, zero for failure
  30. //
  31. // History: 21-Feb-94 DrewB Created
  32. //
  33. //----------------------------------------------------------------------------
  34. #if DBG == 1
  35. static char achInfoLevel[32];
  36. #endif
  37. int CALLBACK LibMain(HINSTANCE hinst,
  38. WORD wDataSeg,
  39. WORD cbHeapSize,
  40. LPSTR lpszCmdLine)
  41. {
  42. #if DBG == 1
  43. if (GetProfileString("olethk32", "InfoLevel", "3", achInfoLevel,
  44. sizeof(achInfoLevel)) > 0)
  45. {
  46. thk1InfoLevel = strtoul(achInfoLevel, NULL, 0);
  47. }
  48. #endif
  49. return 1;
  50. }
  51. //+---------------------------------------------------------------------------
  52. //
  53. // Function: WEP, public
  54. //
  55. // Synopsis: Windows Exit Point routine, for receiving DLL unload
  56. // notification
  57. //
  58. // Arguments: [nExitType] - Type of exit occurring
  59. //
  60. // Returns: One for success, zero for failure
  61. //
  62. // History: 21-Feb-94 DrewB Created
  63. //
  64. //----------------------------------------------------------------------------
  65. int CALLBACK WEP(int nExitType)
  66. {
  67. // Clean up thunk objects?
  68. return 1;
  69. }