Check the input action of the console
Console event handle: ACE_STDIN When the user enters the carriage return, the Handle_Signal method is executed by ACE_OS: READ (ACE_STDIN, BUFFER, SIZEOF BUFFER) method to read the user's input check directory whether the directory change event handle: int change_notification_flags = FILE_NOTIFY_CHANGE_FILE_NAME; this-> handle_ = ACE_TEXT_FindFirstChangeNotification (directory, // pointer to name of directory to watch FALSE, // flag for monitoring directory or directory tree change_notification_flags // filter conditions to watch for); after the triggering event, such as want to keep Trigger, you must call: findnextchangenotification (this-> Handle_); Method Turn off the trigger as follows :: FindCloseChangeNotification (this-> Handle_); Method Directory Content When changing, the signal is triggered, and the Handle_SingNAL method is executed.
Check if the registry key has changed the registry key change event handle: (:: regNotifyChangeKeyValue (this-> context_.key (), // handle of key to watch false, // flag for subkey notification reg_notify_change_name, // changes to be reported this-> event_.handle (), // handle of signaled event TRUE // flag for asynchronous reporting) involves the following main categories: ACE_Registry :: Naming_Context context_; which is provided with bind_new_context (temp_context_name, temp_context); a new Registration item UNBIND_CONTEXT (TEMP_CONTEXT_NAME); Delete a registry key method