SetFileAttributes

此頁(yè)沒(méi)有內(nèi)容條目
內(nèi)容

SetFileAttributes

VB聲明

Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long

說(shuō)明

設(shè)置文件屬性

返回值

Long,非零表示成功,零表示失敗。會(huì)設(shè)置GetLastError

參數(shù)表

參數(shù)

類型及說(shuō)明

lpFileName

String,要設(shè)置其屬性的文件名

dwFileAttributes

Long,帶有FILE_ATTRIBUTE_??前綴的一個(gè)或多個(gè)常數(shù)

Top