The value you are looking for is defined in winioctl.h
#define FSCTL_FILESYSTEM_GET_STATISTICS CTL_CODE(FILE_DEVICE_FILE_SYSTEM,24,METHOD_BUFFERED,FILE_ANY_ACCESS)
And the CTL_CODE is defined as follows:
#define CTL_CODE(DeviceType,Function,Method,Access) (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
Therefore; with observing the values for the following constants: (all in winioctl.h)
DeviceType: #define FILE_DEVICE_FILE_SYSTEM 0x00000009
Function: 24 (Passed in as constant)
Method: #define METHOD_BUFFERED 0
Access: #define FILE_ANY_ACCESS 0
The calculation results in:
(((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
= (9 << 16) | (0 << 14) | (24 << 2) | (0)
= 0x00090060 (hexadecimal)
or,
= 589920 (decimal)
You can calculate any other control codes this way, and also please check the following link:
https://learn.microsoft.com/tr-tr/windows/win32/api/ioapiset/nf-ioapiset-deviceiocontrol#remarks