UnhideFile

UnhideFile method description

UnhideFile method ceases component action for the file object passed as parameter to this method. As the result File object is removed from "hide list" and becomes visible.  

BOOL UnhideFile(
 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
  UnhideFilemethod 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.


Code Example

// For instance, we would like to hide Windows Notepad executable file

extern CHideMyFoldersAx m_ctrlHMFAx;

if(m_ctrlHMFAx.UnhideFile("c:\windows\notepad.exe"))

// notepad.exe is successfully unhidden

else

// Failed to unhide notepad.exe. Your exception code handler here


See also