![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Sending strings to win32:process-GetOwner() objectby enigmae (Pilgrim) |
on Feb 26, 2002 at 17:38 UTC ( #147660=perlquestion: print w/replies, xml ) | Need Help?? |
enigmae has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
I am writing a script to get a list of processes and the owners of those processes running off win2k. I get the process list through the WMI using win32:OLE Where i run into problems is when i try to send a reference to a string to the method GetOwner. According to the WMI SDK, GetOwner takes two strings by reference one which will get the domain name and the other which will get the user name. The method returns an int indicating the status of the call I have tried sending arrays, scalars, references etc... but it doesn't work. I even tryed sending references to a local variant type using Win32::OLE::Variant. if anyone has done this before, or knows how to send these strings to the API, i would greatly appriciate it. thanks in advance
Back to
Seekers of Perl Wisdom
|
|