# OleCreateLinkEx

```csharp
[DllImport("ole32.dll", SetLastError = true)]
public static extern int OleCreateLinkEx(
   IOleClientSite pClientSite,
   [MarshalAs(UnmanagedType.LPStruct)] Guid rclsid,
   uint renderopt,
   ref FORMATETC pFormatEtc,
   IOleClientSite pClientSite2,
   IStorage pStg,
   out object ppvObj,
   uint dwFlags,
   uint dwAdvf,
   uint dwReserved,
   uint[] pdwConnection,
   IAdviseSink[] pAdvSink
);
```

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