PiDrvDbUnmountNode

NTSTATUS __stdcall PiDrvDbUnmountNode(PCWSTR SourceString){
  int Node; 
  _UNICODE_STRING DestinationString; 

  DestinationString = 0i64;
  RtlInitUnicodeString(&DestinationString, SourceString);
  Node = PiDrvDbFindNode(&DestinationString);
  if( Node >= 0 )
  {
    if( (MEMORY[0x40] & 1) != 0 )
      return -1073741790;
    else
      return(MEMORY[0x40] & 0x10) != 0 ? -1073741637 : -1073741790;
  }
  return Node;
}

Referenced by:

PiPnpRtlObjectActionCallback