#ifndef _NTIOAPI_H #define IOCTL_MOUNTMGR_NEXT_DRIVE_LETTER CTL_CODE(MOUNTMGRCONTROLTYPE, 4, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) #endif View code on GitHub
This IOCTL is documented in Windows Driver Kit.