Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

QueryServiceConfig2 from the win32 api

The parameter dwInfoLevel can be one of the following values:
- SERVICE_CONFIG_DESCRIPTION which returns a pointer to a SERVICE_DESCRIPTION structure
- SERVICE_CONFIG_FAILURE_ACTIONS which returns a pointer to a SERVICE_FAILURE_ACTIONS 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 ?

Thanks.
0
jead99
Asked:
jead99
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
Sorry, you have to call function twice. QueryServiceConfig2 can't return you both values at a time.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now