-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCom.cs
More file actions
30 lines (19 loc) · 668 Bytes
/
Com.cs
File metadata and controls
30 lines (19 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Runtime.InteropServices;
namespace Projzo.Interop
{
[Flags]
public enum ClassContext : uint
{
InprocServer = 0x1,
InprocHandler = 0x2,
Inproc = InprocServer | InprocHandler,
LocalServer = 0x4
}
public class Com
{
public static Guid IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046");
[DllImport("ole32.dll", CallingConvention = CallingConvention.StdCall)]
public static extern HResult CoCreateInstance(ref Guid rclsid, IntPtr pUnkOuter, ClassContext dwClsContext, ref Guid riid, out IntPtr ppv);
}
}