Returns the full path to the servicing stack in a mounted Windows
image.
Namespace:
Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly:
Microsoft.ComponentStudio.ComponentPlatformInterface (in
microsoft.componentstudio.componentplatforminterface.dll)
Usage
Visual Basic |
Dim windowsDirectoryName As String
Dim moduleName As String
Dim returnValue As String
returnValue = Cpi.GetPathToShimServicingStack(windowsDirectoryName, moduleName)
|
Syntax
Visual Basic |
Public Shared Function GetPathToShimServicingStack( _
ByVal windowsDirectoryName As String, _
ByVal moduleName As String _
) As String
|
C# |
public static string GetPathToShimServicingStack(
string windowsDirectoryName,
string moduleName
);
|
C++ |
public:
static String^ GetPathToShimServicingStack(
String^ windowsDirectoryName,
String^ moduleName
);
|
J# |
public static System.String GetPathToShimServicingStack(
System.String windowsDirectoryName,
System.String moduleName
);
|
JScript |
public static function GetPathToShimServicingStack(
windowsDirectoryName : String,
moduleName : String
) : String;
|
Parameters
- windowsDirectoryName
-
The name of the mounted Windows Directory. If the Windows
directory is a mounted .wim file, use the string Windows. If
you are not accessing a mounted .wim file, use the string
nowimpath.
- moduleName
-
The specific servicing stack binary required. This is optional.
In most instances, you can pass an empty string for this parameter.
However, if there is a specific binary you require, you can use the
binary name to return the path of the servicing stack.
Return Value
The full path to the folder containing the servicing stack.
Thread Safety
Any public static (Shared in Visual
Basic) members of this type are thread safe. Any instance members
are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server
2003, Windows Vista, and Windows 2000
Target Platforms
See Also