引用 21 楼 paul_chao 的回复:
CreateFile 会去呼叫到 XXX_Open, 并将 XXX_Init 的传回值当做第一个参数传给 XXX_Open.
所以, lz 还是要在 XXX_Init 中去判断该值并记录, 并在 XXX_Open 中取用.
Paul, Chao @ Techware
哦,原来如此。
XXX_Open (Device Manager) This function opens a device for reading, writing, or both. An application indirectly invokes this function when it calls CreateFile to obtain a handle to a device.
This function is required to access the device with CreateFile.
PB帮助有说明了。
3Q