240楼#
发布于:2003-11-13 13:38
[quote][quote]是不是太无聊了?4 [/quote]5 [/quote] |
|
241楼#
发布于:2003-11-13 13:55
har *buf, int max, const char *fmt, va_list ap)
{ char *p = buf; int len = _vsnprintf(p, max, fmt, ap); if (len < 0) return -1; p += len, max -= len; return p - buf; } int dprint( const char *fmt, ...) { #ifdef _DEBUG va_list ap; va_start(ap, fmt); char buf[MAX_BUFF], *p = buf; int len, max = sizeof buf - 1; len = print_time(p, max); |
|
242楼#
发布于:2003-11-13 13:56
len = print_time(p, max);
if (len < 0) goto out; p += len, max -= len; len = print_message(p, max, fmt, ap); if (len < 0) goto out; p += len, max -= len; if (*(p - 1) != \'\\n\') /* p - 1 always valid */ *p++ = \'\\n\'; |
|
243楼#
发布于:2003-11-13 14:06
va_end(ap);
out: return len; #else return 0; |
|
244楼#
发布于:2003-11-13 14:06
\"Apr\",
\"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\", }; static const char format[] = \"%.3s%3d %.2d:%.2d:%.2d \"; static __inline int print_time(char *buf, int max) { SYSTEMTIME tm; |
|
245楼#
发布于:2003-11-13 14:26
har *buf, int max, const char *fmt, va_list ap) |
|
246楼#
发布于:2003-11-13 15:22
大老黑又开始灌纯净水了 :D :D :D :D
|
|
247楼#
发布于:2003-11-13 15:52
\"Apr\", |
|
248楼#
发布于:2003-11-13 15:53
must always return NDIS_STATUS_SUCCESS to an OID_PNP_SET_POWER request.
An OID_PNP_SET_POWER request may or may not be preceded by an OID_PNP_QUERY_POWER request. Before a miniport returns NDIS_STATUS_SUCCESS, it must fully prepare the NIC hardware for the indicated network device power state. The task performed by the miniport to accomplish this are device-dependent. Before a NIC transitions to the D3 state, its miniport must turn-off everything under the miniport\'s control: interrupts must disabled, timers must be cancelled, etc. A miniport cannot access the NIC hardware after the NIC has been set to the D3 state by the bus driver. An intermediate driver must always return NDIS_STATUS_SUCCESS to a query of OID_PNP_SET_POWER. An intermediate driver should never propagate an OID_PNP_SET_POWER request to an underlying miniport |
|
249楼#
发布于:2003-11-13 15:54
such a device should request device state D3 and save context, but the device\'s drivers must not power off the device.
If the system IRP requests PowerSystemShutdown, the driver should check the POWER_ACTION value at Irp->Parameters.Power.ShutdownType for more information on the reason for the state change. See System Power Actions for more information. The device power policy owner must send a device set-power IRP for each system set-power IRP, even if the device is already in the correct device state. If the device has previously suspended operations in response to a query-power IRP, the set-power IRP notifies it to stop queuing IRPs and return to normal operation for its current power state. The only exception occurs when the device is in the D3 state; in this case, the driver |
|
250楼#
发布于:2003-11-13 15:56
大老黑又开始灌纯净水了 :D :D :D :D |
|
251楼#
发布于:2003-11-13 15:59
state the underlying device can support for each system state.
When choosing a specific state from this range, consider the following guidelines: Most devices enter the D0 state when the system enters the S0 state. Most devices enter the D3 state when the system enters any sleeping state. However, a device that is enabled for wake-up might be required to enter D1 or D2 instead, if it supports such states. See Reporting |
|
252楼#
发布于:2003-11-13 16:04
附件: 如果是图片则显示
不使用smileys?(选择此项将不把 :) :( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的个人签名将会附在贴子下方) 是否关闭BBCode功能?(选择此项BBCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择此项当有人回复这个主题时,系统会通过email通知你) |
|
253楼#
发布于:2003-11-13 16:05
附件: 如果是图片则显示
不使用smileys?(选择此项将不把 :) :( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的个人签名将会附在贴子下方) 是否关闭BBCode功能?(选择此项BBCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择项当有人回复这个主题时,系统会通过email通知你) |
|
254楼#
发布于:2003-11-13 16:05
附件: 如果是图片则显示
不使用smileys(选择此项将不把 :) :( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的个人签名将会附在贴子下方) 是否关闭BBCode功能?(选择此项BBCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择此项当有人回复这个主题时,系统会通过email通知你) |
|
255楼#
发布于:2003-11-13 16:06
附件: 如果是图片则显示
不使用smileys(选择此项将不把 ::( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的个人签名将会附在贴子下方) 是否关闭BBCode功能?(选择此项BBCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择此项当有人回复这个主题时,系统会通过email通知你) |
|
256楼#
发布于:2003-11-13 16:07
附件: 如果是图片则显示
不使用smileys?(选择此项将不把 :) :( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的个人签名将会附在贴子下方) 是否关闭BBCode功能?(选择此项BBCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择此项当有人回复这主题时,系统会通过email通知你) |
|
257楼#
发布于:2003-11-13 16:07
附件: 如果是图片则显示
不使用smileys?(选择此项将不把 :) :( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的个人签名将会附在贴子下方) 是否关闭BBCode功能?(选择此项BCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择项当有人复这个主题时,系统会通过email通知你) |
|
258楼#
发布于:2003-11-13 16:08
附件: 如果是图片则显示
不使用smileys?(选择此项将不把 :) :( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的个人签名将会附在贴子下方) 是否关闭BBCode功能?(选择此项BBCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择此项当有人回复这主题,系统会通过email通知你) |
|
259楼#
发布于:2003-11-13 16:09
附件: 如果是图片则显示
不使用smileys(选择此项将不把 ::( ....等表情代码转换为相应图像) 使用个人签名?(选择此项你的人签名会附在贴子下方) 是否关闭BBCode功能?(选择此项BBCode功能将关闭,如果你对此不太了解的话请阅读帮助) 使用email通知?(选择此项当有人回复这个主题时,系统会通过email通知你) |
|