IsFileHidden

IsFileHidden method description

IsFileHidden method verifies whether the file object, passed as parameter to this function, is hidden.  

BOOL IsFileHidden(
 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 
IsFileHide method returns TRUE if file object is in the hidden list, object’s state is TRUE and IsHidingEnable state is True as well. Alternatively, the method returns FALSE.
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

// Test Windows Notepad executable file state

extern CHideMyFoldersAx m_ctrlHMFAx;

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

// notepad.exe is successfully hidden

else

// notepad.exe is not hidden


See also