Type: Posts; User: Igor Vartanov
Search took 0.14 seconds.
December 23rd, 2014, 06:38 AM
Creating a Child Process with Redirected Input and Output
December 16th, 2014, 06:45 AM
Both times it results in window procedure direct calling. The difference is that when calling from worker thread, the caller thread gets blocked, the context is switched to UI thread, the window...
December 15th, 2014, 02:47 AM
Your understanding is correct. POSIX layer really exists in Windows, and the reason for introducing it was the intention of providing POSIX API for the sake of compatibility and easy porting from...
December 15th, 2014, 02:19 AM
You must be cautious when doing with SendMessage having possible deadlocks in mind (not in the case you showed), but in case you are, there would be no problem except one point: your GUI logic is...
December 13th, 2014, 04:54 PM
... which is MS Visual Studio 1.x (1.5 was the last from the family, a.f.a.i.r).
December 10th, 2014, 07:44 AM
The method still remains to be a class member, so compiler reasonably complains there's no global :: DefaultConsoleHandler exists.
December 10th, 2014, 12:23 AM
Your service application may create the proper pipe with explicit all-access security descriptor.
PSECURITY_DESCRIPTOR psd = NULL;
December 8th, 2014, 04:29 PM
Did it ever occur to you how much vague and ambiguous this sounds? Do you mean there should be some third process spawning the other two? Should those processes be running different executables or...
December 5th, 2014, 09:41 AM
If so, this would mean somebody fail to read or understand MSDN article, as the article is 100% clear about this particular situation. Not 99% or something, but 100%. :)
December 5th, 2014, 04:43 AM
Unfortunately with all this you remain were you were: no confidence in MSDN, and no real technical information from experts regarding supposed failures, like Windows version, resource type, module...
December 4th, 2014, 05:30 PM
I don't see any reason to start having any doubt regarding completeness or correctness of the MSDN article just because some Kowalczyk (never heard the name before) vaguely claimed a fail is...
December 4th, 2014, 02:56 AM
Never ran into this sort of issue, and NULL worked for me always fine. Though in case of any doubt, it's not that hard to put GetModuleHandle(NULL) instead of just NULL, I believe. Of course, the...
December 2nd, 2014, 01:59 PM
Thank you Vladimir, but this won't end his suffering, I guess. As I said, the guy somehow manages to call object's method without object itself, and this appears to be the most misty part.
December 2nd, 2014, 01:46 PM
Please don't be misguided, I never said it's something really from Windows codebase. This is just a demo for a pure concept of how fuction would be not able to fail but still fit the description MSDN...
December 2nd, 2014, 07:29 AM
Sorry, but this does not answer any of my questions.
Your problem is you're not good neither at C++, nor DLL. What made you think your DLL dies? I can't even imagine what "DLL dies" could mean,...
December 2nd, 2014, 06:50 AM
There's nothing to teach about in school. Please look at the code, SetImageList in particular:
December 2nd, 2014, 06:23 AM
Besides an advice to learn C++ and DLL basics I would suggest you to explain your design, what side is to do what. Looking at your code I can not see anything that would make any sense to me. Why...
December 1st, 2014, 06:32 PM
Notify icon, low level keyboard hook and the stuff in one sample :)
December 1st, 2014, 03:18 PM
Man, there's nothing to hahaha about. You are supposed to read documentation and follow the description with full obedience and not fictioning your own rules. Do you think you "somehow" know what to...
December 1st, 2014, 02:56 PM
Well, how much you know about C++ object lifecycle? You construct your Caller instance on the stack within CNewDLLApp constructor. It is going to die immediately after leaving the latter. Did you...
November 27th, 2014, 12:05 PM
"Variables that accept functions names" are function pointers or function objects, while lambda is an anonymous function or closure.
November 26th, 2014, 04:43 AM
And? Admin mode app is running in a separate session, of course your hook won't work across session bounds. Hooks are running limited by current session desktop.
If you want a guaranteed key...
November 24th, 2014, 07:22 PM
IOCTL_DISK_GET_PARTITION_INFO_EX looks like what you need.
November 24th, 2014, 06:58 PM
As we finally found out, you don't need no dll, so your hook proc is executed directly in your process. Having that, you can make the window handle just be a global variable, or static member of your...
November 24th, 2014, 06:27 PM
You neglect reading documentation carefully. In low level hook proc lparam is a pointer to KBDLLHOOKSTRUCT.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.