|
Thank you very much.
I got the point; actually I was passing incorrect value for 4th parameter of FindWindowEx function.
Again thanks a lot.
Regards,
Mushq
|
|
|
|
|
Iain Clarke wrote: TCHAR buf [1001];
::GetWindowText (hWndFind, buf, 1000);
After all, why should we trust GetWindowText ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I'd already looked up *one* function today... Remembering whether the length included the end NUL (even though I was 99% sure it did) was too much to expect!
Iain.
Iain Clarke appears because CPallini still cares.
|
|
|
|
|
How can I change the config of Windows services with a MFC program??
|
|
|
|
|
MFC doesn't have any support that I'm aware of - but that doesn't stop you from using the good ol' win32 api.
Use OpenSCManager to connect to, um, the service control manager.
Then OpenService , ChangeServiceConfig and ChangeServiceConfig2 to make any changes to a specific service.
I hope that gave you a start. Sometimes it's hard to just find the function names!
Iain.
Iain Clarke appears because CPallini still cares.
|
|
|
|
|
Is there CList type class or programme in SDK(without using MFC)
Trioum
|
|
|
|
|
In SDK? No.
But you can use the STL library, and there's lots of classes there to help you.
vector, list, dequeue, etc. They're raw c++, so not chunky DLL to link to. [*]
Iain.
[*] I know you link with a lib... sheesh, you guys are so picky!
Iain Clarke appears because CPallini still cares.
|
|
|
|
|
Fortunately CList is confined inside MFC realm .
You can use std::list [^] instead.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
how do i stop the dialog from closing when u hit the escape button?
|
|
|
|
|
|
yea..its working fine here..?wen i give Esc button that dialog box was dissappered ....
|
|
|
|
|
please read and understand the question before replying
|
|
|
|
|
Chandrasekharanp wrote: how do i stop the dialog from closing when u hit the escape button?
It depends heavily on how far are you from my computer.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
that was a good PJ. but the context was different guru...
|
|
|
|
|
You can override Oncancel for Esc and OnOk for Enter.
|
|
|
|
|
i want to build a project to intercept all the communication data between any program and the CDROM.
But i have no idea for that? Any advice will be appreciated.
Regards.
|
|
|
|
|
Normally, you would write a filter driver and insert it into the storage stack. However, lots of CD burning programs circumvent that stack so that it is impossible to write a "catch ALL communication" program unless you can control the user software that will access the CD. If you can control that software, then you can tailor a solution to that specific software. You can't write a generic solution.
Judy
|
|
|
|
|
Thanks for your reply.But what's "control the user software" mean? Here,i want to intercept all the communication between a specified program and the CDROM. For example,the program would send several bytes to the CD to get back some useful information(especially for DeviceIoControl).
Is this aim reachable?
Regards.
|
|
|
|
|
I meant controlling WHAT software the user could use to write the CD. As I said, not all CD-burning software does things the "correct" way - some of them circumvent the device storage stack. If you have a specific program (and only that program) that you want to intercept, you may be able to write a filter to intercept all communications. It will depend on how that specific software does its communication and which communications you are interested in.
What you're attempting is sometimes possible and sometimes impossible - it all depends on how the specific software is written. You're going to need to get some tools for monitoring user mode <-> kernel mode communications to determine if it's even doable.
Judy
|
|
|
|
|
Here,the program i want to monitor is not a CD burner,but only a normal program reading data from CD. In fact,the program send some control command to the CD,then CD return some sensitive data stored in its nonvolatile memory.
|
|
|
|
|
Search the internet for software to monitor IRPs.
Judy
|
|
|
|
|
Hi,
How can I run application in hidden mode?
I try this:-
ShellExecute(NULL,_T("open"),szAppPath,_T(""),_T(""),SW_HIDE);
|
|
|
|
|
|
You can run your program and sends wm_hide to that program with ShowWindow.
|
|
|
|