ComponentSafety

This function provides the ability to specify a ControlName.Interface for any control(s) and using the ControlName.Interface to set Safe for Scripting and Safe for Initialization on the control in the registry. 

A text file in the form of a Windows Profile file is used (Scripting.txt) for example which is read by ComponentSafety. The code reads the file using GetProfileString, parses out the Control.Interface value and gets the ClassId (GUID) for it from the registry.  It then sets Safe for Scripting and Safe for Initialization on the ClassIdbased using the flags in the text file.

Use this function after the control(s) has been registered.

Please direct any questions to 

PaulCronk@SoftWin.com
SoftWin Consulting, Inc.
http://www.SoftWin.com/