Well it took a little fiddling to get it to compile but it was easy with
that stuff you pointed out, thanks a lot Stoyan. I'm trying to find out what
account the service is running with. That should be done now that I've got
that code compiled. I've been using these pinvoke code snippets because I've
found that more straight forward then what I've looked at in the .net
framework 1.1. WMI -- now that you mention it may have been my best bet, I
don't know. I think I'm far enough along now with these pinvoke code
snippets where I'm just gonna wrap up my little project here.

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Stoyan Damov
Sent: Saturday, January 06, 2007 8:01 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] pInvoking QueryServiceConfig

On 1/7/07, Alex Smotritsky <[EMAIL PROTECTED]> wrote:
> How does one compile the sample code here:
>
> http://www.pinvoke.net/default.aspx/advapi32/QueryServiceConfig.html

Beside the fact that the sample compiles and runs fine (after adding a
reference to System.ServiceProcess, and 2 more using declarations for
System.ServiceProcess and System.Diagnostics), what's what you're
trying to find out about the service? Can't the ServiceController
class and/or WMI do the job or you just need to pinvoke the method?

Cheers,
Stoyan

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to