Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: ha Newsgroups: comp.os.ms-windows.programmer.misc Subject: Win7: EnumServicesStatus andDnscache-Service Date: Mon, 02 Feb 2015 22:46:22 +0100 Organization: albasani.net Lines: 23 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net 22Q9dINQT7oTD1Cv94VoVEdBsDS++N9FvuAhIl+ME+3U+woijZLl2HRNs6Wn+z2TSo71hXhpwqn0yqxNsg+D1A== NNTP-Posting-Date: Mon, 2 Feb 2015 21:46:22 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="unT7VL4wSbjmojP26H3TmFSEaz4g6udwZZxHay6eIkRivG+6jpjk+Lm3d113GS7sG9hP6jHo54yElyQtH4BYg0xXbjQDRKUZr1p1HDtJzOAba1FW6wpIDnD79SQpJWfH"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 Cancel-Lock: sha1:GoTbY2v6s0F4s2+5UHz24SO4Px0= Xref: csiph.com comp.os.ms-windows.programmer.misc:37 Hi I have here an problem, when I test whether the Dnscache- service is running. I test that with EnumServicesStatus. If I start my program normal (means not as admin) it works all the time properly. But if I start it as admin, it "sometimes" can't find the Dnscache-service, though that service is active. When that happens, I experience nothing unusual on my computer. Has anyone an idea, why EnumServicesStatus fails randomly in admin-mode ? If it matters: My System: Win7 Ultimate 64 Bit