PiDrvDbUnmountNode

INT64 __stdcall PiDrvDbUnmountNode(PCWSTR SourceString){
  WCHAR v1; 
  NTSTATUS Node; 
  struct _UNICODE_STRING DestinationString; 
  DestinationString = 0i64;
  RtlInitUnicodeString(&DestinationString, SourceString, v1);
  Node = PiDrvDbFindNode(&DestinationString);
  if( Node >= 0 )
  {
    if( (MEMORY[0x40] & 1) != 0 )
      return(unsigned int)-1073741790;
    else
      return(unsigned int)((MEMORY[0x40] & 0x10) != 0 ? -1073741637 : -1073741790);
  }
  return(unsigned int)Node;
}

Referenced by:

PiPnpRtlObjectActionCallback