The loading and initialization of the mini-VDD is done very early in the boot sequence of Windows 95 at the Device_Init stage of VxD initialization. Your mini-VDD must implement the function MiniVDD_Dynamic_Init. MiniVDD_Dynamic_Init is called as soon as the mini-VDD is dynamically loaded by the Windows 95 Plug & Play subsystem.
One of the main tasks that the function MiniVDD_Dynamic_Init must perform is hooking out the mini-VDD functions. To hook out the functions, first get the 32 bit flat address of the dispatch table from the Main VDD via the VxDCall VDD_Get_Mini_Dispatch_Table. After obtaining the address of the dispatch table, use the MiniVDDDispatch macro found in MINIVDD.INC to hook out the functions that you need. Refer to any of the example mini-VDDs to see how to call VDD_Get_Mini_Dispatch_Table and how to hook out functions.
There are several other tasks that MiniVDD_Dynamic_Init must perform. See MiniVDD_Dynamic_Init for complete details.