Пример #1
0
        /// <summary>
        /// Adds a new debug application. A return value indicates whether the adding succeeded.
        /// </summary>
        /// <param name="applicationWrapper">Wrapper for debug application</param>
        /// <param name="cookie">An engine-defined cookie</param>
        /// <returns>true if the debug application was added successfully; otherwise, false.</returns>
        public bool TryAddApplication(DebugApplicationWrapper applicationWrapper, out uint cookie)
        {
            uint result;

            if (_is64Bit)
            {
                IDebugApplication64 application64 = applicationWrapper.DebugApplication64;
                result = _processDebugManager64.AddApplication(application64, out cookie);
            }
            else
            {
                IDebugApplication32 application32 = applicationWrapper.DebugApplication32;
                result = _processDebugManager32.AddApplication(application32, out cookie);
            }

            bool isSucceeded = ComHelpers.HResult.Succeeded(result);

            return(isSucceeded);
        }
Пример #2
0
 public override bool TryAddApplication(DebugApplicationWrapper applicationWrapper, out uint cookie)
 {
     return(RawCOMHelpers.HResult.Succeeded(processDebugManager.AddApplication(DebugApplicationWrapper32.Unwrap(applicationWrapper), out cookie)));
 }
Пример #3
0
 public override void AddApplication(DebugApplicationWrapper applicationWrapper, out uint cookie)
 {
     processDebugManager.AddApplication(DebugApplicationWrapper32.Unwrap(applicationWrapper), out cookie);
 }