I'm writing an app that still needs to run on Windows XP. I want to use SHCreateMemStream()
. MSDN says this:
Prior to Windows Vista, this function was not included in the public Shlwapi.h file, nor was it exported by name from Shlwapi.dll. To use it on earlier systems, you must call it directly from the Shlwapi.dll file as ordinal 12 (source)
But how do I do that? Since MSDN says that SHCreateMemStream()
is not exported by name in Shlwapi.dll
I guess I can't just use LoadLibrary()
and GetProcAddress()
to get a function pointer to it on XP. So how am I supposed to call this function on XP?
Note that I'm looking for a solution in plain C, not C++.