IVsResourceManager::LoadResourceBlob Method (Guid, Int32, String^, IntPtr, Int32)
Visual Studio 2015
Loads the resource blob into the specified package.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int LoadResourceBlob( [InAttribute] Guid% guidPackage, int culture, String^ pszResourceName, [OutAttribute] IntPtr% pBytes, [OutAttribute] int% lAllocated )
Parameters
- guidPackage
-
Type:
System::Guid
[in] Guid of the package into which the resource will be loaded.
- culture
-
Type:
System::Int32
[in] A LCID value specifying the culture for which the resource is valid. Supplying a value of 0 will select the LCID that the user selected when the application was started.
- pszResourceName
-
Type:
System::String^
[in] The name of the resource.
- pBytes
-
Type:
System::IntPtr
[out] Size in bytes of the blob.
- lAllocated
-
Type:
System::Int32
[out] Bytes allocated for the blob.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
The buffer returned by LoadResourceBlob is allocated by the Win32 system call CoTaskMemAlloc and must be freed by the caller with CoTaskMemFree.
From vsshell80.idl:
HRESULT LoadResourceBlob( [in] REFGUID guidPackage, [in] int culture, [in, string] LPCOLESTR pszResourceName, [out] BYTE **pBytes, [out] long *lAllocated) ;)
Show: