I have the following :

BOOL rc = DeviceIoControl(hVxd, ioctl_code, (char*)&cmdBuf,
count, (char*)&replyBuf, sizeof(replyBuf),
&bytesReturned, NULL);

My question is, cmdBuf is returned as a pointer. How can I assign a variable to this returned data so that I can do some manipulation. What I have been trying is :

*somepointer = cmdBuf[i];
or
somearray[8] = cmdBuf[i];

but the compiler complains. What am I doing wrong? I know it should be simple
but I am lost.

Thanks