Hi,
Does anyone know if WSC can be used to implement Shell Extensions using IDropTarget, IPropertySheet etc?
These are COM handlers and WSC has a COM interface so I cannot see any reason why it couldn't, however I've done a lot of searching and cannot find any examples.
Previously I've only used WSC files for code libraries, so this is a big jump for me, but I imagine the following internal structure would be a starting point...
----------------------------------------
Does anyone know if WSC can be used to implement Shell Extensions using IDropTarget, IPropertySheet etc?
These are COM handlers and WSC has a COM interface so I cannot see any reason why it couldn't, however I've done a lot of searching and cannot find any examples.
Previously I've only used WSC files for code libraries, so this is a big jump for me, but I imagine the following internal structure would be a starting point...
Code:
<?XML version="1.0"?>
<package>
<component id="IShellPropSheetExt">
<implements type="IShellPropSheetExt" />
<registration
progid="its.IShellPropSheetExt"
version="1.0"
classid="ee183e0f-4211-4f09-ae75-f43a8b60b375"
/>
<public>
<method name="Initialize"/>
<method name="IShellPropSheetExt"/>
<method name="AddPages"/>
<method name="ReplacePage"/>
</public>
<script language="VBScript">
<![CDATA[
'-----------------------------
function Initialize()
end function
'-----------------------------
function IShellPropSheetExt()
end function
'-----------------------------
function AddPages(LPFNADDPROPSHEETPAGE, LPARAM);
end function
'-----------------------------
function ReplacePage(UINT, LPFNADDPROPSHEETPAGE, LPARAM)
' ReplacePage = E_NOTIMPL
end function
]]>
</script>
</component>
</package>
----------------------------------------