RegistryAdd Component Categories to the Registry
REGEDIT4

[HKEY_CLASSES_ROOT\Component Categories]

[HKEY_CLASSES_ROOT\Component Categories\{7DD95801-9882-11CF-9FA9-
00AA006C42C4}]
"409"="Controls that are safely scriptable"

[HKEY_CLASSES_ROOT\Component Categories\{7DD95802-9882-11CF-9FA9-
00AA006C42C4}]
"409"="Controls safely initializable from persistent data"

[HKEY_CLASSES_ROOT\CLSID\{xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx}\Implemented Categories]

[HKEY_CLASSES_ROOT\CLSID\{xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx}\Implemented Categories\{7DD95801-9882-11CF-9FA9-
00AA006C42C4}]

[HKEY_CLASSES_ROOT\CLSID\{xxxxxxxx-xxxx-xxxx-xxxx-
xxxxxxxxxxxx}\Implemented Categories\{7DD95802-9882-11CF-9FA9-
00AA006C42C4}]

Listing 1 The code marks your control as safe for scripting and initialization in HTML-be sure to replace the 'x' placeholders with the class GUID of your component. Internet Explorer examines the Registry entries for a component to determine whether it is safe for scripting/initialization. If it doesn't find these Registry entries and the proper security level is set, it displays a warning message or disables your control's functionality.