com - What is the C# data type for WINOLEAPI? -


I am using some basic methods to bind objects that are running in a COM-based application. One way is the CreateBindCtx, which has the following signature (from MSDN)

  WINOLEAPI CreateBindCtx (DWORD Reserved, LPBC FAR * PPBC)  

I define the wrapper Done

  public static extern zero CreateBindCtx (int reserved, outside IBindCtx PPBC);  

But FXCop is complaining about the zero return type. What should be the Net / C # data type? Fixed extern int CreateBindCtx (UIT reserved, IBindCtx PPBC out);

Best Places for Pinwok Info


Comments