Compartir a través de


CAtlModule::UpdateRegistryFromResourceS

Runs the script contained in a specified resource to register or unregister an object. This method statically links to the ATL Registry Component.

HRESULT WINAPI UpdateRegistryFromResourceS(
   UINT nResID,
   BOOL bRegister,
   struct _ATL_REGMAP_ENTRY* pMapEntries = NULL 
) throw( );
HRESULT WINAPI UpdateRegistryFromResourceS(
   LPCTSTR lpszRes,
   BOOL bRegister,
   struct _ATL_REGMAP_ENTRY* pMapEntries = NULL 
) throw( );

Parameters

  • nResID
    A resource ID.

  • lpszRes
    A resource name.

  • bRegister
    Indicates whether the resource script should be registered.

  • pMapEntries
    A pointer to the replacement map storing values associated with the script's replaceable parameters. ATL automatically uses %MODULE%. To use additional replaceable parameters, see CAtlModule::AddCommonRGSReplacements. Otherwise, use the NULL default value.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

Similar to CAtlModule::UpdateRegistryFromResourceD except CAtlModule::UpdateRegistryFromResourceS creates a static link to the ATL Registry Component (Registrar).

Requirements

Header: atlbase.h

See Also

Reference

CAtlModule Class

Other Resources

CAtlModule Members

ATL Registry Component (Registrar)