[DllImport("Kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)][return: MarshalAs(UnmanagedType.SysInt)] public static extern IntPtr lstrcpyn(StringBuilder lpString1, string lpString2, int iMaxLength );
Microsoft documentation: Link
Last updated 1 year ago