Do I need the IAudioClientRenderClient::GetBuffer() to read the audio packet? I can't seem to find any reference in this whole section to audio packet structure if that is indeed the case.
Can someone explain how to get data stored in a pointer and get an address that is stored in that pointer, then get the data from the address?
I cannot figure out how to store the raw audio data into a file every time I run it the data accumulating in the file is low. The function in question is...
api
audio
audiobuffer
c++
capture
client
code
data processing
debugging
documentation
getbuffer
github
iaudiocaptureclient
programming
rawdata
reference
storage
streaming
windows
I figured it out! By setting ONE BUFFER big enough for BOTH IN and OUT operations of the IOCTL_SCSI_MINIPORT as listed below:
PUCHAR Buffer[sizeof(FIRMWARE_REQUEST_BLOCK) + sizeof(SRB_IO_CONTROL) + sizeof(STORAGE_FIRMWARE_INFO)];
And setting the DeviceIoControl Function to use the same buffer...
I am getting an access violation when iterating through SCSI HDD's. I'm sure I'm doing something that needs a minor tweak to get it to work properly. Anyone have any ideas on why I'm getting an access violation every time?
HANDLE handle = CreateFile("\\\\.\\PhysicalDrive1", GENERIC_READ |...
I cannot figure out why +1 or -1 is added to a cast or a buffer such as,
firmwareRequest = (PFIRMWARE_REQUEST_BLOCK)(srbControl + 1);
as listed on the MSDN page:
https://docs.microsoft.com/en-us/windows-hardware/drivers/storage/upgrading-firmware-for-an-nvme-device
I searched google and could...
I found the solution to my problem:
I found my program in my filesystem (C:\Users\<username>\source\repos\<projectname>\x64\Debug) and right clicked on the program and in compatibility settings set it to run as administrator. Started Visual Studio up and voila! I now have a valid handle to my...
I found the solution to my problem:
I found my program in my filesystem (C:\Users\<username>\source\repos\<projectname>\x64\Debug) and right clicked on the program and in compatibility settings set it to run as administrator. Started Visual Studio up and voila! I now have a valid handle to my...
I cannot open a handle to any of my storage devices.
HANDLE h = CreateFile(L"\\\\.\\PhysicalDisk0", GENERIC_READ | GENERIC_WRITE, FILE_READ_ACCESS | FILE_WRITE_ACCESS,
0, OPEN_EXISTING, 0, 0);
I also tried copying the full path from WinObj: \GLOBAL??\PhysicalDrive0 and...
access
c++
code snippet
createfile
data access
diagnostics
disk
error
file access
file management
handle
kernel-mode
programming help
storage devices
visual studio
windows api
I am trying to write a tool that queries all devices on the platform that have firmware. However, I can't find any information on how to access the firmware. Take for example, the Elan Touchpad on my device has firmware. However I can't seem to find a way to access it to extract it and analyze...