Type: Posts; User: dc_2000
Search took 0.03 seconds.
January 23rd, 2016, 03: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, 04: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, 12:02 PM
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, 05: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, 04:26 PM
So what's the next step in trying to make this work? Any suggestions?
January 20th, 2016, 11:28 AM
Thank you, guys. To answer your questions.
I tried it using the following configuration:
January 19th, 2016, 11: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, 05: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, 04: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, 02: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, 04: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, 11: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, 08: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, 03: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, 01: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.)
July 13th, 2015, 01:43 AM
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...
July 13th, 2015, 01:21 AM
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...
July 12th, 2015, 01:43 PM
Yes, that's what I mean. It did the same thing as the calc.exe
July 12th, 2015, 04:10 AM
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...
July 11th, 2015, 03:29 PM
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)...
June 24th, 2015, 01:06 PM
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...
June 23rd, 2015, 04:58 PM
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...
June 23rd, 2015, 02:53 PM
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...
June 23rd, 2015, 02:48 PM
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:
June 23rd, 2015, 02:27 PM
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:
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!