Düzenle

Aracılığıyla paylaş


Stub Optimization ACF Attributes

These attributes enable you to optimize the size and speed of your stub code.

Attribute Usage
codenocode Use the code and nocode attributes together to avoid generating stub code for unused functions. Apply the nocode attribute to the interface header, and apply the code attribute to those procedures that the client application will implement. Client stub code will be generated only for the selected procedures.
optimize Lets you fine-tune the level of optimization that the MIDL compiler performs when generating stub code, by specifying that data is to be marshaled by either the mixed-mode or interpreted method. You can apply the optimize attribute to an interface or to selected functions within the interface. In either case, its use will override the command-line optimizations and any pre-existing defaults.