[Solved] How come GetDefaultCommConfig fails on windows 10

This had been a bug in usbser.sys and was fixed with the Windows 10 Update KB3124262 from 27.01.2016. The Microsoft employee explained: The COM port name in the HKLM\HARDWARE\DEVICEMAP\SERIALCOMM registry is not NULL terminated. Related discussion on MSDN Because of Windows 10’s update policies this issue should not appear in the future anymore. solved How … Read more

[Solved] How can i extract the info between ” ” ? C#

Try this demo, put it in a Main method of a console application (it uses Regex so you have to add line “using System.Text.RegularExpressions;”): string input = “AT+CMGL=\”ALL\”\n+CMGL: 0,\”REC READ\”,\”+40728072005\”,,\”12/06/29,13:04:26+12\”\npassword,1,ON”; var matches = Regex.Matches( input, @”\””(?<msisdn>\+\d*)\””,.*,\””(?<date>\d{2}\/\d{2}/\d{2},\d{2}:\d{2}:\d{2}\+\d{2})\””.*\n+(?<passwd>[^,]*),(?<itemno>\d*),(?<command>\w*)” , RegexOptions.Multiline); foreach (Match m in matches) { Console.WriteLine(m.Groups[“msisdn”].Value); Console.WriteLine(m.Groups[“date”].Value); Console.WriteLine(m.Groups[“passwd”].Value); Console.WriteLine(m.Groups[“itemno”].Value); Console.WriteLine(m.Groups[“command”].Value); } Console.ReadKey(); Basically, regular expression searches … Read more