Common API functions (3): file processing functions

Source: Internet
Author: User
Tags filetime
Closehandle Closes a kernel object. This includes file, file ing, process, thread, security, and synchronization objects.
Comparefiletime Compare the time of two files
Copyfile Copy a file
Createdirectory Create a new directory
Createfile Open and create files, pipelines, mail tanks, communication services, devices, and the Console
Createfilemapping Create a new file ing object
Deletefile Delete a specified file
Deviceiocontrol Perform the specified operation 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 Converts a filetime structure to the local time
Filetimetosystemtime Load a systemtime structure according to the content of a filetime Structure
Findclose Close a search handle created by the findfirstfile Function
Findfirstfile Search for files by file name
Findnextfile Find the next file based on the file name specified when the findfirstfile function is called.
Flushfilebuffers Refresh the internal file buffer for the specified file handle
Flushviewoffile Refresh all data written to the file ing buffer to the disk.
Getbinarytype Determine whether the file can be executed
Getcompressedfilesize Determine the actual number of bytes occupied by a compressed file on the disk
Getcurrentdirectory Load the current directory in a buffer zone
Getdiskfreespace Obtains information about the organization of a disk and the capacity of the remaining space.
Getdiskfreespaceex Obtains information about the organization of a disk and the remaining space.
Getdrivetype Determine the type of a disk drive
Getexpandedname Obtain the full name of a compressed file.
Getfileattributes Determines the attributes of a specified file.
Getfileinformationbyhandle This function provides a mechanism for obtaining file information.
Getfilesize Determine the file length
Getfiletime Obtains the time information of a specified object.
Getfiletype Determine the file type while providing the file handle
Getfileversioninfo Obtain the file version information from a module that supports version tagging.
Getfileversioninfosize Determine the size of the buffer zone required for a file containing version Resources
Getfullpathname Obtains the complete path name of a specified object.
Getlogicaldrives Determine the logical drive letters in the system
Getlogicaldrivestrings Obtains a string containing the root drive paths of all current logical drives.
Getoverlappedresult Determines the current status of an overlapping operation
Getprivateprofileint Obtains an integer for the entry specified in the initialization file (. ini file ).
Getprivateprofilesection Obtains a list Of all item names and values in a specified section (in the. ini file ).
Getprivateprofilestring Obtains the string for the specified entry in the initialization file.
Getprofileint Obtains an integer of the specified entry in the win. ini initialization file.
Getprofilesection Obtains a list Of all item names and values in a specified section (in the win. ini file ).
Getprofilestring Obtains the string for the specified entry in the win. ini initialization file.
Getmediapathname Obtains the short path name of a specified file.
Getsystemdirectory Obtain the complete path name of the Windows System directory (that is, the system directory)
Gettempfilename This function contains the name of a temporary file.ProgramUse
Gettemppath Obtain the path specified for the temporary file
Getvolumeinformation Obtains information about a disk volume.
Getwindowsdirectory Obtain the complete path name of the Windows directory
Hread Refer to lread
Hwrite Refer to the lwrite Function
Lclose Close the specified file
Lcreat Create a file
Llseek Set the current location for reading and writing in the file
Lockfile Lock a part of the file so that it is not shared with other applications
Lockfileex Similar to lockfile, but it provides more functions
Lopen Open a specified file in binary mode
Lread Read data from files into the memory buffer
Lwrite Write data into a file from the memory buffer.
Lzclose Closes a file opened by the lzopenfile or lzinit function.
Lzcopy Copy an object
Lzinit This function is used to initialize the internal buffer.
Lzopenfile This function can process a large number of different files and is compatible with compressed files.
Lzread Read data from files into memory buffer
Lzseek Sets the current position for reading and writing a file.
Mapviewoffile Map a file ing object to the address space of the current application
Movefile Move files
Openfile This function can perform a large number of different file operations
Openfilemapping Open a ready-made file ing object
Querydosdevice In Windows NT, the DOS device name is mapped to the NT System device name. This function can be used to determine the current device ing status.
Readfile Read data from a file
Readfileex Similar to readfile, it can only be used for asynchronous read operations and contains a complete callback.
Regclosekey Disables an entry (or key) in the system registry)
Regconnectregistry Access some registries of the remote system
Regcreatekey Creates or opens an item under a specified item.
Regcreatekeyex Creating a new project under a specified item is more complex. We recommend that you use this function in the Win32 environment.
Regdeletekey Deletes a specified subitem under an existing item.
Regdeletevalue Deletes a value under a specified item.
Regenumkey Enumerate the subitem of a specified item. Use regenumkeyex in Win32
Regenumkeyex Enumerate subitems under a specified item
Regenumvalue Enumerated value of a specified item
Regflushkey Write the changes made to the item and Its subitem to the disk.
Reggetkeysecurity Obtains security information related to a registry key.
Regloadkey Load registry information from a file previously created using the regsavekey Function
Regpolicychangekeyvalue This function provides a notification mechanism when the registry key or any of its subkeys change.
Regopenkey Open an existing registry key
Regopenkeyex Open an existing item. This function is recommended in Win32.
Regqueryinfokey Obtain information related to an item
Regqueryvalue Obtains the default (untitled) value of a specified item or subitem.
Regqueryvalueex Obtains the set value of an item.
Regreplacekey Replace the registry information with the information saved in a disk file, and create a backup that contains the current registry information.
Regrestorekey Restore registry information from a disk file
Regsavekey Save an item and all its sub-items to a disk file.
Regsetkeysecurity Sets the security features of a specified item.
Regsetvalue Set the default value of a specified item or subitem
Regsetvalueex Set the value of a specified item
Regunloadkey Detaches a specified item and all its sub-items.
Removedirectory Delete a specified directory
Searchpath Search for a specified file
Setcurrentdirectory Set the current directory
Setendoffile For an open file, set the current file location to the end of the file
Setfileattributes Set file Properties
Setfilepointer Set the current read/write location in a file
Setfiletime Set the file creation, access, and last modification time
Sethandlecount This function does not have to be used in Win32; even if it is used, it will not have any effect.
Setvolumelabel Set the volume label of a disk)
Systemtimetofiletime Load a systemtime structure according to the content of a filetime Structure
Unlockfile Unlocks a file
Unlockfileex Unlocks a file
Unmapviewoffile Unmaps a file ing object from the memory address space of the current application.
Verfindfile Use this function to determine where a file should be installed
Verinstallfile Use this function to install a file
Verrentagename This function is applicable to 16-bit languages.CodeObtain the name of a language
Verqueryvalue This function is used to obtain information from version resources.
Writefile Write data to a file
Writefileex Similar to writefile, it can only be used for asynchronous write operations and includes a complete callback.
Writeprivateprofilesection Set all item names and values for the section specified in an initialization file (. INI ).
Writeprivateprofilestring Set a string in the specified section of the initialization file
Writeprofilesection Set all item names and values for a specified section in the win. ini initialization file
Writeprofilestring In the specified section of the win. ini initialization file, set a string =

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.