阅读:2258回复:3
COMMENT_ONLY问题,谢谢
#ifdef _COMMENT_ONLY
// The following member functions are actually defined by the // a DEVMEMBER_xxx or MEMBER_xxx macro (such as DEVMEMBER_DISPATCHERS). // The macro __COMMENT_ONLY never gets defined. These comment-only // definitions simply allow easy navigation to the functions within // the Developer Studio using the class browser. NTSTATUS __stdcall ReadThermoComplete(KIrp I, THERMO_READ_COMPLETION_INFO* pContext); // COMMENT_ONLY virtual NTSTATUS CleanUp(KIrp I); // COMMENT_ONLY virtual NTSTATUS Create(KIrp I); // COMMENT_ONLY virtual NTSTATUS Close(KIrp I); // COMMENT_ONLY virtual NTSTATUS DeviceControl(KIrp I); // COMMENT_ONLY virtual NTSTATUS SystemControl(KIrp I); // COMMENT_ONLY #endif 请问这儿定义的函数何时用???谢谢 |
|
沙发#
发布于:2005-04-19 18:42
何时调用。。?。。
有系统调用的吧,,,分别对应不同的,,用户请求啊。。 比如用户调用creatfile的时候。。。对应就要调用驱动中的 virtual NTSTATUS Create(KIrp I);了,,其余的函数,,一样的道理 |
|
|
板凳#
发布于:2005-04-19 20:05
谢谢,为什么注释中有The macro __COMMENT_ONLY never gets defined??
|
|
地板#
发布于:2005-04-21 17:49
NTSTATUS __stdcall ReadThermoComplete(KIrp I, THERMO_READ_COMPLETION_INFO* pContext);
此函数请问何时调用 |
|