Thanks, those were some hidden COM cleanup corpses.
SHCreateMemStream and SHCreateStreamOnFileW API functions were released way after DMusic.\ And native DMusic is not linked against shlwapi.dll. So DMusic uses it's own IStream implementation.\ If there are any incompatibilities between the implementations I would keep them separate as is.