Esempio n. 1
0
        /// <summary>
        /// Requests the specified request type with extended structure.
        /// </summary>
        /// <param name="client">The DbgEng.dll Advanced interface.</param>
        /// <param name="requestType">Type of the request.</param>
        /// <param name="request">The request.</param>
        /// <param name="extended">The extended string.</param>
        public static EXT_TYPED_DATA RequestExtended(this IDebugAdvanced3 client, DebugRequest requestType, EXT_TYPED_DATA request, string extended)
        {
            using (var requestNative = new MarshalStructureExtendedWithAnsiString<EXT_TYPED_DATA>())
            {
                uint outSize;

                requestNative.Extended = extended;
                requestNative.Structure = request;
                client.Request((uint)requestType, requestNative.Pointer, requestNative.USize, requestNative.Pointer, requestNative.USize, out outSize);
                return requestNative.Structure;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Requests the specified request type with extended structure.
        /// </summary>
        /// <param name="client">The DbgEng.dll Advanced interface.</param>
        /// <param name="requestType">Type of the request.</param>
        /// <param name="request">The request.</param>
        /// <param name="extended">The extended string.</param>
        public static EXT_TYPED_DATA RequestExtended(this IDebugAdvanced3 client, DebugRequest requestType, EXT_TYPED_DATA request, string extended)
        {
            using (var requestNative = new MarshalStructureExtendedWithAnsiString <EXT_TYPED_DATA>())
            {
                uint outSize;

                requestNative.Extended  = extended;
                requestNative.Structure = request;
                client.Request(requestType, requestNative.Pointer, requestNative.USize, requestNative.Pointer, requestNative.USize, out outSize);
                return(requestNative.Structure);
            }
        }