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.03 seconds.

  1. 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.)
  2. 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...
  3. 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...
  4. 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...
  5. 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?
  6. 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
    ------- ---------...
  7. 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...
  8. 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...
  9. 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?
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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.)
  16. Re: Code review request for displaying UI over the logon screen

    While waiting for your responses, I did some research and found this MSDN sample that shows how to configure the ACL for the window station and the desktop. I originally didn't know that a window...
  17. Re: Code review request for displaying UI over the logon screen

    Thanks, Arjay.


    No, I haven't. The issue is that we're talking about two different desktops here. The one on the lock screen is what they refer to as a "Secure desktop" or "Winlogon", while the...
  18. Re: Code review request for displaying UI over the logon screen

    Yes, that's what I mean. It did the same thing as the calc.exe
  19. Re: Code review request for displaying UI over the logon screen

    Well, I thought so too. I built a simple (stock) Win32 GUI app and it did not show either. In other words, it's not the issue with the child GUI process that I'm running... it's something else in the...
  20. Code review request for displaying UI over the logon screen

    Hi everyone:

    I have a Windows service written in C++/WinAPI that runs in a local-system context. The service may perform some configurable power actions (such as put the system into sleep mode)...
  21. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Igor, I appreciate it. You are really helpful! I especially appreciate your idea of using out-of-proc server that's housed in an exe vs dll. That does solve me a lot of trouble. (Especially your...
  22. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    It actually just returns your usual HRESULT. So I guess doing SUCCEEDED() may do the job for checks for success.


    No, I don't. Sorry, Igor, can you repeat how one can change that default timeout...
  23. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Yeah, no problem. I'll ignore it. Plus I don't think I'll be rebuilding this COM server once it's done. I just need a quick shim for the JScript code.

    I'm more concerned about those 3 points I...
  24. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Oh, I see. That's really cool. And you're right. I was totally missing it. Thanks for bringing it up.

    There are some concerns that this brings up though. So let me hear your take on it:

    1. Is...
  25. Re: Trying to create MFC-based automation/COM Dll to be invoked from JScript

    Victor, what do you mean by close IDE editor? What? Completely? How else would I work with the source code then? If you mean just that file, then like I said above, it's not open:
    33669
Results 1 to 25 of 877
Page 1 of 36 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center