I'm a newbie. I'm working in WinCE7 SDHC driver. During initialization, certain functions are assigned to a structure variable as handlers. Those functions are automatically called. That is, I'm not able to trace out which function calls it.
I referred this stackoverflow link. Still, I'd like to know, how to trace, which handler is called when. Please guide me.
typedef struct _SDCARD_HC_CONTEXT {
DWORD dwVersion; // version of context structure
WCHAR HostControllerName[SD_HC_MAX_NAME_LENGTH]; // friendly name
CRITICAL_SECTION HCCritSection; // host controller critical section
PSD_BUS_REQUEST_HANDLER pBusRequestHandler; // bus request handler
PSD_GET_SET_SLOT_OPTION pSlotOptionHandler; // slot option handler
PSD_CANCEL_REQUEST_HANDLER pCancelIOHandler; // cancel request handler
PSD_INITIALIZE_CONTROLLER pInitHandler; // init handler
PSD_DEINITIALIZE_CONTROLLER pDeinitHandler; // deinit handler
PVOID pHCSpecificContext; // host controller specific context
PSD_CHANGE_CARD_POWER pChangeCardPowerHandler; // Pointer to power control handler
} SDCARD_HC_CONTEXT, *PSDCARD_HC_CONTEXT;
This is the structure to which functions are assigned.