The ACF body contains configuration attributes that apply to types and functions defined in the interface body of the IDL file. The ACF body can contain ACF include, typedef, function, and parameter attributes. All of these items are optional. The body of the ACF can be empty. 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. 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 a #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.
/app_config, /osf, auto_handle, code, explicit_handle, IDL, implicit_handle, include, midl, nocode, optimize, represent_as, typedef