HideFile method hides file object passed as parameter to this method.
Parameters strFileName [in] Null-terminated OLE string that specifies the name of the hiding object, such as file, directory or hiding mask.
Return Values HideFile method returns TRUE if operation was successful and FALSE otherwise.
Remarks "Null-terminated string" term is discussed here. We strongly recommend you to read article Naming file objects before using our ActiveX Control.
|// For instance, we would like to hide Windows Notepad executable file|
extern CHideMyFoldersAx m_ctrlHMFAx;
// notepad.exe is successfully hidden
// notepad.exe is not hidden. Your exception code handler here