Esempio n. 1
0
        public static bool TryCreate(out ProcessDebugManagerWrapper wrapper)
        {
            if (Environment.Is64BitProcess)
            {
                return(ProcessDebugManagerWrapper64.TryCreate(out wrapper));
            }

            return(ProcessDebugManagerWrapper32.TryCreate(out wrapper));
        }
Esempio n. 2
0
        public new static bool TryCreate(out ProcessDebugManagerWrapper wrapper)
        {
            if (MiscHelpers.TryCreateCOMObject("ProcessDebugManager", null, out IProcessDebugManager32 processDebugManager))
            {
                wrapper = new ProcessDebugManagerWrapper32(processDebugManager);
                return(true);
            }

            wrapper = null;
            return(false);
        }