I don't know why but it seems that due to the type of parameters you use (PWideChar) the compiler is adding references to the "SharedMem" unit for you (Borlndmm.dll).
You can check the documentation for more information: https://docwiki.embarcadero.com/RADStudio/Athens/en/Sharing_Memory