# CoGetStandardMarshal

```csharp
[DllImport("ole32.dll", SetLastError = true)]
public static extern int CoGetStandardMarshal(
   ref Guid riid,
   IUnknown pUnk,
   uint dwDestContext,
   IntPtr pvDestContext,
   uint mshlflags,
   out IntPtr ppMarshal
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-cogetstandardmarshal)
