Creates a new IStream with the content of a PE resource
Syntax
HRESULT WINAPI SHCreateStreamOnDllResourceW (
LPCWSTR pwszModule,
LPCWSTR pwszName,
LPCWSTR pwszType,
IStream** ppStream
)
Parameters
- pwszModule
- The path of the module containing the resource
- pwszName
- The name of the resource. This can be an ordinal passed via MAKEINTRESOURCE
- pwszType
- The resource type. This can be one of the standard RT_ identifiers or a custom type
- ppStream
- A pointer to a pointer that receives the new IStream containing the contents of the resource
Return Value
S_OK on success, standard COM error code otherwise
Remarks
If you've already loaded pwszModule and have a HMODULE, consider calling SHCreateStreamOnModuleResourceW instead.
This function is also known as _SHCreateStreamOnDllResourceW@16.