Type: Posts; User: dc_2000
Search took 0.17 seconds.
June 21st, 2016, 10:29 AM
US-English in both cases.
June 21st, 2016, 03:07 AM
Here's the code that I came up with. As you see using that API "slightly" complicates things :)
There's one issue though. It doesn't seem to work with Unicode characters. Just as an example, if I...
June 20th, 2016, 10:10 PM
Oh man, thanks a lot. Although WriteConsoleInput() is not easy to use, but that did it.
June 20th, 2016, 12:53 PM
My goal is to be able to inject text into a separate console application. I am able to access a running console process (using DLL injection method) where I can execute the following code from within...
June 20th, 2016, 12:52 PM
Yes, good point, Igor. Looks like old (and abandoned) Microsoft code.
June 15th, 2016, 10:27 AM
Again. You're creating a solid color brush. That is why you don't see that artifact in your app.
June 14th, 2016, 04:15 PM
Victor, I get the same result if I override WM_CTRLCOLOR from my subclass of CEdit class.
You see the difference between my example and the one you linked to is that they use solid color brush...
June 14th, 2016, 02:40 PM
Because OnCtlColor is sent to the parent window, is it not?
June 14th, 2016, 02:05 PM
I was trying to subclass common-control's edit box to display a custom background bitmap.
The brush for drawing is created as such:
I'm curious if there's a repository somewhere that hosts previous versions of Windows SDKs. I'm looking for the source code for the old Microsoft software, called Cardfile to read...
January 23rd, 2016, 02:52 PM
It's off subject, you're correct except one detail. It takes BOOLEAN and not BOOL, at least the last parameter. (See the asm I posted above.)
January 23rd, 2016, 03:05 AM
Oh wow, you're right. I didn't realize that Microsoft doesn't have to play by (their own) rules :)
Moreover it doesn't seem like error checks is in their repertoire either. I didn't want to do it...
January 21st, 2016, 11:02 AM
Thanks. Yeah, unfortunately it looks like I'll have to dig into the depths of RPC authentication :(
Hmm... I think "g" option just uses the SHUTDOWN_RESTARTAPPS flag, although with the...
January 20th, 2016, 04:52 PM
As I said above, I need to be able to use SHUTDOWN_INSTALL_UPDATES flag for a power action on a remote machine.
Just curious, did anyone use WsdrInitiateShutdown? I'm interested if it could do the...
January 20th, 2016, 03:26 PM
So what's the next step in trying to make this work? Any suggestions?
January 20th, 2016, 10:28 AM
Thank you, guys. To answer your questions.
I tried it using the following configuration:
January 19th, 2016, 10:15 PM
Arjay, are you talking about this one? (That's the first one that comes up for me.) I tried all this. Microsoft's shutdown works fine if I do the following from that same machine:
shutdown /r /m...
January 18th, 2016, 04:34 PM
If we run into an issue one of my colleagues may ask the same question in a different location (of his choosing.)
Still back to the point. Any idea about my actual question?
Can anyone at least...
January 17th, 2016, 03:09 PM
It is a C++ VS2008 project. But the code itself can be reduced down to plain C. Why would it matter though?
January 17th, 2016, 01:59 AM
I'm trying to implement rebooting of a remote computer with InitiateShutdown API using the following code, but it fails with RPC_S_SERVER_UNAVAILABLE or 1722 error code:
//Process is running as...
September 19th, 2015, 03:01 AM
I've been asked via a private message to post an update to this thread:
Well, yes and no. Yes, meaning that I learned to get around it. You basically have the following options:
August 14th, 2015, 10:24 AM
I have a somewhat strange behavior of the code I'm showing below. This code is called repeatedly to measure the current CPU usage in my application (the value measured for all CPU cores):
August 9th, 2015, 07:12 PM
In my local system service I may start a UI process that should run with credentials of the logged on Windows user, but at times, when there's no logged on user, it should be able to start in the...
July 13th, 2015, 02:20 PM
Arjay, you're the man! It worked!
All it needed is for my child GUI process to be created with the WS_EX_TOPMOST style. (This obviously wouldn't work with the stock calc.exe.) Evidently the logon...
July 13th, 2015, 12:37 PM
Yep, and it didn't come from me. It's MSDN. Plus, a buggy code too. (See my explanation of their GetLogonSid() method.)
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!