I am developing mini-filter. I use IoGetDeviceInterfaces()
to get device interface instances.
When I check the status of this routine, It is success
When I check SymbolicLinkList parameter, It is NOT NULL
But when I print value of SymbolicLinkList to log, It does not show any thing.
How can I get value of SymbolicLinkList parameter from this routine?
This is my code:
status = IoGetDeviceInterfaces(&deviceGuid, NULL, 0, &symbolicLinkList);
if (NT_SUCCESS(status)) {
if (symbolicLinkList == NULL)
DbgPrint("IoGetDeviceInterfaces symbolicLinkList is NULL\n");
else
{
DbgPrint("IoGetDeviceInterfaces: %ws\n", symbolicLinkList);
DbgPrint("IoGetDeviceInterfaces: %wZ\n", symbolicLinkList);
DbgPrint("IoGetDeviceInterfaces: %s\n", symbolicLinkList);
DbgPrint("IoGetDeviceInterfaces: %ws\n", symbolicLinkList);
DbgPrint("IoGetDeviceInterfaces: %p\n", symbolicLinkList);
}
} else {
DbgPrint("IoGetDeviceInterfaces is failed\n");
}
The log is like this: