• R/O
  • SSH


File Info

Rev. 12839
Größe 992 Bytes
Zeit 2008-05-02 03:05:15
Autor stefankueng
Log Message

Patch from Roger Lipscombe:
* Added the path list and common root to the COM interface; tweaked the C# definition to match.
* Implemented ATL sample that pretty much does what the original CHooks::IssueTracker code did.


using System;
using System.Runtime.InteropServices;

namespace Interop.BugTraqProvider
    [ComVisible(true), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("298B927C-7220-423C-B7B4-6E241F00CD93")]
    public interface IBugTraqProvider
        [return: MarshalAs(UnmanagedType.VariantBool)]
        bool ValidateParameters(IntPtr hParentWnd,
            [MarshalAs(UnmanagedType.BStr)] string parameters);

        [return: MarshalAs(UnmanagedType.BStr)]
        string GetLinkText(IntPtr hParentWnd,
            [MarshalAs(UnmanagedType.BStr)] string parameters);

        [return: MarshalAs(UnmanagedType.BStr)]
        string GetCommitMessage(IntPtr hParentWnd,
            [MarshalAs(UnmanagedType.BStr)] string parameters,
            [MarshalAs(UnmanagedType.BStr)] string commonRoot,
            [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=VarEnum.VT_BSTR)] string[] pathList,
            [MarshalAs(UnmanagedType.BStr)] string originalMessage);
Show on old repository browser