warning C28638: function delayload stub is missing a matching declaration
Many delay-load stubs can be implemented without including the header file where the functions are declared. Over time, the function signatures might change without updating all the corresponding delay-load stubs. If the delay-load stubs have the wrong signature, it leads to an access violation.
Typically, the #include <header.h> that contains the function prototype for the delay-load stub being implemented is missing. A common mistake is to include the public header file while implementing delay-load stubs for both public and private ordinals (consequently omitting the private ones). The fix is to include the appropriate header file for the delay-load stub being implemented.