GetEntryPoint() static private méthode

static private GetEntryPoint ( ActivationContext activationContext, string &fileName, string &parameters ) : void
activationContext System.ActivationContext
fileName string
parameters string
Résultat void
        // Token: 0x06004FF6 RID: 20470 RVA: 0x001195A8 File Offset: 0x001177A8
        internal static string GetEntryPointFullPath(ActivationContext activationContext)
        {
            string text;
            string text2;

            CmsUtils.GetEntryPoint(activationContext, out text, out text2);
            if (!string.IsNullOrEmpty(text))
            {
                string text3 = activationContext.ApplicationDirectory;
                if (text3 == null || text3.Length == 0)
                {
                    text3 = Directory.UnsafeGetCurrentDirectory();
                }
                text = Path.Combine(text3, text);
            }
            return(text);
        }
Exemple #2
0
        internal static string GetEntryPointFullPath(ActivationContext activationContext)
        {
            string fileName;
            string parameters;

            CmsUtils.GetEntryPoint(activationContext, out fileName, out parameters);
            if (!string.IsNullOrEmpty(fileName))
            {
                string path1 = activationContext.ApplicationDirectory;
                if (path1 == null || path1.Length == 0)
                {
                    StringBuilder lpBuffer = new StringBuilder(261);
                    if (Win32Native.GetCurrentDirectory(lpBuffer.Capacity, lpBuffer) == 0)
                    {
                        __Error.WinIOError();
                    }
                    path1 = lpBuffer.ToString();
                }
                fileName = Path.Combine(path1, fileName);
            }
            return(fileName);
        }