Type: Posts; User: dc_2000
Search took 0.03 seconds.
Yes, Vladimir, I concluded that I'm dealing with a different problem when VM came up. Again thank you for your insight.
@2kaud: So how shall I interpret the results I get?
December 10th, 2013, 09:33 PM
Guys, I know I've been asking unordinary questions lately but I can't help but come across these bugs. Here's another one.
I run the following code on my Vista laptop from a user-mode process:
December 10th, 2013, 04:36 PM
Small observation off subject. Only a programmer can use nested parentheses in a regular English sentence :) and then remember to close off them both :D
Thanks, OReubens. I appreciate your...
December 10th, 2013, 01:40 AM
@OReubens: I haven't done reverse engineering for eons. What debugger do you use these days. (My dev machine is Windows 8 Pro x64.)
December 10th, 2013, 01:38 AM
@Arjay: Yeah I totally hear you. The only reason I'm suspecting that WMI were used internally is because one of the return error codes from the DevicePowerSetDeviceState API seems to be...
December 10th, 2013, 01:35 AM
Thank you for your efforts guys. And, no, it is not an issue with thread synchronization or a badly written code. I'm at the impasse though because I just learned that the log (with the issue) was...
December 4th, 2013, 01:24 PM
I'm suspecting that the look up is done with WMI internally. Does anyone have any idea how?
December 4th, 2013, 05:55 AM
Just tried, it returns the same incomplete list.
Here's what I get from calling powercfg -devicequery wake_programmable:
HID-compliant consumer control device
Broadcom NetLink (TM) Gigabit...
December 4th, 2013, 05:26 AM
I'm trying to achieve the results of the following command that lists all programmable wake devices, or those that can be set/reset to wake the system:
powercfg -devicequery wake_programmable
December 2nd, 2013, 12:19 AM
Thank you, guys. I see Arjay's point, if I know that all processes don't have unsaved data I can use a forced log-off. Unfortunately as 2kaud pointed out this process is not conclusive. I've...
November 30th, 2013, 11:59 PM
Agreed. Another example is programming service applications (or daemons as they're called in the Linux world.) They are technically console programs as well that are highly used everywhere. They...
November 30th, 2013, 11:52 PM
No, they're both set roughly at the same time (well obviously within a dozen CPU cycles apart) just like I showed in the code sample in my first post.
November 30th, 2013, 11:47 PM
I wrote a Windows application that comes with two modules: service and user-mode exes. The service implements its own scheduler and may log-off a user at a predefined time. For that I was using the...
November 28th, 2013, 05:27 PM
Thank you, fellas. Appreciate it.
@OReubens: What do you mean by "precision timing"? I'm sure you're referring to ms or even ns, and that's not what I'm after. What matters for me is that the...
November 24th, 2013, 06:53 AM
Hmm. As for the multimedia timer, can I use synchronization/waiting API on it?
November 24th, 2013, 06:52 AM
I compile all my code as Unicode by default.
Thank you, both, for your help.
November 23rd, 2013, 11:07 PM
@Arjay: I believe it's provided in the old NetBIOS format.
I think I was able to make it work (through the trial & error process). Here's the code:
LUID* pPSL = NULL;
November 23rd, 2013, 07:19 PM
I tried to add the following code to my code snippet above:
//Solution for Windows XP
CString strNm = /*strDomain + L"\\" +*/ strUserName;
DWORD dwPrefMaxLen =...
November 23rd, 2013, 04:39 PM
Thanks. I need this for a client workstation only. Let me show you what I came up with so far:
LUID* pPSL = NULL;
NTSTATUS ntStatus = LsaEnumerateLogonSessions(&nNumSess,...
November 23rd, 2013, 03:58 PM
Thanks, I thought about that too. But I don't think that a `double` variable precision would "err" in some rare instances like in my case here. It sounds more like a hardware timer occasional fault....
November 23rd, 2013, 02:19 AM
I'm using a version of the following code in my actual production code. It sets a waitable timer for some time in the future and then has one worker thread waiting for it to fire:
November 23rd, 2013, 12:29 AM
Is there a way to know from a Windows service application (running as a local-system) if a specific logged in interactive user account is configured with a roaming profile?
PS. Oh yes, forgot to...
November 23rd, 2013, 12:24 AM
@2kaud is absolutely correct. I can't imagine living without the VMs. They are indispensable for debugging. We're using VMWare workstation. Here's the screenshot from my dev machine:
November 23rd, 2013, 12:05 AM
@ovidiucucu: Your approach might be interesting. Unfortunately it's too late for me to try. As I said in the post #4 above I fixed it by doing the owner-drawn rendering with double-buffering, which...
Click Here to Expand Forum to Full Width