You are not assigning a value to the location where lpvBuffer points, but to the pointer itself.
And why did you use a pointer to void if you want to pass a DWORD as in/out parameter? Use a pointer to DWORD instead. So you code should look like this:
void Test (DWORD* pArg)
{
DWORD code = 200;
*pArg = code;
}