File processing functions for the API

Source: Internet
Author: User
Tags filetime ini readfile resource win32
CloseHandle Closes a kernel object. This includes files, file mappings, processes, threads, security, synchronization objects, and so on
Comparefiletime Compare time to two files
CopyFile Copying files
CreateDirectory Create a new directory
CreateFile Open and create files, pipelines, slots, communications services, devices, and consoles
CreateFileMapping Create a new file map object
DeleteFile Delete the specified file
DeviceIoControl Perform the specified action on the device
Dosdatetimetofiletime Converts a DOS date and time value to a Win32 FILETIME value
Filetimetodosdatetime Converts a Win32 FILETIME value to a DOS date and time value
FileTimeToLocalFileTime Convert a FILETIME structure to cost time
FileTimeToSystemTime Load a SYSTEMTIME structure according to the contents of a FILETIME structure
FindClose Closes a search handle created by the FindFirstFile function
FindFirstFile Find files by file name
FindNextFile Finds the next file according to a filename specified when the FindFirstFile function is called
FlushFileBuffers Refreshes the internal file buffer for the specified file handle
Flushviewoffile Flushes all data written to the file mapping buffer to disk
Getbinarytype Determine if a file can be executed
Getcompressedfilesize Determine the number of bytes that a compressed file actually occupies on the disk
GetCurrentDirectory Load the current directory in a buffer
GetDiskFreeSpace Get information about the organization of a disk, and understand the capacity of the remaining space
GetDiskFreeSpaceEx Get information about the organization of a disk and the amount of space remaining
GetDriveType Determine the type of a disk drive
Getexpandedname Get the full name of a compressed file
GetFileAttributes To determine the properties of a specified file
GetFileInformationByHandle This function provides a mechanism for obtaining file information
GetFileSize Determine file length
Getfiletime Gets the time information for the specified file
Getfiletype On the premise of giving a file handle, the file type is judged
GetFileVersionInfo Get file version information from a module that supports version markup
GetFileVersionInfoSize For a file containing a version resource, it is necessary to determine how large a buffer is needed to hold the file version information
Getfullpathname Gets the full path name of the specified file
GetLogicalDrives Determine which logical drive letters exist in the system
GetLogicalDriveStrings Gets a string that contains the root drive path for all current logical drives
GetOverlappedResult To determine the current state of an overlapping operation
Getprivateprofileint Gets an integer value for the entry specified in the initialization file (. ini file)
Getprivateprofilesection Gets a list of all item names and values in the specified subsection (in the. ini file)
GetPrivateProfileString Gets a string for the entry specified in the initialization file
Getprofileint Gets an integer value for the specified entry in the Win.ini initialization file
Getprofilesection Gets a list of all item names and values in the specified subsection (in the Win.ini file)
GetProfileString Gets a string for the entry specified in the Win.ini initialization file
GetShortPathName Gets the short path name of the specified file
GetSystemDirectory Gets the full pathname of the Windows system directory (that is, the system directory)
GetTempFileName This function contains the name of a temporary file that can be used by the application
GetTempPath Gets the path specified for the temporary file
GetVolumeInformation To get information about a disk volume
GetWindowsDirectory Get the full path name of the Windows directory
Hread Reference Lread
Hwrite Reference Lwrite function
Lclose Closes the specified file
Lcreat Create a file
Llseek The current location for reading and writing in the settings file
Lockfile Lock a part of a file so that it is not shared with other applications
LockFileEx Similar to Lockfile, but it provides more functionality
Lopen Opens the specified file in binary mode
Lread Read data from a file into a memory buffer
Lwrite Writes data from a memory buffer to a file
Lzclose Close a file opened by the Lzopenfile or Lzinit function
Lzcopy Copy a file
Lzinit This function is used to initialize the internal buffer
Lzopenfile This function can perform a large number of different file processing and is compatible with compressed files
Lzread Reading data from a file into a memory buffer
Lzseek Sets the current location for reading and writing in a file
MapViewOfFile Maps a file mapping object to the address space of the current application
MoveFile Moving files
OpenFile This function can perform a large number of different file operations
OpenFileMapping Open a ready-made file mapping object
Querydosdevice In Windows NT, the DOS device name is mapped to the NT system device name. This function can determine the current device mapping situation
ReadFile Reading data from a file
ReadFileEx Similar to ReadFile, it is only used for asynchronous read operations and contains a complete callback
RegCloseKey Turn off an entry (or key) in the system registry
RegConnectRegistry Accessing a partial registry of a remote system
RegCreateKey Creates or opens an item under the specified key
RegCreateKeyEx A more complex way to create a new item under a specified item. This function is recommended for use in WIN32 environments
Regdeletekey Deletes a specified subkey below an existing item
Regdeletevalue Deletes a value below the specified item
Regenumkey Enumerates the subkeys of the specified item. RegEnumKeyEx should be used in WIN32 environments
RegEnumKeyEx Enumerates the subkeys below the specified item
RegEnumValue Enumerates the values of the specified item
RegFlushKey The changes made to the item and its subkeys are actually written to disk
RegGetKeySecurity To obtain security information about a registry key
RegLoadKey Loading registry information from a file previously created with the Regsavekey function
RegNotifyChangeKeyValue Use this function to provide a notification mechanism when a registry key or any of its subkeys are changed
RegOpenKey Open an existing registry key
RegOpenKeyEx Open an existing item. It is recommended to use this function under Win32
RegQueryInfoKey To get information about an item
RegQueryValue Gets the default (unnamed) value of the specified item or subkey
RegQueryValueEx Gets the set value of an item
Regreplacekey Replaces registry information with information saved by a disk file, and creates a backup containing the current registry information
Regrestorekey Restore registry information from a disk file
Regsavekey Saves an item and all of its subkeys to a disk file
Regsetkeysecurity Sets the security attributes for the specified item
RegSetValue Sets the default value for the specified item or subkey
RegSetValueEx Sets the value of the specified item
Regunloadkey Unloads the specified item and all its subkeys
RemoveDirectory Delete specified directory
SearchPath Find the specified file
SetCurrentDirectory Set current directory
SetEndOfFile Sets the current file location to the end of the file for an open file
SetFileAttributes Set file properties
SetFilePointer Set the current read-write location in a file
Setfiletime Set the creation, access, and last modified time of a file
Sethandlecount This function does not have to be used under Win32, and even if used, it will not have any effect
Setvolumelabel Set the volume label (label) for a disk
SystemTimeToFileTime Load a SYSTEMTIME structure according to the content of a FILETIME structure
Unlockfile Unlock a file
Unlockfileex Unlock a file
UnmapViewOfFile To unlock a file mapping object in the memory address space of the current application
Verfindfile Use this function to determine where a file should be installed
Verinstallfile Install a file with this function
Verlanguagename This function gets the name of a language based on the 16-bit language code
VerQueryValue This function is used to get information from the version resource
WriteFile Write data to a file
WriteFileEx Similar to WriteFile, it is only used for asynchronous write operations and includes a complete callback
Writeprivateprofilesection Sets all item names and values for the subsection specified in an initialization file (. ini)
WritePrivateProfileString Set a string within the specified section of the initialization file
Writeprofilesection Sets all item names and values for a specified subsection in the Win.ini initialization file
WriteProfileString Set a string within the specified section of the Win.ini initialization file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.