What is PVOID data type?

前端 未结 6 1852
粉色の甜心
粉色の甜心 2020-12-29 08:55

Can someone explain what PVOID is and how it is used in a function like:

BOOL DoSomething(PVOID pMemPhy)
6条回答
  •  醉话见心
    2020-12-29 09:20

    As others have said, it's equivalent to void *.

    void pointers are often used in memory operations (memcpy, memset, etc...) since one doesn't want to assume the type of the data at the given address.

    Pointers and void pointers are given a good treatment in this article from http://cplusplus.com.

提交回复
热议问题