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.

69 lines
1.7 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // main.cpp
  7. //
  8. // Description:
  9. // The entry point for the application that launches unattended
  10. // installation of the cluster. This application parses input parameters,
  11. // CoCreates the Configuration Wizard Component, passes the parsed
  12. // parameters and invokes the Wizard. The Wizard may or may not show any
  13. // UI depending on swithes and the (in)availability of information.
  14. //
  15. // Maintained By:
  16. // Geoffrey Pease (GPease) 22-JAN-2000
  17. // Vijay Vasu (VVasu) 22-JAN-2000
  18. // Galen Barbee (GalenB) 22-JAN-2000
  19. // Cristian Scutaru (CScutaru) 22-JAN-2000
  20. // David Potter (DavidP) 22-JAN-2000
  21. //
  22. //////////////////////////////////////////////////////////////////////////////
  23. #include "pch.h"
  24. #include <initguid.h>
  25. #include <guids.h>
  26. DEFINE_MODULE( "CLUSCFG" )
  27. HINSTANCE g_hInstance;
  28. LONG g_cObjects;
  29. //////////////////////////////////////////////////////////////////////////////
  30. //
  31. // int
  32. // _cdecl
  33. // main( void )
  34. //
  35. // Description:
  36. // Program entrance.
  37. //
  38. // Arguments:
  39. // None.
  40. //
  41. // Return Value:
  42. // S_OK (0) - Success.
  43. // other HRESULTs - Error.
  44. //
  45. //////////////////////////////////////////////////////////////////////////////
  46. int
  47. _cdecl
  48. main( void )
  49. {
  50. HRESULT hr;
  51. TraceInitializeProcess( NULL, 0 );
  52. hr = THR( CoInitialize( NULL ) );
  53. if ( FAILED( hr ) )
  54. goto Cleanup;
  55. Cleanup:
  56. CoUninitialize( );
  57. TraceTerminateProcess( NULL, 0 );
  58. return 0;
  59. }