Compartilhar via


File I/O Functions (Windows CE 5.0)

Send Feedback

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

Programming element Description
CeGenRandom This function fills a buffer with random bytes.
CeGetCanonicalPathName This function returns the canonical form and the length of the canonical form of the specified path.
CeGetFileNotificationInfo This function retrieves file notification information.
CloseHandle This function closes an open object handle.
CopyFile This function copies an existing file to a new file.
CopyFileEx This function copies an existing file to a new file.
CreateDirectory This function creates a new directory.
CreateFile This function creates, opens, or truncates a file, COM port, device, service, or console.
DeleteAndRenameFile This function deletes the source file after it copies the content of the source file to the destination file.
DeleteFile This function deletes an existing file from a file system.
FindClose This function closes the specified search handle.
FindCloseChangeNotification This function stops change notification handle monitoring.
FindFirstFileEx This function searches a directory for a file whose name and attributes match those specified in the function call.
CloseHandle This function closes an open object handle.
FindFirstChangeNotification This function creates a change notification handle and sets up initial change notification filter conditions.
FindFirstFile This function searches a directory for a file or subdirectory whose name matches the specified file name.
FindNextChangeNotification This function requests that the operating system (OS) signal a change notification handle the next time it detects an appropriate change.
FindNextFile This function continues a file search from a previous call to the FindFirstFile function.
FlushFileBuffers This function clears the buffers for the specified file and causes all buffered data to be written to the file.
GetDiskFreeSpaceEx This function obtains information about the amount of space available on a disk volume: the total amount of space, the total amount of free space, and the total amount of free space available to the user associated with the calling thread.
GetFileAttributes This function returns attributes for a specified file or directory.
GetFileAttributesEx This function obtains attribute information about a specified file or directory.
GetFileInformationByHandle This function retrieves information about the specified file.
GetFileSize This function retrieves the size, in bytes, of the specified file.
GetFileVersionInfo This function returns version information about a specified file.
GetFileVersionInfoSize This function determines whether the operating system (OS) can obtain version information about a specified file.
GetStoreInformation This function fills in a STORE_INFORMATION structure with the size of the object store and the amount of free space currently in the object store.
GetTempPath This function retrieves the path of the directory designated for temporary files.
GetTempFileName This function creates a name for a temporary file.
MoveFile This function renames an existing file or a directory, including all its children.
LockFileEx This function locks the specified file for exclusive access by the calling process.
ReadFile This function reads data from a file, starting at the position indicated by the file pointer.
RemoveDirectory This function deletes an existing empty directory.
SetEndOfFile This function moves the end-of-file position for the specified file to the current position of the file pointer.
SetFileAttributes This function sets the attributes of a file.
SetFilePointer This function 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 This function writes data to a file.

See Also

File I/O Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.