Type: Posts; User: dc_2000
Search took 0.04 seconds.
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:
June 23rd, 2015, 02:16 PM
Arjay, I don't have it open. And if I remove it from the solution itself, then I start getting linker errors about missing symbols.
June 23rd, 2015, 01:17 PM
Also, Igor, on the side note. Why am I getting this when I build your project?
June 23rd, 2015, 01:13 PM
I would surely love to have only a 32-bit build and eliminate messing with 64-bit-only DLL, but I'm still not quite clear on how this .exe approach would work. That .exe has to run somehow for the...
June 22nd, 2015, 07:09 PM
Appreciate it! ATL it is! And if I link it statically it doesn't drag as much "weight" as MFC either...
One last follow up question, guys. Since I will need to make both 32-bit and 64-bit builds...
June 20th, 2015, 02:30 PM
@Igor: I need to be able to recreate it for VS 2008. Can you give me general steps how you made that ComDll project?
June 19th, 2015, 11:05 PM
I should admit, that I do not have much experience working with COM/automation. My goal is to create a C++ module whose methods could be exposed/called by a JScript script running in...
Thank you for the explanation guys.
So is there a lot of code to switch from in-proc to out-of-proc COM? Like I said I've never tried out of proc in my limited exposure to COM.
Also Arjay, you...
Thanks. You have a point there.
One follow-up. I'm not entirely sure what's the difference between the in-proc and out-of-proc COM server. I understand that the former one is when my DLL is loaded...
No, not really. I was just trying to eliminate complexity, but it seems like I'm only adding it, hah?
You see, I am not really good with COM, but it seems like if I do in-process DLL, I will have...
My goal is to create a COM interface in my Windows local service, written with C++/MFC, whose methods could be called from a Windows Script Host JScript code running under a logged in interactive...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!