GetObject

[DllImport("coredll.dll", SetLastError = true)]
public static extern int GetObject(
   IntPtr hgdiobj,
   int cbBuffer,
   IntPtr lpvObject
);

Microsoft documentation: Link

Last updated