What is PVOID data type?

前端 未结 6 1836
粉色の甜心
粉色の甜心 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:26

    This and other mnemonic like BOOL, LPCTSTR have it origin with Windows, which BTW was developed before the existence of a C standard, and to not depend in a particular compiler it used its own types.

    You can check the Old New Thing blog for more stories about to the Windows development history, and its oddities which will remain with us (http://blogs.msdn.com/oldnewthing).

提交回复
热议问题