SYMPTOMS
The location of a dynamic-link library (DLL) is specified in the Path
environment variable. In the Path environment variable, if a network path
is defined before the path that contains the DLL, the following problem can
occur.
For example, if you use the following path command, where "S:" is a network
drive:
Path=S:\;D:\Mydll or Path=\\franki\public;d:\Mydll
The process which loads the DLL does not have security access to the
network drive specified in the Path environment variable. When the
operating system searches for the DLL and comes across the inaccessible
network drive, the search ends instead of moving on to the next specified
path in the Path environment variable.
If the application is implicitly loading the DLL, you get the following
error message:
The application failed to initialize properly (0xc0000022). Click on
OK to terminate the application.
If the DLL is being explicitly loaded via the LoadLibrary or LoadLibraryEx
API call, the call fails with an error code 5 or Access denied.