Value __in, __out, __in_opt

What is the meaning of these keywords used before variables in function parameters?

  • __in
  • __out
  • __in_opt
+5
source share
2 answers

Here are some of the older design macros from Microsoft SAL annotations ( newer versions now follow a different body, starting with capital). They have no real effect on compilation (in VS 2010 they are not yet extended), they are for documentation of the built-in API.

  • __in: this parameter is the input to the function (read-only, call initiator).
  • __out: this parameter contains the output of the function when it returns (write only, call initiator).
  • __in_opt: , _in _opt, _opt, , ( NULL).

.

+9

Nercolis, SAL. , API. - . /analyze ( , → ), .

, __in, . null SEH. __in_opt . - , . . .

+3

All Articles