Win32 Server\Client Application

This is a discussion on Win32 Server\Client Application within the Windows Programming forums, part of the Platform Specific Boards category; Hi! I have to develop a graphical win32 server\client application in C language. For this project i need two app's, ...

  1. #1
    Registered User IndioDoido's Avatar
    Join Date
    Apr 2007
    Posts
    194

    Win32 Server\Client Application

    Hi!

    I have to develop a graphical win32 server\client application in C language.
    For this project i need two app's, one for the Admin and another for all the client computers.
    The admin app must be able to do several tasks in the clients computers, such as manage windows users and groups, shutdown/restart the computer, etc. These task's are to be send via command line to the client app.
    The client app is control panel based, and the only thing it does is interpret and execute the command's send from the admin app.
    The communication is done with named-pipes.

    Can anyone tell me were i can get a good tutorial, site or something else to get me started?
    "Artificial Intelligence usually beats natural stupidity."

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    It seems as though a client/server application using named pipes might be "overkill" to accomplish your listed tasks. You may want to consider just developing a GUI application that will take advantage of the appropriate API's to accomplish your tasks.

    For example, to shutdown/restart a remote workstation, you can use InitiateSystemShutdown. You can also use the Net Use API's to manage users and groups on a remote workstation. For example, NetLocalGroupAdd can be used to add a group to the remote workstation and NetLocalGroupAddMembers to add users to the groups on remote workstations.

    These API's have the option to be directed to either the local workstation or a remote workstation based on the parm inputs.

  3. #3
    Registered User IndioDoido's Avatar
    Join Date
    Apr 2007
    Posts
    194
    hi BobS0327, tnx for the reply

    The bad news is, i really have to use command line syntax to the workstation machine so that it can preform the task's. And these commands must be sent via named pipes.

    These is a school project, that's why i have to do it this way...

    Any ideas were i should start?
    "Artificial Intelligence usually beats natural stupidity."

  4. #4
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Any ideas were i should start?
    Check this link out. His book entitled Win32 System Programming has a lot of information on named pipes IPC. Also, follow the comments link on the web page to all the source code for the book. You'll really need the book to fully understand the source code examples.

  5. #5
    Registered User IndioDoido's Avatar
    Join Date
    Apr 2007
    Posts
    194
    thanks for the book reference!

    I've noticed that there is a newer edition of that book: "Windows System Programming (3rd Edition)", should this one be better? Or must I get the 2nd Ed.?
    "Artificial Intelligence usually beats natural stupidity."

  6. #6
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    I have the 2nd and 3rd edition. Either edition will be suitable to your needs. Personally, I'd go with the newer 3rd edition. Specifically, chapter 11 of the 3rd edition.

  7. #7
    Registered User IndioDoido's Avatar
    Join Date
    Apr 2007
    Posts
    194
    ok!

    I'm going for the 3rd Ed.
    Thanks for the help BobS0327
    "Artificial Intelligence usually beats natural stupidity."

  8. #8
    Registered User
    Join Date
    Apr 2006
    Posts
    137
    Win32 C++ Winsock Client Tutorial for your client communications using TCP and Win32 sockets.

    Win32 C++ Winsock Server Tutorial for server communication handling.

    Hope this helps.
    ★ Inferno provides Programming Tutorials in a variety of languages. Join our Programming Forums. ★

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 11-08-2008, 03:48 PM
  2. win32 application wizard in microsoft visual studio
    By stanlvw in forum C++ Programming
    Replies: 4
    Last Post: 02-25-2008, 12:26 AM
  3. Adding interface to Win32 console application
    By motiz in forum Windows Programming
    Replies: 5
    Last Post: 01-03-2008, 02:17 AM
  4. Painting with Tex on a Win32 Application
    By webzest in forum C++ Programming
    Replies: 5
    Last Post: 08-16-2004, 03:04 PM
  5. How To Convert A Dos-Prompt C++ PRogram Into Win32 Application ?
    By SonicWave in forum Windows Programming
    Replies: 1
    Last Post: 09-15-2001, 11:03 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21