These files were created so that multiple programs (eg. Dynamic Link Library files, like PhotoViewer.dll, are essentially a 'guide book' that stores information and instructions for executable (EXE) files - like sapisvr.exe - to follow.
PhotoViewer.dll is considered a type of Dynamic Link Library (DLL) file.