求把一段C#代码,翻译成Delphi
[DllImport("mmtools.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void WxSetDeviceInfo(int pWorker, tagDeviceInfo[] pDeviceInfo);
public struct tagDeviceInfo
{
public string ostype;
public string devicebrand;
}
List<tagDeviceInfo> list = new List<tagDeviceInfo>();
tagDeviceInfo dev = new tagDeviceInfo();
list.Add(dev);
WxSetDeviceInfo(worker, list.ToArray());