none
Is there any difference between IN and _IN_ RRS feed

  • Question

  • I find many functions with parameter IN or _IN_.Is there any difference between IN and _IN_?

    For Example,

    DriverEntry(
        _In_ PDRIVER_OBJECT  DriverObject,
        _In_ PUNICODE_STRING RegistryPath
        )

    DriverEntry(
        IN PDRIVER_OBJECT  DriverObject,
        IN PUNICODE_STRING RegistryPath
        )

    Monday, May 4, 2015 5:24 AM

Answers

  • IN (and OUT, OPTIONAL) are older pre SAL and prefast hints. they are meaningless. Static analysis tools don't see these or derive meaning from them. _In_ and any other annotation that is of the style _Annotation_ are SAL, consumed by prefast (static analysis) and have meaning. use the SAL versions that have meaning.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, May 4, 2015 6:12 AM

All replies

  • IN (and OUT, OPTIONAL) are older pre SAL and prefast hints. they are meaningless. Static analysis tools don't see these or derive meaning from them. _In_ and any other annotation that is of the style _Annotation_ are SAL, consumed by prefast (static analysis) and have meaning. use the SAL versions that have meaning.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, May 4, 2015 6:12 AM
  • Thank you!
    Tuesday, May 5, 2015 1:40 AM