QueryServiceConfig2 from the win32 api

Posted on 2004-11-14
Last Modified: 2006-11-17
The parameter dwInfoLevel can be one of the following values:
- SERVICE_CONFIG_DESCRIPTION which returns a pointer to a SERVICE_DESCRIPTION structure

I need info from both structures so my question is whether I've to call QueryServiceConfig2 twice or is there a way where I can specify both and thereby only call QueryServiceconfig2 once ?

Question by:jead99
    1 Comment
    LVL 55

    Accepted Solution

    Sorry, you have to call function twice. QueryServiceConfig2 can't return you both values at a time.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Title # Comments Views Activity
    memory mapped I/O query 6 119
    FILE closing 11 63
    C++ vs C compilers 13 152
    Programming Arduino to control a Max7219 using C 2 83
    Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
    This tutorial is posted by Aaron Wojnowski, administrator at  To view more iPhone tutorials, visit This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
    The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now