Guest User

Untitled

a guest
Aug 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Representing IUnknown In Managed C
  2. public static IntPtr GetIUnknownForObject(Object o);
  3.  
  4. long MY_COMInterface(IntPtr hDevice,
  5. [Out, MarshalAs(UnmanagedType.Interface)]
  6. out object pUnknown);
  7.  
  8. ref object pUnknown
  9.  
  10. MyObject o = pUnknown as MyObject
Add Comment
Please, Sign In to add comment