I am using the following code:
int main()
{
DWORD dwBytesReturned = 0;
BOOL bResult = DeviceIoControl(hVol, IOCTL_SFFDISK_DEVICE_COMMAND, pCmdBuf, nSizeOfCmd, pCmdBuf, nSizeOfCmd, &dwBytesReturned, NULL);
But pCmdBuf->Data is always empty. I run the program with administrative privileges on a win7 x64.