To redistribute our Hide My Folders ActiveX within your applications, you should accomplish the following steps: copy HMFAx.dll file into your target folder and in that folder execute the following command:
regsvr32 /i:<application_id> HMFAx.dll
Alternatively, you may specify full path to HMFAx.dll library:
regsvr32 /i:<application_id> "Disk:\full\path\to\HMFAx.dll"
In order to uninstall execute regsvr32 with "/u" key
regsvr32 /i:<application_id> HMFAx.dll /u
After uninstallation you may safely remove HMFAx.dll file. For complete ActiveX component removal operating system must be rebooted.
Remark: "/i" key is used to specify application ID which will use ActiveX Control methods and properties. We recommend you supply unique GUID value which could be generated by guidgen.exe.
Now you can call methods and properties of Hide My Folders ActiveX directly from your application.
For Windows Vista:
1. Please, make sure you use "reghmf.exe" instead of regsvr32 in Windows Vista. This special utility is included in the redistribution package. Syntax is the same.
2. To be able to work with Hide List, your application has to be run in "Admin Approval Mode" (Run as Administrator).
To make your application automatically try to switch to "Admin Approval Mode" it has to contain a special manifest either inside of its file or in the same directory. The manifest file should have the same name as the target.exe with a .manifest extension.
Please, check the samples that go with Hide My Foldes ActiveX for appropriate manifests. Please, note: embedded manifest has a higher priority than the external one.
Please, find the details in MSDN, see section "Guidelines for Administrative User Applications".