Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSC Shell Extension

Status
Not open for further replies.

DROFNUD

MIS
Oct 16, 2001
40
0
0
GB
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...

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>

----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top