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.

79 lines
1.7 KiB

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: oledll2.c
  4. //
  5. // Contents: This file contins the DLL entry points
  6. // LibMain
  7. // FunctionInAnotherDLL
  8. //
  9. // This DLL is used to to test loading of in
  10. // InProcServer that uses another statically linked DLL.
  11. // The extra DLL (OleDll2.DLL) should not be on the path
  12. // when the test is run. The entry point FuntionInAnotherDLL
  13. // is exported by OleDll2.DLL
  14. //
  15. //
  16. // History: 30-Jun-94 AndyH Created
  17. //
  18. //---------------------------------------------------------------------
  19. #include <windows.h>
  20. #include "oledll2.h"
  21. //+-------------------------------------------------------------------
  22. //
  23. // Function: LibMain
  24. //
  25. // Synopsis: Entry point to DLL - does little else
  26. //
  27. // Arguments:
  28. //
  29. // Returns: TRUE
  30. //
  31. // History: 21-Nov-92 SarahJ Created
  32. //
  33. //--------------------------------------------------------------------
  34. //
  35. // Entry point to DLL is traditional LibMain
  36. //
  37. BOOL _cdecl LibMain ( HINSTANCE hinst,
  38. HANDLE segDS,
  39. UINT cbHeapSize,
  40. LPTSTR lpCmdLine)
  41. {
  42. return TRUE;
  43. }
  44. //+-------------------------------------------------------------------
  45. //
  46. // Function: FunctionInAnotherDLL
  47. //
  48. // Synopsis: Does nothing.
  49. //
  50. // Arguments:
  51. //
  52. // Returns: TRUE
  53. //
  54. // History: 30-Jun-94 AndyH Created
  55. //
  56. //--------------------------------------------------------------------
  57. //
  58. // Entry point for testing statically linked DLL.
  59. //
  60. BOOL FunctionInAnotherDLL ( void )
  61. {
  62. return TRUE;
  63. }