C++ – PVOID data type

ccompointers

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

BOOL DoSomething(PVOID pMemPhy)

Best Answer

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;
}