CommandLineToArgvW

[DllImport("shell32.dll")]
public static extern IntPtr CommandLineToArgvW(
   [MarshalAs(UnmanagedType.LPWStr)] string lpCmdLine,
   out int pNumArgs
);

Microsoft documentation: Link

Last updated