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 33 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: How to get a list of applied Group Policy Objects?

    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...
  2. Re: How to get a list of applied Group Policy Objects?

    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...
  3. Re: How to get a list of applied Group Policy Objects?

    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...
  4. Re: How to get a list of applied Group Policy Objects?

    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...
  5. Re: How to get a list of applied Group Policy Objects?

    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...
  6. How to get a list of applied Group Policy Objects?

    Does anyone know how to retrieve a list of GPOs that are currently applied to the workstation?

    This stuff:
    32409
  7. Re: Driver Testing an error occured deploying the driver(s) in the solution:The syste

    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...
  8. Re: Is this a job for the Shell Name Extension?

    Appreciate it.

    I guess I need to plunge into device driver programming. Are there any resources to help the beginner?
  9. Is this a job for the Shell Name Extension?

    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...
  10. Re: how to safely use EnumProcesses older and new OS

    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...
  11. Replies
    26
    Views
    901

    Re: how auto size a control?

    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...
  12. Replies
    2
    Views
    253

    Re: NTFS Operating WINApi

    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.
  13. Re: how to safely use EnumProcesses older and new OS

    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...
  14. Re: what is the best way to read an array of chars

    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...
  15. Re: How to refresh logon screensaver parameter changes?

    Igor Vartanov, I'd like to thank you for suggesting your solution. Using it I was able to resolve this issue!

    Here's how:

    1. Use Igor's code from here and the following method to obtain the...
  16. Re: How to refresh logon screensaver parameter changes?

    Igor, you gave me an idea. I logged off all users and checked all running processes. As it shows here:

    32265

    Windows Logon is the only interactive process, that is LogonUI.exe:

    32267
    ...
  17. Re: How to refresh logon screensaver parameter changes?

    @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...
  18. Re: How to refresh logon screensaver parameter changes?

    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?


    LOCAL SERVICE
    sid=S-1-5-19
  19. Re: How to refresh logon screensaver parameter changes?

    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...
  20. Re: How to refresh logon screensaver parameter changes?

    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...
  21. Re: How to refresh logon screensaver parameter changes?

    Thanks, fellas.

    @zerver: I tried to call UpdatePerUserSystemParameters defined as such in User32.dll module:


    BOOL (WINAPI *pfnUpdatePerUserSystemParameters)(DWORD, BOOL);
    //Load it and then...
  22. Re: How to refresh logon screensaver parameter changes?

    If I call SystemParametersInfo from a service it returns error 1459, or ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION.
  23. [RESOLVED] How to refresh logon screensaver parameter changes?

    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:

    ...
  24. Replies
    11
    Views
    622

    Re: How reliable is SystemParametersInfo?

    Thanks. That is actually my current workaround for that method. I do this:


    BOOL bSecure = 0xdead;
    if(VistaOrLaterOS)
    {
    ::SystemParametersInfo(SPI_GETSCREENSAVESECURE, NULL, &bSecure, 0);...
  25. Replies
    11
    Views
    622

    Re: How reliable is SystemParametersInfo?

    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?
Results 1 to 25 of 805
Page 1 of 33 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center