iReturn = Api.GetInformation(hWIM,ref XMLInfo, ref iLength); String XMLStr = Marshal.PtrToStringUni(XMLInfo);