Windows Data types

Source: Internet
Author: User

The following are the Common window types for MSDN:

1. The interface type of the calling function:

Data type Describe
Apientry

The application portal, calling the Convention's system functions, is defined in WinDef.h as follows

#define Apientry WINAPI

 winapi

  Application portal, calling convention system functions, defined in WinDef.h as follows

#define WINAPI __stdcall

 callback

 

  Application portal, calling convention system functions, defined in WinDef.h as follows

#define CALLBACK __stdcall

 

Attention

Apientry/winapi/callback use __stdcall for function calls, but only callback to specify callback functions, the window API calls with WINAPI.

2. Message-related types

WPARAM

typedef uint_ptr WPARAM;

 uint_ptr   an unsigned int_ptr
lparam

a message parameter, this type in WinDef.h is defined as follows:

typedef LONG _ptr WPARAM;

Long_ptr

A signed pointer-type data, pointing to a long

3. Handle correlation: Handle is a special smart pointer, when an application sequence to refer to other system memory or management objects can use the handle, in short, the front with the beginning of H is usually a handle to the XXX.

HWND

A handle to the window that is defined in WinDef.h:

typedef HANDLE HWND

HANDLE

A handle to a pointer to an object. The following are defined in WinNT.h:

typedef PVOID HANDLE

PVOID

Pointers to any type are defined in WinNT.h:

typedef void *pvoid

Hicon

Handle to Icon

Windows Data types

Related Article

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.