大网数据广告活动
网络与域名解析

Base Types

· 52CE 我爱测

To prevent the problems that implementation-dependent data types can cause on different computer architectures, MIDL defines its own base data types.

To prevent the problems that implementation-dependent data types can cause on different computer architectures, MIDL defines its own base data types.

Base type Description
boolean A data item that can have the value TRUE or FALSE.
byte An 8-bit data item guaranteed to be transmitted without any change.
char An 8-bit unsigned character data item.
double A 64-bit floating-point number.
float A 32-bit floating-point number.
handle_t A primitive handle that can be used for RPC binding or data serializing.
hyper A 64-bit integer that can be declared as either signed or unsigned Can also be referred to as _int64.
int A 32-bit integer that can be declared as either signed or unsigned.
__int3264 A keyword that specifies an integral type that has either 32-bit or 64-bit properties.
long A modifier for int that indicates a 32-bit integer. Can be declared as either signed or unsigned.
short A 16-bit integer that can be declared as either signed or unsigned.
small A modifier for int that indicates an 8-bit integer. Can be declared as either signed or unsigned.
wchar_t Wide-character type that is supported as a Microsoft extension to IDL. Therefore, this type is not available if you compile using the /osf switch.

The header file Rpcndr.h provides definitions for most of these base data types. The keyword int is recognized and is transmittable on 32-bit platforms. On 16-bit platforms, the int data type requires a modifier, such as short or long, to specify its length.

Although void * * is recognized as a generic pointer type by the ANSI C standard, MIDL restricts its usage. Each pointer used in a remote or serializing operation must point to either base types or types constructed from base types. (There is an exception: context handles are defined as void types. For more information see Context Handles.)

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。