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.

41 lines
984 B

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: sdi.cxx
  4. //
  5. // Contents: This file contins the DLL entry points
  6. // WinMain
  7. //
  8. // Classes:
  9. //
  10. // History: 30-Nov-92 SarahJ Created
  11. //
  12. //---------------------------------------------------------------------
  13. #include <common.h>
  14. #include <actcf.hxx>
  15. //+-------------------------------------------------------------------
  16. //
  17. // Function: WinMain
  18. //
  19. // Synopsis: Entry point to DLL - does little else
  20. //
  21. // Arguments:
  22. //
  23. // Returns: TRUE
  24. //
  25. // History: 21-Nov-92 SarahJ Created
  26. //
  27. //--------------------------------------------------------------------
  28. int WINAPI WinMain(
  29. HINSTANCE hInstance,
  30. HINSTANCE hPrevInstance,
  31. LPSTR lpCmdLine,
  32. int nCmdShow)
  33. {
  34. CActClassFactory *pCF = new CActClassFactory(CLSID_TestSingleUse ,TRUE);
  35. int sc = SrvMain(hInstance, CLSID_TestSingleUse, REGCLS_SINGLEUSE,
  36. TEXT("SDI Server"), pCF);
  37. return sc;
  38. }