Exemple #1
0
 public int CreateInstance(Guid clsid, IntPtr punkOuterIUnknown, ref Guid riid, uint dwFlags, out IntPtr ppvObj) {
     if (clsid == typeof(Microsoft.VisualStudio.ProjectAggregator.CProjectAggregatorClass).GUID) {
         var res = new ProjectAggregator();
         ppvObj = Marshal.GetIUnknownForObject(res);
         return VSConstants.S_OK;
     }
     throw new NotImplementedException();
 }
Exemple #2
0
 public int CreateInstance(Guid clsid, IntPtr punkOuterIUnknown, ref Guid riid, uint dwFlags, out IntPtr ppvObj)
 {
     if (clsid == typeof(Microsoft.VisualStudio.ProjectAggregator.CProjectAggregatorClass).GUID)
     {
         var res = new ProjectAggregator();
         ppvObj = Marshal.GetIUnknownForObject(res);
         return(VSConstants.S_OK);
     }
     throw new NotImplementedException();
 }