Article ID: 827659 - View products that this article applies to.
When you try to register a dynamic-link library (or DLL, or .dll file) by using the Regsrv32.exe command-line tool, the DLL is not registered, and you may receive the following error message:
Note This behavior does not occur in Windows NT 4.0 or Windows 2000.
DllRegisterServer in file_name.dll failed.
Return code was: 0x80070005
This behavior may occur if you try to register a DLL by using Regsrv32 while you are logged on using an account that does not have administrative credentials, such as an account that is a member of the standard users group. An account that does not have administrative credentials cannot write to the registry or change files in the System32 folder.
The behavior occurs because Windows XP and Windows Server 2003 use a more restrictive security scheme than earlier versions of Windows use. This scheme prevents standard users from registering DLLs.
Note Because of this behavior, standard users may not be able to run programs that self-register DLLs by using standard user's ID.
To resolve this behavior, log on by using an administrator account, and then register the DLL.
You can register a DLL by using an account that does not have administrative credentials as long as the DLL does not write to the registry or change files in the System32 folder.
Article ID: 827659 - Last Review: September 11, 2011 - Revision: 3.0
Contact us for more help