SetFileTime method

int SetFileTime(
  1. Pointer<Void> hFile,
  2. Pointer<LPFILETIME> lpCreationTime,
  3. Pointer<LPFILETIME> lpLastAccessTime,
  4. Pointer<LPFILETIME> lpLastWriteTime,
)

Implementation

int SetFileTime(
  ffi.Pointer<ffi.Void> hFile,
  ffi.Pointer<LPFILETIME> lpCreationTime,
  ffi.Pointer<LPFILETIME> lpLastAccessTime,
  ffi.Pointer<LPFILETIME> lpLastWriteTime,
) {
  return (_SetFileTime ??= _dylib
      .lookupFunction<_c_SetFileTime, _dart_SetFileTime>('SetFileTime'))(
    hFile,
    lpCreationTime,
    lpLastAccessTime,
    lpLastWriteTime,
  );
}