How to install PVOID ? RRS feed

  • Question

  • In Ndis PVOID informationBuffer. 

    Now How to i initialized PVOID for buffer ? and I got the next one which is InformationBufferLength.

    Line 1589. 


    Friday, November 25, 2016 12:58 PM


  • First Line 1589 is a comment in the file you referred to.   Second, PVOID can be considered as "any pointer type".   Assuming you were referring to the parameters to filterDoInternalRequest then the parameter InformationBuffer can be a pointer to a buffer declared as any type of storage. 

    Inout_updates_bytes_to_(InformationBufferLength, *pBytesProcessed) PVOID InformationBuffer, 
    _In_ ULONG InformationBufferLength, 

    The code above has annotations to indicate that the InformationBuffer is of size InformationBufferLength and that *pBytesProcessed will contain the number of bytes used out of the buffer upon return from the call.

    Don Burn Windows Driver Consulting Website:

    Friday, November 25, 2016 1:27 PM