# startup **Repository Path**: cheedoong/startup ## Basic Information - **Project Name**: startup - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-11-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # A cross-platform startup utility. In ANSI-C. * 1. On start and exit, check whether the program itself is in 1) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices or HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices -- if Winodws; 2) /etc/init.d/ -- if Linux; * 2. If a command line related to running this program is not in, write the command line to the corresponding position; * 3. fread and fwrite functions in ANSI-C as possible; For Windows, plese refer to: https://github.com/MonaSolutions/MonaServer/blob/2c17a274935181d8b794f1ae848eb2af929012ea/MonaBase/sources/WinRegistryKey.cpp * 4. #if defined (_WIN32) // defined (__linux__) http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system ## Ref: http://bjtime.cn/info/view.asp?id=7 http://zyhh.me/windows/windows-autorun.html http://blog.csdn.net/shb_derek1/article/details/8488391