HideFile method

HideFile method hides file object passed as parameter to this method.  

BOOL HideFile(
 BSTR strFileName

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.
  "Null-terminated string" term is discussed here. We strongly recommend you to read article Naming file objects before using our ActiveX Control.

Code example

// 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

See also