The XXX_Init function returns a separate handle each time it executes. If your steam interface supports multiple instances of the same type of device file name, you only need to expect one call to the XXX_Init function for each instance of the device file name. When the user starts using a device, such as inserting a PC Card, Device Manager calls this function to initialize the device. Remarksĭevice Manager calls this function as a result of a call to the ActivateDeviceEx function. This handle is passed to the XXX_Open (Device Manager), XXX_PowerDown (Device Manager), XXX_PowerUp (Device Manager), and XXX_Deinit (Device Manager) functions. Returns a handle to the device context created if successful. In addition, any pointers referenced through dwBusContext must be remapped with the MapCallerPtr function before they can be dereferenced. The XXX_Init function is responsible for performing all protection checking.
This pointer, if used, has only been mapped again as it passes through the protected server library (PSL). If this driver was loaded through legacy mechanisms, then dwBusContext is zero. Potentially process-mapped pointer passed as the fourth parameter to ActivateDeviceEx. Pointer to a string containing the registry path to the active key for the stream interface driver.
DWORDXXX_Init(LPCTSTR pContext,DWORD dwBusContext)