IWbemPath::IsLocal method
The IWbemPath::IsLocal method tests if the computer name passed in matches the computer name in the path, or if the server name in the path is NULL or ".".
Syntax
BOOL IsLocal(
[in] LPWSTR wszMachine
);
Parameters
- wszMachine [in]
-
Name of the computer to test.
Return value
This method returns a BOOL indicating whether the path matches the passed in computer name, or if the server name in the path is NULL or ".".
| Return code | Description |
|---|---|
|
Path is local. |
|
Path is not local. |
Remarks
Windows 2000 and Windows NT: Requires the WMI SDK Update or the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.
Windows NT: Requires the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Redistributable | WMI Redistributable Components version 1.0 on Windows 2000. |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012