C# read and write dynamic library of portable devices (such as mobile phones)