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.

71 lines
1.2 KiB

  1. /*
  2. **++
  3. **
  4. ** Copyright (c) 2000-2002 Microsoft Corporation
  5. **
  6. **
  7. ** Module Name:
  8. **
  9. ** sec.h
  10. **
  11. ** Abstract:
  12. **
  13. ** Test program for VSS security
  14. **
  15. ** Author:
  16. **
  17. ** Adi Oltean [aoltean] 02/12/2002
  18. **
  19. **
  20. **--
  21. */
  22. ///////////////////////////////////////////////////////////////////////////////
  23. // Includes
  24. #include "sec.h"
  25. #include "test_i.c"
  26. ///////////////////////////////////////////////////////////////////////////////
  27. // Main functions
  28. // Sample COM server
  29. CComModule _Module;
  30. /*
  31. BEGIN_OBJECT_MAP(ObjectMap)
  32. OBJECT_ENTRY(CLSID_CVssSecTest, CTestCOMServer)
  33. END_OBJECT_MAP()
  34. */
  35. extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR , int)
  36. {
  37. HRESULT hr = S_OK;
  38. try
  39. {
  40. CVssSecurityTest test;
  41. /*
  42. _Module.Init(ObjectMap, hInstance);
  43. */
  44. UNREFERENCED_PARAMETER(hInstance);
  45. // Initialize internal objects
  46. test.Initialize();
  47. // Run the tests
  48. test.Run();
  49. }
  50. catch(HRESULT hr1)
  51. {
  52. wprintf(L"\nError catched at program termination: 0x%08lx\n", hr1);
  53. hr = hr1;
  54. }
  55. return hr;
  56. }