Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
INVALID_FILE_ATTRIBUTES (Constants)
 
.
Summary

C# Constants:

const Int64 INVALID_FILE_ATTRIBUTES = -1;

VB Constants:

TODO

Notes:

// ported http://stackoverflow.com/questions/6218325/how-do-you-check-if-a-directory-exists-on-windows-in-c

public static bool DirectoryExists(string path)
{
       int attributes = GetFileAttributes(path);

       return (attributes != INVALID_FILE_ATTRIBUTES && ((attributes & FILE_ATTRIBUTE_DIRECTORY) != 0));
}

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions