ConvertInterfaceIndexToLuid() -- error can be retrived using GetLastError() ???

Sinha Prokash 46 Reputation points

Can we retrieve the error string from code using GetLastError() ?


Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,441 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 81,861 Reputation points

    ConvertInterfaceIndexToLuid does not seem to call SetLastError()
    It calls NtDeviceIoControlFile on the interface in NSI.DLL and if the error is STATUS_OBJECT_NAME_NOT_FOUND,
    it calls RtlNtStatusToDosError to return ERROR_FILE_NOT_FOUND

    0 comments No comments

0 additional answers

Sort by: Most helpful