How to get opaque pointer for the volume if i know volume serial number?

I have a volume serial number of the volume that i need to attach minifilter’s instance. How to get opaque pointer for the volume? A can’t use FltGetVolumeFromName with volume serial number, i can’t FltEnumerateVolumes + FltQueryVolumeInformation to find target volume because i have not instance attached at that volume yet, i want to attach now, also i can’t open that volume as file to get file handle because i need volume guid, not serial number.
What should i do?

you need to use …
1.FltEnumerateVolumes() 'll get volume list pointers.
2.from volume list find guid of that volume FltGetVolumeGuidName().
3.finally use FltAttachVolume().

./6pM