PnpSetGenericStoreProperty

NTSTATUS __stdcall PnpSetGenericStoreProperty(
        HPNPCTX *hPnpCtx,
        VOID *BaseKeyHandle,
        WCHAR *PropertyLocaleName,
        _DEVPROPKEY *PropertyKey,
        UINT64 PropertyType,
        UINT8 *PropertyBuffer,
        UINT64 PropertySize){
  int v8; 
  UINT64 v9; 

  LODWORD(v9) = PropertySize;
  if( (_DWORD)PropertyType )
    return PnpSetPropertyWorker(
             (__int64)hPnpCtx,
             BaseKeyHandle,
             PropertyLocaleName,
             (__int64)PropertyKey,
             PropertyType,
             (__int64)PropertyBuffer,
             v9);
  else
    return PnpDeletePropertyWorker(
             (__int64)hPnpCtx,
             BaseKeyHandle,
             PropertyLocaleName,
             (__int64)PropertyKey,
             0,
             v8,
             PropertySize);
}

Referenced by:

PiDqIrpPropertySet
PnpSetObjectPropertyWorker