描述
锁方法可防止其他线程更新IWbemObjectAccess对象,直到其解锁为止。
C++ 语法
HRESULT Lock( long lFlags ); |
PowerBASIC 语法
METHOD Lock ( _ BYVAL lFlags AS LONG _ ) AS LONG |
参数
lFlags
保留。此参数当前被忽略,并保留供将来使用。
返回值
如果成功,此方法返回WBEM_S_NO_ERROR。
要求
客户 |
需要Windows Vista,Windows XP,Windows 2000 Professional,Windows NT Workstation 4.0 SP4及更高版本,Windows Me,Windows 98或Windows 95。 |
服务器 |
需要Windows Server 2008,Windows Server 2003,Windows 2000 Server或Windows NT Server 4.0 SP4及更高版本。 |
头 |
在Wbemcli.inc中声明。 |
DLL |
需要Esscli.dll。 需要Fastprox.dll。 需要Wbemess.dll。 |