The layout for registration information is the following:
<REGISTRATION
ProgID="ProgID"
ClassID="{CLSID}"
Description="Description"
Version="Version"
>
</Registration>
In a concrete case this layout will originate such a code:
<Registration
ProgID="Time.Scriptlet"
ClassID="{51eb18c0-98a7-11d1-83d1-f46705c10000}"
Description="Time Server Scriptlet"
Version="1.00"
>
</Registration>
The order of the various attributes is completely free.
When you register the Server Scriptlet (we'll cover this later) the registration information which has been added here is read and interpreted. If you have any reason to detect and process this event, you can insert a <SCRIPT>
tag inside the <registration>
, as shown below.
<Registration
ProgID="Time.Scriptlet"
ClassID="{51eb18c0-98a7-11d1-83d1-f46705c10000}"
Description="Time Server Scriptlet"
Version="1.00"
>
<SCRIPT LANGUAGE="JScript">
function Register() {
alert( "Scriptlet registered." );
}
function Unregister() {
alert( "Scriptlet unregistered." );
}
</SCRIPT>
</Registration>
By defining two functions named Register
and Unregister
you will be notified when the scriptlet is registered and then unregistered. The registration process is governed by the run-time module scrobj.dll
which will call back such routines if you define them.