Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: dc_2000

Page 1 of 36 1 2 3 4

Search: Search took 0.17 seconds.

  1. Re: How to inject input text into a running console application

    US-English in both cases.
  2. Re: How to inject input text into a running console application

    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...
  3. Re: How to inject input text into a running console application

    Oh man, thanks a lot. Although WriteConsoleInput() is not easy to use, but that did it.
  4. How to inject input text into a running console application

    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...
  5. Re: [RESOLVED] Issues drawing background bitmap in edit box common control

    Yes, good point, Igor. Looks like old (and abandoned) Microsoft code.
  6. Re: Issues drawing background bitmap in edit box common control

    Again. You're creating a solid color brush. That is why you don't see that artifact in your app.
  7. Re: Issues drawing background bitmap in edit box common control

    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...
  8. Re: Issues drawing background bitmap in edit box common control

    Because OnCtlColor is sent to the parent window, is it not?
  9. [RESOLVED] Issues drawing background bitmap in edit box common control

    I was trying to subclass common-control's edit box to display a custom background bitmap.

    The brush for drawing is created as such:


    CBitmap bmp1;
    CBrush brush1;
    ...
  10. Windows SDKs repository -- looking for Cardfile source files

    Hi everyone:

    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...
  11. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    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.)
  12. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    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...
  13. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    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...
  14. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    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...
  15. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    Thanks.

    So what's the next step in trying to make this work? Any suggestions?
  16. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    Thank you, guys. To answer your questions.

    I tried it using the following configuration:

    Server Client
    ------- ---------...
  17. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    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...
  18. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    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...
  19. Re: InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    It is a C++ VS2008 project. But the code itself can be reduced down to plain C. Why would it matter though?
  20. InitiateShutdown fails for a remote computer with RPC_S_SERVER_UNAVAILABLE error

    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...
  21. Re: How to logoff a user when the workstation is locked?

    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:

    A. Use...
  22. Code to measure CPU usage returns inconsistent results for overclocked CPU

    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):


    int...
  23. How to lower privileges of a user process started from the system service?

    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...
  24. Re: Code review request for displaying UI over the logon screen

    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...
  25. Re: Code review request for displaying UI over the logon screen

    Yep, and it didn't come from me. It's MSDN. Plus, a buggy code too. (See my explanation of their GetLogonSid() method.)
Results 1 to 25 of 887
Page 1 of 36 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


HTML5 Development Center