Desktop Functions: Smart Device Functions:
|
GetFileAttributes (kernel32)
C# Signature:
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] VB.Net Signature:
<DllImport("kernel32.dll")>_ User-Defined Types:None. Notes:For long file names (260+ characters) prepend "\\?\" to the file name for local files and "\\?\UNC\" for network files. e.g. D:\A\B\...\C --> \\?\D:\A\B\...\C and \\oscar\meyer\A\B\...\C --> \\?\UNC\oscar\meyer\A\B\...\C Updated the C# return type from int to uint. MSDN says it's a DWORD and DWORD is a unsigned integer. Tips & Tricks:Please add some! Sample Code:Please add some! Alternative Managed API:System.IO.File.GetAttributes Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|