The essence of the handle, who knows, what does the handle mean?

Updated on culture 2024-05-13
10 answers
  1. Anonymous users2024-02-10

    Handle.. It may be understood as a specific identifier, a conventional password, or an identity card. It's a testament anyway.

    This proof is unique. This proof proves that you are you, not him. For example, if you go to the restaurant.

    Waiter A came up to entertain and took out the menu and wrote down what you want to eat. Then send it to the kitchen. Then I went to receive other guests.

    After a while, your dish will be ready. But waiter A is receiving someone else, so waiter B sends it to you. But B doesn't know which order of this dish.。。

    What to do? In practice, when A writes down what you want to eat, he often notes your location, table X, and then B sends it to you according to the number, without knowing who it is. This"Number X"It's the handle.

    When the program runs, the operating system assigns a unique identifier to each object generated. If you need this object, you can get a handle to it through your operating system so that you can manipulate it. Because the running programs are stored in memory.

    So the memory address (pointer) can be said to be a unique identifier. Although hwnd is formally a pointer, it is actually different from a pointer. Think about it if the operating system gives you a real pointer to an object.

    What do you do with this object? Is an operating system still called an operating system?。。 What is the face?。。

    So a handle is equivalent to a restrictive pointer. You can be sure that you can identify the object you want. But you can't do anything bad.

    I think so. The reality can be quite complicated. But that's the developer's business.

  2. Anonymous users2024-02-09

    In the compilation principle, the handle is the leftmost direct phrase, I hope it will help you.

  3. Anonymous users2024-02-08

    A handle is an identifier used to identify an object or project, and can be used to describe forms, files, etc., but it is worth noting that a handle cannot be a constant.

    The leftmost prime phrase is the leftmost prime phrase in the sentence structure. A prime phrase is a phrase that contains at least one terminator and does not contain a smaller prime phrase other than itself.

    A handle is not a specific, fixed data type or entity, but rather a broad concept in programming. A handle generally refers to a general pointer to a method of getting another object.

    It may be in the form of an integer, an object, or a real pointer, and its purpose is to establish a unique connection to the object being visited.

  4. Anonymous users2024-02-07

    Handles have two meanings, the first of which refers to programming and the second refers to Windows programming.

    A handle is actually a piece of data, a long piece of data.

    Handles are unique integers that Wondows uses to identify objects that are created or used by an application, and Windows uses a variety of handles to identify applications such as application instances, windows, controls, bitmaps, GDI objects, and so on.

    Windows handles are a bit like file handles in C.

    As we can see from the above definition, a handle is an identifier that is used to identify an object or project, it is like our name, everyone will have one, different people's names are different, but there may also be a person with the same name as you.

    In terms of data type, it's just a 16-bit unsigned integer. Applications almost always get a handle by calling a Windows function, which can then be used by other Windows functions to reference the corresponding object.

  5. Anonymous users2024-02-06

    A handle is a computer term, essentially a number, which is usually the same as an integer number in the current system, for example, in a 32-bit system, it is 4 bytes.

    This number is the unique symbol of an object that corresponds one-to-one, and this object can be the context of a block of memory, a resource, or a service (e.g., a socket, a thread), and so on.

  6. Anonymous users2024-02-05

    Each window opened in Windows (including the window in which the program is running) and the controls within each window (buttons, input boxes, etc.) are randomly assigned a number, which is the handle to the window or control.

    For example, I'm replying to your browser's window handle at the moment is 69010Of course, this handle number is 69010 in my computerIt's going to be another number on your computer, and when I close and open the window, the handle number changes to another one.

  7. Anonymous users2024-02-04

    Handle, which has a variety of meanings, the first of which refers to programming, and the second refers to Windows programming. Now most of it refers to programming, programming, and so on.

    The first explanation: a handle is a special kind of smart pointer. Handles are used when an application wants to reference a block of memory or object managed by another system (e.g., database, operating system).

    The second explanation: the foundation of the entire Windows programming. A handle is a unique integer value, a 4-byte (8-byte in 64-bit program) length, used to identify different objects in an application and different instances of the same kind, such as a window, button, icon, scrollbar, output device, control, or file.

    The application can access the information of the corresponding object through the handle, but the handle is not a pointer, and the program cannot use the handle to read the information in the file directly. If the handle is not in the IO file, it is useless. Handles are unique integers that Windows uses to identify objects that are created or used in an application.

  8. Anonymous users2024-02-03

    The handle is a number, which is generally the same as the number of digits of an integer in the current system, for example, 4 bytes in the 32-bit system.

    This number is a unique identifier of an object, corresponding to the object one by one.

    This object can be a block of memory, a resource, or a service context (e.g. socket, thread), etc.

  9. Anonymous users2024-02-02

    A handle is the identification of the data defined by the system program, usually an integer.

    The system program and the user program need to exchange data, and in order to avoid passing a large amount of data, especially if the user does not want to manipulate the data directly, the system uses a number to represent this set of data (e.g. a set of data related to a window). If the user program needs to modify the data, it can only be done through the functions provided by the system program, as well as the handles and related parameters of the data.

    It is likely that the system program will use the address of the data as a handle, but this is only possible and depends entirely on the program that defines the handle.

    Hope that is clarified.

  10. Anonymous users2024-02-01

    A handle is an identifier used to identify an object or project, and can be used to describe forms, files, etc., but it is important to note that a handle cannot be a constant.

    The reason why Windows has to set up a handle is fundamentally due to the problem of memory management mechanism, that is, virtual addresses. In short, the address of the data needs to be changed, and someone needs to record and manage the change after the change, so the system uses a handle to record the change of the data address.

    The leftmost prime-phrase is the phrase of the leftmost prime-phrase on the left-most part of the sentence structure. A prime phrase is a recursive definition that contains at least one terminator and no longer contains any smaller prime phrases other than itself.

Related questions
9 answers2024-05-13

The so-called handle is actually a piece of data, a long piece of data. >>>More

2 answers2024-05-13

A handle is a (usually 32-bit) integer that represents an object. Handles in Windows are similar to file handles used in traditional C or MS-DOS programming. Programs almost always get a handle by calling a Windows function. >>>More

11 answers2024-05-13

In English, "hold" means to hold, hold, hold, resist, control, control, control, etc. "Hold" means to keep and hold in the face of all kinds of situations, be full of self-confidence, and deal with everything calmly. "To hold" also has the meaning of giving strength and cheering, while "can't hold" is equivalent to the usage of "can't afford to hurt". >>>More

6 answers2024-05-13

Naturally, it's time to dress up.

20 answers2024-05-13

The Chinese script is called Chinese.