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

The ACF Body

· 52CE 我爱测

The ACF body contains configuration attributes that apply to types and functions defined in the interface body of the IDL file.

The ACF body contains configuration attributes that apply to types and functions defined in the interface body of the IDL file. The body of the ACF can be empty or it can contain ACF include, typedef, function, and parameter attributes. All of these items are optional. Attributes applied to individual types and functions in the ACF body override attributes in the ACF header.

The ACF specifies behavior on the local computer and does not affect the data transmitted over the network. It is used to specify details of a stub to be generated. In DCE-compatibility mode (/osf), the ACF does not affect interaction between stubs, but between the stub and application code.

A parameter specified in the ACF must be one of the parameters specified in the IDL file. The order of specification of the parameter in the ACF is not significant because the matching is by name, not by position. The parameter list in the ACF can be empty, even when the parameter list in the corresponding IDL signature is not (but this is not recommended). Abstract declarators (unnamed parameters) in the IDL file cause the MIDL compiler to report errors while processing the ACF because the parameter is not found.

The ACF include directive specifies the header files to appear in the generated header as part of a standard C-preprocessor #include statement. The ACF keyword include differs from an #include directive. The ACF keyword include causes the line "#include filename" to appear in the generated header file, while the C-language directive "#include filename" causes the contents of that file to be placed in the ACF.

The ACF typedef statement lets you apply ACF type attributes to types previously defined in the IDL file. The ACF typedef syntax differs from the C typedef syntax.

The ACF function attributes let you specify attributes that apply to the function as a whole. For more information, see [code], [optimize], and [nocode].

The ACF parameter attributes let you specify attributes that apply to individual parameters of the function. For more information, see [byte_count].

Related topics

/app_config

/osf

[auto_handle]

[code]

[explicit_handle]

The Interface Definition Language (IDL) File

[implicit_handle]

include

midl

[nocode]

[optimize]

[represent_as]

typedef

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)

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

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