Oleg Vorobiov wrote:
I have made the required changes:
1. IoCreateDevice, IoRegisterDeviceInterface, and other related things have been removed from the DriverEntry function.
2. In the AddDevice function (after the PcAddAdapterDevice function call) I call IoRegisterDeviceInterface and IoSetDeviceInterfaceState, as follows:
ntStatus =
IoRegisterDeviceInterface(PhysicalDeviceObject
, static_cast<LPCGUID>(&PID_MSVAD)
, &DeviceRef
, &DeviceName);
// Where DeviceRef is "CUSTOM_DEV", DeviceName is "\\Devices\\CUSTOM_DEV".
After that, I got a symbolic link using CM_Get_Device_Interface_List: *\\?\ROOT#MEDIA#0000#{5b722bf8-f0ab-47ee-b9c8-8d61d31375a1}\CUSTOM_DEV*
Unfortunately, I couldn't open the file via the symbolic link mentioned above (error description: "The system cannot find the file specified").
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature