共用方式為


2.2.3 fModuleStatus

The fModuleStatus enumeration represents detailed status results from processing a file as a module, as used in the IRegister::RegisterModule (section 3.1.4.10.1), IRegister2::RegisterModule2 (section 3.1.4.11.4), and IImport::ImportFromFile (section 3.1.4.12.1) methods. A value of this type is specified to be a combination of zero or more of the following flags.

Flag

Description

fMODULE_LOADED

0x00000001

The file is a dynamically linked library and was successfully loaded by the server.

fMODULE_INSTANTIATE

0x00000002

The file is a dynamically linked library that has an implementation-defined entry point for instantiating components.<31>

fMODULE_SUPPORTCODE

0x00000004

The file contains implementation-defined support code for communication between components.<32>

fMODULE_CONTAINSCOMP

0x00000008

The file was recognized as a module (contains one or more components).

fMODULE_TYPELIB

0x00000010

The file was recognized as containing a "type library", an implementation-specific format for component metadata.<33>

fMODULE_SELFREG

0x00000020

The file is a dynamically linked library that has an entry point to register its own components.<34>

fMODULE_SELFUNREG

0x00000040

The file is a dynamically linked library that has an entry point to unregister its own components.<35>

fMODULE_LOADFAILED

0x00000080

The file appears to be a dynamically linked library, but the server failed to load it.

fMODULE_DOESNOTEXIST

0x00000100

Either there is no file at the path specified or the file is inaccessible.

fMODULE_ALREADYINSTALLED

0x00000200

The file was recognized as a module (contains one or more components) but the components that it contains are already registered.

fMODULE_BADTYPELIB

0x00000400

The file appears to contain a type library, but it is malformed.

fMODULE_CUSTOMSUPPORTED

0x00002000

The file contains a type library that specifies a custom mechanism to register components, and this mechanism is supported by the server.

fMODULE_CUSTOMUNSUPPORTED

0x00004000

The file contains a type library that specifies a custom mechanism to register components, but this mechanism is not supported by the server.

fMODULE_TYPELIBFAILED

0x00008000

An attempt to register the module by using the metadata in its type library failed.

fMODULE_SELFREGFAILED

0x00010000

An attempt to register the module by using its self-registration entry point failed.

fMODULE_CUSTOMFAILED

0x00020000

An attempt to register the module by using a custom mechanism failed.