IVsResourceManager2::ParseResourceID Method (String^, UInt32, String^, Guid, String^)
Parses a resource ID (which may contain an embedded package GUID or DLL path) into its components.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int ParseResourceID( String^ szId, unsigned int lcid, [OutAttribute] String^% pbstrUnadornedId, [OutAttribute] Guid% pguidPackage, [OutAttribute] String^% pbstrDllPath )
Parameters
- szId
-
Type:
System::String^
[in] String containing the ID of the resource.
- lcid
-
Type:
System::UInt32
[in] The local ID for the resource.
- pbstrUnadornedId
-
Type:
System::String^
[out] The resource ID string.
- pguidPackage
-
Type:
System::Guid
[out] The GUID for the resource.
- pbstrDllPath
-
Type:
System::String^
[out] The path to the resource in the DLL.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
The resource ID can be an embedded package GIUD or a DLL path. The syntax is:
<prefix><resID>[;<source>]
prefix is "@" for managed resources or "#" for native resources.
resID is the name or numeric ID of the resource.
source is a package GUID (in curly braces) or a DLL path.
DLL paths may contain the tokens, "%lcid%" and "%lang%"; these are expanded to the numeric value of the current locale (for example "1033") and the primary language from the locale name (for example "en"), respectively. If 'lcid' is -1, the current thread locale will be used.
If szID begins with a prefix character, this method sets pbstrUnadornedId to the portion to the left of the semicolon. If there is a semicolon, either pguidPackage or pbstrDllPath will be set to the portion to the right of the semicolon, depending on the type of ID string.