CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: tarantulaman

Search: Search took 0.02 seconds.

  1. Re: LocalSystem account has no network access

    Hello sockman,

    You are correct, the LocalSystem account behaves as it is named, locally lots of power but no network access.

    I am not entirely sure how to do this in your scenario but I have...
  2. Replies
    7
    Views
    1,696

    Re: Idle Detection and User Input

    Hi maverick786us,

    Have you looked at the SetWindowsHookEx(...) function. You can monitor messages (such as keyboard/mouse) that are sent to an app and determine if it is idle.

    It is not...
  3. Re: Classes--a noob question, easy to answer.

    Hello,

    Your code is fine, there is no problem with having two classes with the same named variables.

    Hope this helps.

    Dave
  4. Replies
    5
    Views
    695

    Re: Safe Multithreading... ?

    Hi,

    Have a look at InterlockedExchange(), it may help. It only allows one thread to access the variable at a time.

    Dave
  5. Re: How to timeout from ReadFile reading from named pipe?

    Hello Martin O,

    Have a look at:


    SetCommTimeouts()

    or try something like
  6. Replies
    10
    Views
    2,592

    Re: a Problem about MAC address

    Hello ILikeOrange,

    Sorry about that, I should really have tested what I posted. :blush:

    Anyway here goes, the missing bits are:




    // ALSO Link to - netapi32.lib
  7. Replies
    1
    Views
    540

    Re: Service Startup Problem

    Could you post some code please to make it easier to help with this issue. Especially the Run() method.

    Thanks,

    Dave
  8. Replies
    10
    Views
    2,042

    Re: String manipulation

    Why not use the STL string class?

    Are you using CComBSTR purely to simplify concatenation etc.
  9. Replies
    2
    Views
    11,357

    Re: Get MAC address

    Sorry missed out helper functions...



    #include <Nb30.h>
    const long lNAME_SIZE = 1024;

    BOOL ResetAdapter(UCHAR lana)
    {
    NCB ncb;
  10. Replies
    10
    Views
    2,592

    Re: a Problem about MAC address

    Sorry, missed other helper functions :blush:



    #include <Nb30.h>

    BOOL ResetAdapter(UCHAR lana)
    {
    NCB ncb;
  11. Replies
    10
    Views
    2,592

    Re: a Problem about MAC address

    Hi

    Here is some sample code, hope this helps with your understanding.



    void GetMacAddress()
    {
    // Ensure buffer size is big enough to hold the address
    TCHAR szBuffer[18];
  12. Replies
    2
    Views
    11,357

    Re: Get MAC address

    You probably do not need this now but in case someone else does, here goes.



    void GetMacAddress()
    {
    // Ensure buffer size is big enough to hold the address
    TCHAR szBuffer[18];
    DWORD...
  13. Replies
    4
    Views
    736

    Thanks for the responses. It is pretty much as I...

    Thanks for the responses. It is pretty much as I expected.

    Basically the service is an application launch monitoring system which gets info on apps run and controls their use through licenses.
    ...
  14. Replies
    1
    Views
    748

    Sorry ignore the above post. :blush: It is...

    Sorry ignore the above post. :blush:


    It is of course the debug privilege being enabled which allows me to kill services.

    Doh...
  15. Replies
    1
    Views
    748

    XP Task Manager

    Hello,

    Does anyone know why on windows XP machines I can kill services using the task manager and therefore make windows shutdown. (i.e. svchost)

    I am simply logged on as an administrator
    ...
  16. Replies
    4
    Views
    736

    Difficult Terminal Server Question

    Hello all,

    I have a service on a Windows 2000 machine, I have 2 user sessions on the machine (using WTS). This works ok on XP and 2003.

    User 1 creates a mapped network drive, eg....
  17. Replies
    7
    Views
    786

    Thanks galathaea, You were correct about the...

    Thanks galathaea,

    You were correct about the SE_DEBUG_NAME privilege, adding code to set it did the trick.

    Thanks again galathaea :D

    Dave
  18. Replies
    7
    Views
    786

    Thanks, I will give it a try and I will post...

    Thanks,

    I will give it a try and I will post back with the results.

    Dave
  19. Replies
    7
    Views
    786

    XP Process Path

    Hello,

    Does anyone know how to get the path to a process in XP. My problem is with fast user switching.

    I am trying to use the following code to get the path, but OpenProcess fails for all...
  20. Replies
    6
    Views
    5,320

    I will have a look at the LSA functions, thanks....

    I will have a look at the LSA functions, thanks.

    Dave
  21. Replies
    6
    Views
    5,320

    Hello alexey_1979, Thanks for the reply. ...

    Hello alexey_1979,

    Thanks for the reply.

    Sorry for being naive, but is there an advantage in using LsaEnumerateLogonSessions instead of the WTS functions.

    Thanks,

    Dave
  22. Replies
    6
    Views
    5,320

    Done it. This is how it works: // This...

    Done it.

    This is how it works:


    // This function shows an example of how to start a process in another users Terminal Server session on Windows XP.
    // Please note this code is executed within...
  23. Replies
    6
    Views
    5,320

    XP Process starting

    Hello all,

    I have a service running on XP, when a new user logs on, I want to create a process into that users session. Is there a well defined method of doing this?

    Basically this process will...
Results 1 to 23 of 23





Click Here to Expand Forum to Full Width

Featured