Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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( );

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.

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

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

Requirements

Header: atlbase.h

Show: