This topic has not yet been rated - Rate this topic

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).

Header: atlbase.h

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.