Type: Posts; User: dc_2000
Search took 0.04 seconds.
February 26th, 2014, 08:18 PM
Thank you, fellas.
@2kaud: I guess I can theoretically hard-code the entire list from those Excel files. Still, it would be nice to retrieve it dynamically.
@ovidiucucu: I really appreciate...
February 25th, 2014, 03:52 PM
I found it too, but to be honest with you I couldn't even find a way to call it. It always seemed to fail for me so I quit trying... now after ovidiucucu's reply, I'm glad I did.
First off, I...
February 24th, 2014, 05:36 PM
I tried running the PowerShell script linked above, but it didn't seem to run on my Windows 7 client. Here's the output I get:
PS C:\Users\dcA\Desktop> .\ListAllGPOs.ps1 -q
Listing GPOs from...
February 24th, 2014, 04:38 PM
Thanks. Well, ideally, it should be C or C++. I guess I can call PowerShell script, generate the output into a file and then read that file from my C++ code, but I'd rather avoid it. So the task now...
February 24th, 2014, 03:12 PM
Thank you guys. I found that interface and the blog too. The issue I have (as most of the comments indicate at the bottom of those blog posts) is what to pass as the 'pszPath' parameter in the...
February 24th, 2014, 05:06 AM
Does anyone know how to retrieve a list of GPOs that are currently applied to the workstation?
February 5th, 2014, 03:41 AM
Dude, I can only offer to say that I'm in the same boat as you -- meaning that it is virtually impossible to find any resources on this subject. It almost feels like there are 5 people in the whole...
January 31st, 2014, 07:56 PM
I guess I need to plunge into device driver programming. Are there any resources to help the beginner?
January 30th, 2014, 05:46 PM
I am looking to develop the following:
- Map a local drive letter (say, K: )
- Redirect all files/folders on the mapped drive K via my service/program. (That internally will upload/download...
January 17th, 2014, 06:29 PM
OReubens, I can't believe you're posting this. Did you check it first?
Not true. You get processes for all desktops and user sessions. See example below.
Maybe I don't know something, but...
January 16th, 2014, 07:04 PM
Just want to correct you about something. You realize that by using WinAPIs & GDI in particular, you're going back to the technology of the early 90's, if not earlier. So there's really no...
January 16th, 2014, 06:47 PM
See if this is what you're looking for?
Otherwise you'll need to write a device driver if you need to tap into the NTFS file system directly, which I would strongly advise against.
January 16th, 2014, 06:26 PM
I actually did some comparative performance testing on process enumeration APIs, so let me share my findings.
First off, by older OS I'm assuming that you mean Windows XP SP3, since I can't...
January 16th, 2014, 05:50 PM
For simplicity you can allocate all 50,000 bytes in one contiguous byte array. Unless you're coding it for a mobile device (i.e. smartphone) that is not an issue for any modern PC. In that case if...
January 16th, 2014, 03:30 AM
Igor Vartanov, I'd like to thank you for suggesting your solution. Using it I was able to resolve this issue!
1. Use Igor's code from here and the following method to obtain the...
January 15th, 2014, 05:02 PM
Igor, you gave me an idea. I logged off all users and checked all running processes. As it shows here:
Windows Logon is the only interactive process, that is LogonUI.exe:
January 15th, 2014, 04:12 PM
@VictorN: LocalSystemSID is indeed S-1-5-18, which is the user SID that my local service is running under. I need to run my test process in a user account with SID S-1-5-19.
@Igor Vartanov: It's...
January 14th, 2014, 11:06 PM
A short update. I can't seem to find a way how to run my test process in the following context from the LocalSystem service. Any idea how to do it, guys?
January 14th, 2014, 11:57 AM
Thanks. It's a nice article. But unfortunately like one of the commenters noted there:
I'll play around with CreateProcessWithLogonW, CreateProcessWithTokenW, and ImpersonateLoggedOnUser to see...
January 14th, 2014, 03:36 AM
First off, thank you fellas for sticking with this issue!
@zerver: I'm not sure what to think about that UpdatePerUserSystemParameters() API. I tried calling it in a seemingly any possible...
January 13th, 2014, 04:47 AM
@zerver: I tried to call UpdatePerUserSystemParameters defined as such in User32.dll module:
BOOL (WINAPI *pfnUpdatePerUserSystemParameters)(DWORD, BOOL);
//Load it and then...
January 13th, 2014, 03:08 AM
If I call SystemParametersInfo from a service it returns error 1459, or ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION.
January 13th, 2014, 12:59 AM
I have a Windows service that may change the timeout of the logon screensaver in Windows (as described here.) To do that I change the following registry key to the timeout in seconds:
December 14th, 2013, 10:44 PM
Thanks. That is actually my current workaround for that method. I do this:
BOOL bSecure = 0xdead;
::SystemParametersInfo(SPI_GETSCREENSAVESECURE, NULL, &bSecure, 0);...
December 14th, 2013, 02:18 PM
Thank you for sticking with it. Yes, it must be some bug that never got fixed. The question though is how many more SystemParametersInfo parameters do the same thing?
Click Here to Expand Forum to Full Width