Monday, October 5, 2009

Who calls all Stream interface function!!! [WinCE]

Hello Developers,
Since so many days, I was thinking that it will be better if everybody know, which function calls all stream interface function.. Like xxx_Init or whatever.

Find out the crisp form of information.

1. XXX_Init - Called by ActivateDeviceEx. If it is BuiltIn driver then BusEnum will call it.
2. XXX_Open - Called by CreateFile which in turn return a handle for the Handle.
3. XXX_Close - Called by CloseHandle.
4. XXX_Read - Called by ReadFile function
5. XXX_Write - Called by WriteFile
6. XXX_IOControl - Called by DeviceIoControl
7. XXX_Seek - Called by SetFilePointer
8. DllEntry - Called by LoadLibrary.
9. XXX_DeInit - DeactivateDevice. Also check for XXX_PreDeinit.
10. XXX_PreClose - Same as case of XXX_PreDeinit
11. XXX_PowerUp - Called by DevMgrPowerOffHandler by Device manager. In turn, OS kernel.

12. XXX_PowerDown - Called by DevMgrPowerOffHandler by Device manager. In turn, OS kernel.



No comments:

Post a Comment

Please add your valuable feedback and suggestion...

Note: Only a member of this blog may post a comment.