[DllImport("Kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)][return: MarshalAs(UnmanagedType.U4)] public static extern int lstrlen(string lpString );
Microsoft documentation: Link
Last updated 1 year ago