Figure 1   HookImportedFunctionsByName

Function Description
hModule The module where the imports will be hooked.
szImportMod The name of the module whose functions will be imported.
uiCount The number of functions to hook. This is the size of the paHookArray and paOrigFuncs arrays.
paHookArray The array of function descriptor structures that list which functions to hook. The array does not have to be in szFunc name order. Also, if a particular pProc is NULL, then that item will just be skipped. This makes it much easier for debugging. It's wise to keep the array sorted in function name order so better searching can be implemented in the future.
paOrigFuncs The array of original addresses that were hooked. If a function was not hooked, then that item index will be NULL.
puiHooked Returns the number of functions hooked out of paHookArray.