Page 1 of 1 1
Topic Options
#150136 - 2005-10-17 09:10 PM Support for OUT parameters in WMI
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Using WMI the .GetOwner method requires an [out] parameter, which KiXtart doesn't support.

As shown here.
http://msdn.microsoft.com/library/defaul...n32_process.asp


The example on the page works great in VBS but doesn't work in KiXtart.

 

Top
#150137 - 2005-10-18 04:14 AM Re: Support for OUT parameters in WMI
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
That might actually a ByVal/ByRef issue. ByRef is on my wishlist for a long time already.
_________________________
There are two types of vessels, submarines and targets.

Top
#185038 - 2008-02-02 11:11 AM Re: Support for OUT parameters in WMI [Re: Sealeopard]
Arend_ Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
I agree with this suggestion.
Needed as wel when using WMI to get a security descriptor
For instance:
 Code:
$str_path = "C:\Test"
$objSecurity = GetObject("winmgmts:{(Security,Restore)}\\.\root\cimv2:Win32_LogicalFileSecuritySetting='" + $str_path + "'")
$objSecurity.GetSecurityDescriptor($objSD)

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 707 anonymous users online.
Newest Members
min_seow, Audio, Hoschi, Comet, rrosell
17881 Registered Users

Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org