File I/O Functions

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following table shows the file I/O functions with a description of the purpose of each.

Function Description

CeGenRandom

Fills a buffer with random bytes.

CeGetCanonicalPathName

Returns the canonical form and the length of the canonical form of the specified path.

CeGetFileNotificationInfo

Obtains file notification information.

CloseHandle

Closes an open object handle.

CopyFile

Copies an existing file to a new file.

CopyFileEx

Copies an existing file to a new file.

CreateDirectory

Creates a new directory.

CreateFile

Creates, opens, or truncates a file, COM port, device, service, or console.

DeleteAndRenameFile

Deletes the source file after it copies the content of the source file to the destination file.

DeleteFile

Deletes a file from a file system.

FindClose

Closes the specified search handle.

FindCloseChangeNotification

Stops change notification handle monitoring.

FindFirstChangeNotification

Creates a change notification handle, and sets up initial change notification filter conditions.

FindFirstFile

Searches a directory for a specified file or subdirectory.

FindFirstFileEx

Searches a directory for a file with a specified name and attributes.

FindNextChangeNotification

Requests that the OS signal a change notification handle the next time it detects an appropriate change.

FindNextFile

Continues a file search from a previous call to the FindFirstFile function.

FlushFileBuffers

Clears the buffers for the specified file and causes all buffered data to be written to the file.

GetDiskFreeSpaceEx

Obtains the following information about the amount of space available on a disk volume:

  • Total amount of space
  • Amount of free space
  • Amount of free space available to the user associated with the calling thread

GetFileAttributes

Obtains attributes for the specified file or directory.

GetFileAttributesEx

Obtains attribute information about the specified file or directory.

GetFileInformationByHandle

Obtains information about the specified file.

GetFileSize

Obtains the size, in bytes, of the specified file.

GetFileVersionInfo

Obtains version information about a specified file.

GetFileVersionInfoSize

Checks whether the OS can obtain version information about a specified file.

GetStoreInformation

Fills in a STORE_INFORMATION structure with the size of the object store and the amount of free space currently in the object store.

GetTempFileName

Creates a name for a temporary file.

GetTempPath

Obtains the path of the directory designated for temporary files.

LockFileEx

Locks the specified file for exclusive access by the calling process.

MoveFile

Renames an existing file or a directory, including all its children.

ReadFile

Reads data from a file, starting at the position indicated by the file pointer.

RemoveDirectory

Deletes an empty directory.

SetEndOfFile

Moves the end-of-file position for the specified file to the current position of the file pointer.

SetFileAttributes

Sets the attributes of a file.

SetFilePointer

Moves the file pointer of an open file.

UnlockFileEx

This function unlocks a region in an open file. Unlocking a region enables other processes to access the region.

WriteFile

Writes data to a file.

See Also

Reference

File I/O Reference