Use PB to call API automatic update (non-FTP mode) (II, API description and definition (2))

xiaoxiao2021-03-06  119

5, CompareFileTime

Function Ulong CompareFileTime (Ref S_FileTime LPFileTime1, Ref S_FileTime LPFileTime2) Library "kernel32.dll" Alias ​​for "CompareFileTime"

VB Declaration Declare Function CompareFileTime LIB "kernel32" Alias ​​"Comparetime1 AS Filetime" (lpfiletime1 as filetime) AS long Description According to the FileTime structure, compare the time return value of the two files, such as two times, return zero If lpfiletime1 is less than lpfiletime2, return -1; if lpfiletime2 is less than lpfiletime1, return 1 parameter table parameter type and instructions lpfiletime1Filetime, refer to filetimelpfiletime2

6, CopyFilea

Function Ulong Copyfilea (String LpexistingFileName, String LpnewFileName, long bfailifexists) library "kernel32.dll" alias for "copyfilea"

VB Declaration Declare Function CopyFile LIB "Kernel32" Alias ​​"CopyFilea" (Byval LpnewFileName As String, Byval BfailifeXists as long) AS long Description Copy file. Similar to the VB's filecopy command, non-zero means success, zero means fail. Setting the getLastError parameter table parameter type and instructions lpexistingFileNameString, source file name lpnewfilenameString, target file name bFailifexistslong, if set to true (non-zero), then once the target file already exists, the function call will fail. Otherwise the target file is rewritten

转载请注明原文地址:https://www.9cbs.com/read-99219.html

New Post(0)