PnpCtxRegDeleteValue

NTSTATUS __fastcall PnpCtxRegDeleteValue(HPNPCTX *hPnpCtx, VOID *hKey, WCHAR *ValueName){
  NTSTATUS result; 
  _OBJECT_TYPE *v5; 
  _UNICODE_STRING DestinationString; 

  DestinationString = 0i64;
  result = RtlInitUnicodeStringEx(&DestinationString, ValueName);
  if( result >= 0 )
    return ZwDeleteValueKey(hKey, &DestinationString, v5);
  return result;
}

Referenced by:

PiCMCreateDevice
PipUpdateDeviceProducts