public static int Main(String[] args)
        {
            // Parse the command line arguments
            if (!ParseArguments(args, ref s_Options))
            {
                return(ErrorReturnCode);
            }

            // If we are not in silent mode then print the logo
            if (!s_Options.m_bSilentMode)
            {
                PrintLogo();
            }

            try
            {
                GenMan32Code.Run(s_Options);
                ReportResult();
                return(SuccessReturnCode);
            }
            catch (Exception e)
            {
                Console.WriteLine("Error: {0}", e.Message);
                return(ErrorReturnCode);
            }
        }
        public Object ResolveRef(Assembly asm)
        {
            UCOMITypeLib rslt = null;

            Module[] aModule = asm.GetLoadedModules();
            String   asmPath = Path.GetDirectoryName(aModule[0].FullyQualifiedName);

            // If the typelib name is null then create it from the assembly name.
            String FullyQualifiedTypeLibName = Path.Combine(asmPath, asm.GetName().Name) + ".tlb.tmp";

            // Export the typelib for the module.
            rslt = GenMan32Code.GenerateTypeLib(asm, ref FullyQualifiedTypeLibName);

            return(rslt);
        }
 internal UCOMITypeLib GenerateTypeLib(String strAssemblyName, ref String strTlbName)
 {
     return(GenMan32Code.GenerateTypeLib(strAssemblyName, ref strTlbName));
 }
 internal void GenerateWin32ManifestFile(String strAssemblyManifestFileName, String strAssemblyName, bool bGenerateTypeLib, String strReferenceFiles)
 {
     GenMan32Code.GenerateWin32ManifestFile(strAssemblyManifestFileName, strAssemblyName, bGenerateTypeLib, strReferenceFiles);
 }