MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2QueryProperty

Function Ext2QueryProperty

Ext2Mgr/enumDisk.cpp:852–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852NT::NTSTATUS
853Ext2QueryProperty(
854 HANDLE Handle,
855 STORAGE_PROPERTY_ID Id,
856 PVOID DescBuf,
857 ULONG DescSize
858 )
859{
860 STORAGE_PROPERTY_QUERY SPQ;
861 NT::NTSTATUS status;
862 NT::IO_STATUS_BLOCK ioSb;
863
864 SPQ.PropertyId = Id;
865 SPQ.QueryType = PropertyStandardQuery;
866
867 memset(DescBuf, 0, DescSize);
868
869 status = NT::ZwDeviceIoControlFile(
870 Handle, NULL, NULL, NULL, &ioSb,
871 IOCTL_STORAGE_QUERY_PROPERTY,
872 &SPQ, sizeof(STORAGE_PROPERTY_QUERY),
873 DescBuf, DescSize
874 );
875
876 return status;
877}
878
879/*
880 * Ext2QueryDisk

Callers 2

Ext2LoadDisksFunction · 0.85
Ext2LoadCdromsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected