Home > System Tutorial > LINUX > body text

What is a file handle in Windows? How is it done?

PHPz
Release: 2024-02-20 09:06:36
forward
523 people have browsed it

What are the file handles?

1. Question 1: What are the file handles? In file I/O, to read data from a file, the application must first call the operating system function and transfer the file name, and select a path to the file to open. document. This function gets back a sequence number, that is, the file handle (filehandle), which is the only basis for identification of the open file.

2. The handle is a special smart watch pointer. When an application wants to reference a memory block or object managed by another system (such as a database, operating system), a handle is used. 2. The foundation of the entire Windows programming.

句柄文件超多_句柄文件存储大小怎么看的_linux文件句柄

3. The handle is a (generally 32-bit) integer, which represents an object. Handles in Windows are similar to file handles used in traditional C or MS-DOS programming. Programs almost always obtain handles by calling Windows functions. Programs use this handle in other Windows functions to use the object it represents.

4. Handles are unique integers used by WINDOWS to identify objects built or used by applications. WINDOWS uses various handles to identify examples such as application instances, windows, controls, bitmaps, GDI objects, etc. The WINDOWS handle is a bit like a file handle in C language.

5. The handle is a serial number, not a video memory address. It is used by the operating system to query the address of the kernel object. PID is the process number Linux environment variable, which is the ID number assigned to the process by the operating system.

6, handle), this file handle is the only basis for identification of the open file. To read a piece of data from a file, the application needs to call the function ReadFile and transmit the address of the file handle in the video memory and the number of bytes to be copied to the operating system. When the task is completed, the file is closed by calling a system function.

aix set file handle configuration

The AIX file descriptor limit is set in the /etc/security/limits file linux file handle , its default value is 2000. This limit can be modified via the ulimit command or the setrlimit subinterpreter. The maximum size is defined by the OPEN_MAX constant.

(1) Use the ftp command: Set the ASCII transmission type to transmit between a machine running AIX and another machine running Windows. I won’t go into details here.

Configure the array as described in the previous article and assign LUNs to the hosts. Connect optical fibers, one card per card, to two switches on two fabrics. Partition the two switches linux file handle, and the partitions must be appropriate to ensure that the initiator and target are visible to each other. Make sure all LUNs are visible.

The lack of permissions for aixftp may be due to the following reasons: Incorrect permission settings: aixftp may not be configured and authorized correctly. In Unix/Linux systems, file transfer contract (FTP) access permissions are controlled by setting file system permissions and the configuration file of the FTP server.

What should I do if the notebook handle is invalid?

How to deal with invalid handles: Usually this problem occurs because there is a problem with the driver of the copier. You can first try to delete the copier and then reinstall the driver. Open: C:\WINDOWS\system32\spool\driver on the notebook where the driver was added and delete all old drivers.

Solution: Is this warning sound due to the installation of third-party software? If so, it is recommended to uninstall it and not use the Linux system installation tutorial, or to check if there is a problem with the game itself. You can uninstall it and re-download and install it. The system cannot load user configuration, but can load default configuration.

Therefore, this is a problem with the web page, and the solution is as described above. Problem 9: The copier handle is invalid. When installing the driver to the last step of installing the driver, it always displays that the handle is invalid. Through the prompts, it may be caused by a problem with the driver or laptop system.

Next, the editor will give you a detailed solution to the problem that the VM virtual machine handle is invalid and cannot be started under the XP system.

The above is the detailed content of What is a file handle in Windows? How is it done?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:itcool.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!