PRB: Incorrect Type Name Causes Problems Using Resource Types

Last reviewed: March 18, 1998
Article ID: Q182658
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows NT Server Enterprise Edition version 4.0

SYMPTOMS

If you register a resource type DLL with the cluster using a different type name than you specify in the DLL itself, you might experience one or more of the following problems:

  • The Cluster Administrator reports that an error occurred trying to read the properties of the resource type.
  • The Administrator extension for the DLL cannot be registered because the type name is not found.

Possible error messages include:

   The system cannot find the file specified.

   -or-

   The data is invalid.

CAUSE

Because a resource type DLL can support more than one resource type, the name of the resource type is supplied to the DLL upon startup. If the name is not recognized, you may write the DLL so that the startup will fail.

In the case of the extension DLL, it looks explicitly for the type name supplied when the DLL was created.

RESOLUTION

Make sure the type name used to register a resource type and the type name used internally in the DLL match.

STATUS

This behavior is by design.

Keywords          : NtwkMisc kbcluster
Version           : WINNT:4.0
Platform          : winnt
Issue type        : kbprb
Solution Type     : kbnofix


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 18, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.