Click here to Skip to main content
15,899,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About waveinopen Pin
minihotto25-Oct-07 3:13
minihotto25-Oct-07 3:13 
GeneralYou're riding the wrong train, it seems. Pin
jhwurmbach25-Oct-07 4:53
jhwurmbach25-Oct-07 4:53 
GeneralRe: You're riding the wrong train, it seems. Pin
Hamid_RT25-Oct-07 5:14
Hamid_RT25-Oct-07 5:14 
GeneralRe: About waveinopen Pin
Nishad S25-Oct-07 17:08
Nishad S25-Oct-07 17:08 
QuestionWhere I heve to set thread In my application?? Pin
ashishbhatt25-Oct-07 0:21
ashishbhatt25-Oct-07 0:21 
AnswerRe: Where I heve to set thread In my application?? Pin
Mattias G25-Oct-07 3:56
Mattias G25-Oct-07 3:56 
AnswerRe: Where I heve to set thread In my application?? Pin
led mike25-Oct-07 4:17
led mike25-Oct-07 4:17 
QuestionProblem in retriving drivers fully qualified file name using Win32 API Pin
manish_c24-Oct-07 23:57
manish_c24-Oct-07 23:57 
Hi All,

I am writing a Win32 application to retrieve the information of all drivers on the user’s system. To do the same, following steps are used:-

1. SC_HANDLE hSCManager = OpenSCManager()

2. use the hSCManager to enumerate drivers using EnumServicesStatusExW( ) as follows
ENUM_SERVICE_STATUS_PROCESSW* pBuf ;
EnumServicesStatusExW( hSCManager, SC_ENUM_PROCESS_INFO, SERVICE_DRIVER, SERVICE_STATE_ALL, pBuf , dwBytesNeeded, &dwBytesNeeded, &dwTotalDrivers, &dwResumeHandle, NULL ) ;

3. I get service name using pServiceStatusProcess[i].lpServiceName

Now I need to retrieve further information of the driver for which I follow following steps
4. SC_HANDLE hService = OpenServiceW( hSCManager, wstrDriverName.c_str(), SC_MANAGER_ALL_ACCESS )

5. QueryServiceConfigW( hService, lpQueryServiceConfig, dwNeeded, &dwNeeded )

I get fully qualified path name of driver file name using lpQueryServiceConfig->lpBinaryPathName
My problem is, I am not able to get path name for all drivers. Dont know why? I am getting blank file name for following drivers
Abiosdsk, abp480n5, ACPIEC, adpu160m, Aha154x, aic78u2, aic78xx, AliIde, amsint, asc, asc3350p, asc3550, Atdisk, Beep, cbidf2k, cd20xrnt, Cdaudio, Cdfs, Changer, CmdIde

I need fully qualified filename of the driver to retrieve information like creation time, version information of the respective driver files.

Please let me know if there is any way to get the desired information.
Thanks in advance
Manish c


AnswerRe: Problem in retriving drivers fully qualified file name using Win32 API Pin
JudyL_MD25-Oct-07 2:56
JudyL_MD25-Oct-07 2:56 
QuestionCRichEditCtrl mystery - selection, streaming and formatting Pin
Mattias G24-Oct-07 23:51
Mattias G24-Oct-07 23:51 
QuestionOpenProcess API returns NULL for pid 0 and 4. Pin
manish_c24-Oct-07 23:20
manish_c24-Oct-07 23:20 
AnswerRe: OpenProcess API returns NULL for pid 0 and 4. Pin
ThatsAlok25-Oct-07 0:58
ThatsAlok25-Oct-07 0:58 
QuestionRe: OpenProcess API returns NULL for pid 0 and 4. Pin
David Crow25-Oct-07 3:01
David Crow25-Oct-07 3:01 
Questionaccess c: drive Pin
p_24-Oct-07 23:04
p_24-Oct-07 23:04 
AnswerRe: access c: drive Pin
ThatsAlok25-Oct-07 2:14
ThatsAlok25-Oct-07 2:14 
GeneralRe: access c: drive [modified] Pin
jhwurmbach25-Oct-07 4:58
jhwurmbach25-Oct-07 4:58 
GeneralRe: access c: drive Pin
Waldermort25-Oct-07 5:11
Waldermort25-Oct-07 5:11 
GeneralRe: access c: drive Pin
jhwurmbach25-Oct-07 5:22
jhwurmbach25-Oct-07 5:22 
GeneralRe: access c: drive Pin
ThatsAlok25-Oct-07 5:22
ThatsAlok25-Oct-07 5:22 
GeneralRe: access c: drive Pin
jhwurmbach25-Oct-07 5:25
jhwurmbach25-Oct-07 5:25 
GeneralRe: access c: drive Pin
ThatsAlok25-Oct-07 5:38
ThatsAlok25-Oct-07 5:38 
GeneralRe: access c: drive Pin
jhwurmbach25-Oct-07 5:57
jhwurmbach25-Oct-07 5:57 
GeneralRe: access c: drive Pin
Roger Broomfield25-Oct-07 6:25
Roger Broomfield25-Oct-07 6:25 
GeneralRe: access c: drive Pin
jhwurmbach25-Oct-07 6:31
jhwurmbach25-Oct-07 6:31 
GeneralRe: access c: drive Pin
Roger Broomfield25-Oct-07 7:01
Roger Broomfield25-Oct-07 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.