What is PVOID data type?

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

    void pointer, same as

    void *pMemPhy
    

    aka "Pointer to something, but it's up to you to figure it out".

    BOOL DoSomething ( PVOID pMemPhy )
    {
        strcpy((char *)pMemPhy, "I love buffer overflows!");
        return TRUE;
    }
    

提交回复
热议问题