SetCurrentHidingEngine method associates a Hiding Engine instance with the certain application. As the result several applications that use the same ActiveX Control may co-exists on a single PC without interfering with each other. This method accepts unique application identifier (usually GUID) as parameter.
| BOOL SetCurrentHidingEngine( | ||
| BSTR strApplicationId | ||
| ); | ||
Parameters strApplicationId [in] Parameter contains unique string which uniquely identifies application you want to use HMF AX for.
Return Values SetCurrentHidingEngine method returns TRUE if hiding engine was successful associated with specified GUID and FALSE otherwise.
Remarks SetCurrentHidingEngine method should be called prior to any other HMFAx methods and properties.
Code Example
extern CHideMyFoldersAx m_ctrlHMFAx;
if (!m_ctrlHMFAx.SetCurrentHidingEngine(_T("MyApplicationIdString")))
{
MessageBox(0, _T("You must install hiding engine before using it."), 0, MB_OK);
exit(1);
}