Give me some opinions about a program's design

This is a discussion on Give me some opinions about a program's design within the Windows Programming forums, part of the Platform Specific Boards category; Some file folders will be shared in target computers by using SMB/CIFS protocol. The program is to monitor the file ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    42

    Give me some opinions about a program's design

    Some file folders will be shared in target computers by using SMB/CIFS protocol. The program is to monitor the file changing in those shared file folders. The workflow is if some new files are added to these shared folders or some existing files are deleted from these shared folders, my program should get the information and note it in a target file and the program must be run silent. Now, my solution is to write a function to wrap ReadDirectoryChangesW() win32 api to get the file change information and the whole program will be design to be a win32 service.

    Anyone, if you like, please give me some your opinions.

    Thanks!!

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Sounding.

    Kuphryn

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,662
    You should also account for changes that occur while your service isn't running (what whatever reason).
    You could maintain a log containing the last known set of files and their sizes and/or timestamps.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. design problem
    By s-men in forum C++ Programming
    Replies: 5
    Last Post: 06-09-2008, 05:59 AM
  2. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 06:32 AM
  3. Need Help with 2D Garden Design Program
    By frgmstr in forum C++ Programming
    Replies: 7
    Last Post: 02-04-2002, 03:58 PM
  4. How do you design programs?
    By compjinx in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 01-30-2002, 08:14 PM

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