这一段我翻译的时候有一些问题,自己也没搞清楚原意是什么,请进来看看(分不是问题)
pStr contains an ASCII string with the names of the adapters separated by a single ASCII "\0", a double "\0", followed by the descriptions of the adapters separated by a single ASCII "\0". The string is terminated by a double "\0". In Windows NTx, pStr contains the names of the adapters, in UNICODE format, separated by a single UNICODE "\0" (i.e. 2 ASCII "\0"), a double UNICODE "\0", followed by the descriptions of the adapters, in ASCII format, separated by a single ASCII "\0". The string is terminated by a double ASCII "\0".
这是在讲win9X和winNTx两种类型的系统中存放适配器名和描述信息的不同之处
但我始终没读懂,所以翻译的时候也拿不准,但是不敢贸然下结论,请英文高手赐教
问题点数:100、回复次数:4Top
1 楼xuying()回复于 2002-06-08 22:59:39 得分 100
pStr中包含了一个ASCII字符串,存储适配器的名字,每个名字间用一个ascII字符'\0',2个ascii字符'\0'分隔,名字后面是对适配器的描述,也用'\0'分隔。这个字符串以2个'\0'结尾。
在Windows NTx中, pStr中包含了unicode格式的适配器的名字,以一个unicode字符'\0'(也就是2个ascii字符'\0'),2个unicode字符'\0'分隔,后面是ascii格式的适配器的描述,以一个ascii字符'\0'分隔。字符串以两个ascii字符'\0'结束。Top
2 楼Yokishiro(狂狼啸月)回复于 2002-06-08 23:06:27 得分 0
xuying()
我就是在“每个名字间用一个ascII字符'\0',2个ascii字符'\0'分隔,”有些迷茫
你能具个例子吗?
比如:三个适配器
adapter a \0 ...
这样我想能更清楚的了解存放的格式Top
3 楼xuying()回复于 2002-06-08 23:19:34 得分 0
以ascii字符为例:
有2个适配器aa(descA), bb(descB)
pStr中应该是: aa\0bb\0\0\0descA\0descB\0\0
也就是说,先把存名字,每个名字间以\0分隔(就像一个字符串结束),然后是\0\0,表示后面的是说明了。说明也是以\0分隔,最后以2个\0结束。Top
4 楼xuying()回复于 2002-06-08 23:20:44 得分 0
上面的pStr更正一下,应该是
aa\0bb\0\0descA\0descB\0\0
Top




