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.

47 lines
1.2 KiB

  1. //+------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993.
  5. //
  6. // File: bmcomm.cxx
  7. //
  8. // Contents: definitions for benchmark test
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 30-June-93 t-martig Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #include <benchmrk.hxx>
  18. // the external definitions for these are in bmcomm.hxx
  19. DWORD dwaClsCtx[] = {CLSCTX_INPROC_SERVER, CLSCTX_LOCAL_SERVER};
  20. LPTSTR apszClsCtx[] = {TEXT("InProc Server"), TEXT("Local Server")};
  21. LPTSTR apszClsIDName[] = {TEXT("ClsID_InProc"), TEXT("ClsID_Local")};
  22. LPOLESTR apszPerstName[] = {aszPerstName[0], aszPerstName[1]};
  23. LPOLESTR apszPerstNameNew[] = {aszPerstNameNew[0], aszPerstNameNew[1]};
  24. LPTSTR saModeNames[] = { TEXT("InProc"),
  25. TEXT("Local"),
  26. TEXT("Handler"),
  27. NULL };
  28. DWORD dwaModes[] = { CLSCTX_INPROC_SERVER,
  29. CLSCTX_LOCAL_SERVER,
  30. CLSCTX_INPROC_HANDLER };
  31. OLECHAR aszPerstName[2][80]; // actual name for persistent instances
  32. OLECHAR aszPerstNameNew[2][80]; // actual name for persistent instances
  33. HRESULT OleInitializeEx(LPMALLOC pMalloc, DWORD dwIgnored)
  34. {
  35. return OleInitialize(pMalloc);
  36. }