Merge lp:~ubuntu-weilnetz/ocsinventory-windows-agent/ocsinventory-windows-agent into lp:ocsinventory-windows-agent
- ocsinventory-windows-agent
- Merge into trunk
Proposed by
Stefan Weil
Status: | Needs review |
---|---|
Proposed branch: | lp:~ubuntu-weilnetz/ocsinventory-windows-agent/ocsinventory-windows-agent |
Merge into: | lp:ocsinventory-windows-agent |
Diff against target: |
1049 lines (+101/-101) 46 files modified
Agent/CapDownload.h (+1/-1) Agent/CapExecute.cpp (+1/-1) Agent/CapacityAbstract.cpp (+1/-1) Agent/OCSInventory.cpp (+2/-2) Agent/PluginApi.h (+1/-1) Agent/Plugins.cpp (+1/-1) Agent/Plugins.h (+1/-1) CHANGELOG (+8/-8) ComHTTP/HTTPCrypt.cpp (+1/-1) Download/Download.h (+1/-1) Download/Package.cpp (+2/-2) Download/Package.h (+2/-2) External_Deps/OCS_Make_Required_Libs.bat (+1/-1) NSIS_agent_setup/Agent.ini (+2/-2) NSIS_agent_setup/OCS-NG_Windows_Agent_Setup.nsi (+6/-6) NSIS_agent_setup/Readme.txt (+2/-2) OCSInventory Front/Config.cpp (+1/-1) OCSInventory Front/Config.h (+2/-2) OCSInventory Front/Deviceid.cpp (+1/-1) OCSInventory Front/ExecCommand.h (+5/-5) OCSInventory Front/InventoryRequest.cpp (+2/-2) OCSInventory Front/Log.h (+2/-2) OCSInventory Front/Markup.cpp (+1/-1) OCSInventory Front/OcsUtils.cpp (+1/-1) OCSInventory Front/RequestAbstract.cpp (+1/-1) OCSInventory Front/commonDownload.h (+1/-1) OPTIONS.TXT (+2/-2) OcsNotifyUser/OcsNotifyUser.h (+1/-1) OcsSystray/SystemTray.cpp (+2/-2) README.TXT (+5/-5) Service/NTService.cpp (+1/-1) Service/OcsService.cpp (+4/-4) SysInfo/DMI.cpp (+1/-1) SysInfo/DMI.h (+1/-1) SysInfo/Dtwinver.cpp (+3/-3) SysInfo/EDID.cpp (+1/-1) SysInfo/EDID.h (+3/-3) SysInfo/Registry.cpp (+9/-9) SysInfo/SnmpAPI.cpp (+1/-1) SysInfo/StoragePeripheral.cpp (+1/-1) SysInfo/SysInfo.cpp (+1/-1) SysInfo/VMSystem.h (+4/-4) TestSysInfo/TestSysInfoDlg.cpp (+8/-8) logon/OcsLogon.nsi (+1/-1) logon/Readme.txt (+1/-1) ocsinventory.ini.sample (+1/-1) |
To merge this branch: | bzr merge lp:~ubuntu-weilnetz/ocsinventory-windows-agent/ocsinventory-windows-agent |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Didier Liroulet | Pending | ||
Review via email: mp+258540@code.launchpad.net |
Commit message
Description of the change
Fix typos (mostly in comments) found by Codespell.
To post a comment you must log in.
Unmerged revisions
- 505. By Stefan Weil <email address hidden>
-
Fix typos (most of them were reported by Codespell)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'Agent/CapDownload.h' | |||
2 | --- Agent/CapDownload.h 2013-03-28 13:49:37 +0000 | |||
3 | +++ Agent/CapDownload.h 2015-05-07 18:53:51 +0000 | |||
4 | @@ -48,7 +48,7 @@ | |||
5 | 48 | 48 | ||
6 | 49 | protected: // Attributes | 49 | protected: // Attributes |
7 | 50 | CObArray m_tPackages; // Array of package to process | 50 | CObArray m_tPackages; // Array of package to process |
9 | 51 | CString m_csDownloadFragLatency; // Time to wait betwen fragment downloaded | 51 | CString m_csDownloadFragLatency; // Time to wait between fragment downloaded |
10 | 52 | CString m_csDownloadCycleLatency; // Time to wait between download cycle | 52 | CString m_csDownloadCycleLatency; // Time to wait between download cycle |
11 | 53 | CString m_csDownloadPeriodLatency; // Time to wait between each cycle priority ( = period) | 53 | CString m_csDownloadPeriodLatency; // Time to wait between each cycle priority ( = period) |
12 | 54 | CString m_csDownloadPeriodLength; // Number of period in a download cycle | 54 | CString m_csDownloadPeriodLength; // Number of period in a download cycle |
13 | 55 | 55 | ||
14 | === modified file 'Agent/CapExecute.cpp' | |||
15 | --- Agent/CapExecute.cpp 2013-12-27 12:43:13 +0000 | |||
16 | +++ Agent/CapExecute.cpp 2015-05-07 18:53:51 +0000 | |||
17 | @@ -119,7 +119,7 @@ | |||
18 | 119 | continue; | 119 | continue; |
19 | 120 | } | 120 | } |
20 | 121 | m_pLogger->log( LOG_PRIORITY_WARNING, _T( "EXECUTABLE PLUGIN => Executable plugin <%s> output encoded to UTF-8, trying to reload XML document"), cFinder.GetFilePath()); | 121 | m_pLogger->log( LOG_PRIORITY_WARNING, _T( "EXECUTABLE PLUGIN => Executable plugin <%s> output encoded to UTF-8, trying to reload XML document"), cFinder.GetFilePath()); |
22 | 122 | // UTF-8 encode successfull, try to reload | 122 | // UTF-8 encode successful, try to reload |
23 | 123 | if (!myXml.LoadFile( csOutputFile)) | 123 | if (!myXml.LoadFile( csOutputFile)) |
24 | 124 | { | 124 | { |
25 | 125 | m_pLogger->log( LOG_PRIORITY_ERROR, _T( "EXECUTABLE PLUGIN => Executable plugin <%s> output is not a valid XML document"), cFinder.GetFilePath()); | 125 | m_pLogger->log( LOG_PRIORITY_ERROR, _T( "EXECUTABLE PLUGIN => Executable plugin <%s> output is not a valid XML document"), cFinder.GetFilePath()); |
26 | 126 | 126 | ||
27 | === modified file 'Agent/CapacityAbstract.cpp' | |||
28 | --- Agent/CapacityAbstract.cpp 2011-05-19 16:55:18 +0000 | |||
29 | +++ Agent/CapacityAbstract.cpp 2015-05-07 18:53:51 +0000 | |||
30 | @@ -38,7 +38,7 @@ | |||
31 | 38 | { | 38 | { |
32 | 39 | } | 39 | } |
33 | 40 | 40 | ||
35 | 41 | // Intialization | 41 | // Initialization |
36 | 42 | void CCapacityAbstract::setProlog( CPrologRequest *pProlog) | 42 | void CCapacityAbstract::setProlog( CPrologRequest *pProlog) |
37 | 43 | { | 43 | { |
38 | 44 | m_pProlog = pProlog; | 44 | m_pProlog = pProlog; |
39 | 45 | 45 | ||
40 | === modified file 'Agent/OCSInventory.cpp' | |||
41 | --- Agent/OCSInventory.cpp 2014-04-09 16:22:56 +0000 | |||
42 | +++ Agent/OCSInventory.cpp 2015-05-07 18:53:51 +0000 | |||
43 | @@ -212,7 +212,7 @@ | |||
44 | 212 | ****/ | 212 | ****/ |
45 | 213 | if (m_pConfig->isLocalRequired()) | 213 | if (m_pConfig->isLocalRequired()) |
46 | 214 | { | 214 | { |
48 | 215 | m_pLogger->log( LOG_PRIORITY_NOTICE, _T( "AGENT => Local mode actived by /LOCAL argument: No network connection")); | 215 | m_pLogger->log( LOG_PRIORITY_NOTICE, _T( "AGENT => Local mode activated by /LOCAL argument: No network connection")); |
49 | 216 | csMessage.Format( _T( "%s\\%s.ocs"), m_pConfig->getLocalInventoryFolder(), getOcsDeviceID()->getDeviceID()); | 216 | csMessage.Format( _T( "%s\\%s.ocs"), m_pConfig->getLocalInventoryFolder(), getOcsDeviceID()->getDeviceID()); |
50 | 217 | // Create local connection object | 217 | // Create local connection object |
51 | 218 | if ((pConnexion = new CConnexionLocal( csMessage)) == NULL) | 218 | if ((pConnexion = new CConnexionLocal( csMessage)) == NULL) |
52 | @@ -322,7 +322,7 @@ | |||
53 | 322 | DeleteFile( csLabelFile); | 322 | DeleteFile( csLabelFile); |
54 | 323 | } | 323 | } |
55 | 324 | else | 324 | else |
57 | 325 | m_pLogger->log(LOG_PRIORITY_DEBUG, _T( "AGENT => Label sucessfully retrieved")); | 325 | m_pLogger->log(LOG_PRIORITY_DEBUG, _T( "AGENT => Label successfully retrieved")); |
58 | 326 | } | 326 | } |
59 | 327 | 327 | ||
60 | 328 | } | 328 | } |
61 | 329 | 329 | ||
62 | === modified file 'Agent/PluginApi.h' | |||
63 | --- Agent/PluginApi.h 2012-08-29 09:30:04 +0000 | |||
64 | +++ Agent/PluginApi.h 2015-05-07 18:53:51 +0000 | |||
65 | @@ -36,7 +36,7 @@ | |||
66 | 36 | extern "C" { | 36 | extern "C" { |
67 | 37 | #endif | 37 | #endif |
68 | 38 | 38 | ||
70 | 39 | // Hook called when agent loads, typicaly used to initialize plugin | 39 | // Hook called when agent loads, typically used to initialize plugin |
71 | 40 | typedef int (*HOOK_START)(void); | 40 | typedef int (*HOOK_START)(void); |
72 | 41 | OCSINVENTORY_API_EXPORTED int OCS_CALL_START_EXPORTED(); | 41 | OCSINVENTORY_API_EXPORTED int OCS_CALL_START_EXPORTED(); |
73 | 42 | // Hook called before sending prolog to server, typically used to add/modify information to prolog request | 42 | // Hook called before sending prolog to server, typically used to add/modify information to prolog request |
74 | 43 | 43 | ||
75 | === modified file 'Agent/Plugins.cpp' | |||
76 | --- Agent/Plugins.cpp 2012-08-29 09:30:04 +0000 | |||
77 | +++ Agent/Plugins.cpp 2015-05-07 18:53:51 +0000 | |||
78 | @@ -141,7 +141,7 @@ | |||
79 | 141 | nCount++; | 141 | nCount++; |
80 | 142 | } | 142 | } |
81 | 143 | cFinder.Close(); | 143 | cFinder.Close(); |
83 | 144 | m_pLogger->log(LOG_PRIORITY_DEBUG, _T( "DLL PLUGIN => %d DLL Plug-in(s) succesfully loaded on %d DLL(s) found"), nPlugin, nCount); | 144 | m_pLogger->log(LOG_PRIORITY_DEBUG, _T( "DLL PLUGIN => %d DLL Plug-in(s) successfully loaded on %d DLL(s) found"), nPlugin, nCount); |
84 | 145 | return nPlugin; | 145 | return nPlugin; |
85 | 146 | } | 146 | } |
86 | 147 | catch (CException *pEx) | 147 | catch (CException *pEx) |
87 | 148 | 148 | ||
88 | === modified file 'Agent/Plugins.h' | |||
89 | --- Agent/Plugins.h 2012-08-29 09:30:04 +0000 | |||
90 | +++ Agent/Plugins.h 2015-05-07 18:53:51 +0000 | |||
91 | @@ -45,7 +45,7 @@ | |||
92 | 45 | CPlugins(); | 45 | CPlugins(); |
93 | 46 | virtual ~CPlugins(); | 46 | virtual ~CPlugins(); |
94 | 47 | 47 | ||
96 | 48 | // Call plugin Hook when agent loads, typicaly used to initialize plugin | 48 | // Call plugin Hook when agent loads, typically used to initialize plugin |
97 | 49 | void startHook(); | 49 | void startHook(); |
98 | 50 | // Call plugin Hook before sending prolog to server, typically used to add/modify information to prolog request | 50 | // Call plugin Hook before sending prolog to server, typically used to add/modify information to prolog request |
99 | 51 | void prologWriteHook(CPrologRequest*); | 51 | void prologWriteHook(CPrologRequest*); |
100 | 52 | 52 | ||
101 | === modified file 'CHANGELOG' | |||
102 | --- CHANGELOG 2014-05-16 22:32:18 +0000 | |||
103 | +++ CHANGELOG 2015-05-07 18:53:51 +0000 | |||
104 | @@ -10,7 +10,7 @@ | |||
105 | 10 | 2.1.0.4 | 10 | 2.1.0.4 |
106 | 11 | * Get DMI data using OcsWmi DLL, instead of using own WMI code | 11 | * Get DMI data using OcsWmi DLL, instead of using own WMI code |
107 | 12 | * Fix bug #1062582 Windows agent leaks handles by initializing COM and COM Security into main executable, instead of DLL | 12 | * Fix bug #1062582 Windows agent leaks handles by initializing COM and COM Security into main executable, instead of DLL |
109 | 13 | * Enable more detailled debug logs, and fixes small issues | 13 | * Enable more detailed debug logs, and fixes small issues |
110 | 14 | 2.1.0.3 | 14 | 2.1.0.3 |
111 | 15 | * Fix XSLT for displaying CPU into "show computer information" command of systrau applet | 15 | * Fix XSLT for displaying CPU into "show computer information" command of systrau applet |
112 | 16 | * Fix Processor S/N filled with CPU Status if no serial number exist | 16 | * Fix Processor S/N filled with CPU Status if no serial number exist |
113 | @@ -25,9 +25,9 @@ | |||
114 | 25 | * Fix Bug #1217435: Packager tries to shutdown ocs service twice when upgrading from 1.X agent | 25 | * Fix Bug #1217435: Packager tries to shutdown ocs service twice when upgrading from 1.X agent |
115 | 26 | * Fix bug displaying before installation user notification at the end of installation, instead of post installation notification text | 26 | * Fix bug displaying before installation user notification at the end of installation, instead of post installation notification text |
116 | 27 | * Add package command start date/time and timeout date/time to log | 27 | * Add package command start date/time and timeout date/time to log |
118 | 28 | * Fix bug #1184426: Retreive processor Serial Number | 28 | * Fix bug #1184426: Retrieve processor Serial Number |
119 | 29 | * Fix bug disabling ability to control command execution timeout from server | 29 | * Fix bug disabling ability to control command execution timeout from server |
121 | 30 | * Try to retreive CPU S/N using WMI | 30 | * Try to retrieve CPU S/N using WMI |
122 | 31 | * There is now DMI table type greater than 127, so remove type lower and upper bound check | 31 | * There is now DMI table type greater than 127, so remove type lower and upper bound check |
123 | 32 | * WMI meory bank type codes are not the same as DMI codes | 32 | * WMI meory bank type codes are not the same as DMI codes |
124 | 33 | * Add printer information (Print server name and share, resolution, comment, Is printer shared, Is printer on network) | 33 | * Add printer information (Print server name and share, resolution, comment, Is printer shared, Is printer on network) |
125 | @@ -52,7 +52,7 @@ | |||
126 | 52 | * Fix bug #1045784: Ensure timestamp exists before verify expiration | 52 | * Fix bug #1045784: Ensure timestamp exists before verify expiration |
127 | 53 | * Add download error to differenciate full download timeout ERR_TIMEOUT, execute error crashing agent and entering in loop (ERR_EXECUTE_TOO_MANY_TRY) or execute timeout (ERR_EXECUTE_TIMEOUT). | 53 | * Add download error to differenciate full download timeout ERR_TIMEOUT, execute error crashing agent and entering in loop (ERR_EXECUTE_TOO_MANY_TRY) or execute timeout (ERR_EXECUTE_TIMEOUT). |
128 | 54 | * Rename ERR_ALREADY_SETUP en SUCCESS_ALREADY_SETUP | 54 | * Rename ERR_ALREADY_SETUP en SUCCESS_ALREADY_SETUP |
130 | 55 | * Bug #1031935: Windows MAK or VLK activation key are not stored on computer, so unable to retreive and set explicit message | 55 | * Bug #1031935: Windows MAK or VLK activation key are not stored on computer, so unable to retrieve and set explicit message |
131 | 56 | * Fix bug #980740: As we only read process output each 200ms, we have to read output even after process exited, to capture last outputed data by process | 56 | * Fix bug #980740: As we only read process output each 200ms, we have to read output even after process exited, to capture last outputed data by process |
132 | 57 | 2.0.5.0 | 57 | 2.0.5.0 |
133 | 58 | * Enhanced dynamic DLL plugin API | 58 | * Enhanced dynamic DLL plugin API |
134 | @@ -104,7 +104,7 @@ | |||
135 | 104 | 2.0.2, aka 2.0.2.0 | 104 | 2.0.2, aka 2.0.2.0 |
136 | 105 | * Fix Bug #872768: Crash in Registry.cpp - "Run-Time Check Failure #2 - Stack around the variable 'lpstrData' was corrupted." | 105 | * Fix Bug #872768: Crash in Registry.cpp - "Run-Time Check Failure #2 - Stack around the variable 'lpstrData' was corrupted." |
137 | 106 | * Ensure all array and objects are correctly freed | 106 | * Ensure all array and objects are correctly freed |
139 | 107 | * Fix Bug #859574: Switch to WMI to retreive Bios infos even if DMI access is successfull, but serial or model is not valid | 107 | * Fix Bug #859574: Switch to WMI to retrieve Bios infos even if DMI access is successful, but serial or model is not valid |
140 | 108 | * Fix Bug #435068: Do not register multiple time a monitor with the same serial | 108 | * Fix Bug #435068: Do not register multiple time a monitor with the same serial |
141 | 109 | * Fix Bug #860466: Propagate inherited permissions from $AppData\OCS Inventory NG\Agent to Download directory | 109 | * Fix Bug #860466: Propagate inherited permissions from $AppData\OCS Inventory NG\Agent to Download directory |
142 | 110 | 2.0.1, aka 2.0.1.0 | 110 | 2.0.1, aka 2.0.1.0 |
143 | @@ -124,7 +124,7 @@ | |||
144 | 124 | * When upgrading from agent 1.X, do not copy cacert.pem from INSTDIR to APPDATADIR if file exists into APPDATADIR, to allow changing cacert.pem using Packager | 124 | * When upgrading from agent 1.X, do not copy cacert.pem from INSTDIR to APPDATADIR if file exists into APPDATADIR, to allow changing cacert.pem using Packager |
145 | 125 | * Send setup result to server when deploying new OCS agent, without interfering with other package download | 125 | * Send setup result to server when deploying new OCS agent, without interfering with other package download |
146 | 126 | * Fix bug #783611 semicolon added to Type under Bios when using WMI | 126 | * Fix bug #783611 semicolon added to Type under Bios when using WMI |
148 | 127 | * When using WMI, get S/N from Win32_Bios, and if not availble, try Win32_SystemEnclosure then Win32_Baseboard | 127 | * When using WMI, get S/N from Win32_Bios, and if not available, try Win32_SystemEnclosure then Win32_Baseboard |
149 | 128 | * Fix memory leak in WMI Storage query | 128 | * Fix memory leak in WMI Storage query |
150 | 129 | * Delete OCS agent setup done file if found, when cleaning a package | 129 | * Delete OCS agent setup done file if found, when cleaning a package |
151 | 130 | * Build libcurl using _BIND_TO_CURRENT_VCLIBS_VERSION preprocessor define to bind it to the installed CRT versions, and include libcurl manifest as resource into DLL | 130 | * Build libcurl using _BIND_TO_CURRENT_VCLIBS_VERSION preprocessor define to bind it to the installed CRT versions, and include libcurl manifest as resource into DLL |
152 | @@ -133,7 +133,7 @@ | |||
153 | 133 | * Fix memory leak into OCsWmi.dll | 133 | * Fix memory leak into OCsWmi.dll |
154 | 134 | * Fix bogus network adapter description in some Cyrillic OS (perhaps other charset affected) | 134 | * Fix bogus network adapter description in some Cyrillic OS (perhaps other charset affected) |
155 | 135 | 2.0.0.18 | 135 | 2.0.0.18 |
157 | 136 | * Uses MS CRT/MFC 9.00.21022.8 on Windows 2000 to fix compatibilty problem of MS11-025 (http://blogs.msdn.com/b/vcblog/archive/2011/04/26/10158277.aspx) | 136 | * Uses MS CRT/MFC 9.00.21022.8 on Windows 2000 to fix compatibility problem of MS11-025 (http://blogs.msdn.com/b/vcblog/archive/2011/04/26/10158277.aspx) |
158 | 137 | * In NOTIFY mode, update only network inventory state, to avoid service launching agent every minute ! | 137 | * In NOTIFY mode, update only network inventory state, to avoid service launching agent every minute ! |
159 | 138 | * In NOTIFY mode, do not launch Registry, Download or Ipdiscover capacity, neither VBS or executable plugins (only DLL plugins) | 138 | * In NOTIFY mode, do not launch Registry, Download or Ipdiscover capacity, neither VBS or executable plugins (only DLL plugins) |
160 | 139 | * Fix some other memory leaks | 139 | * Fix some other memory leaks |
161 | @@ -199,7 +199,7 @@ | |||
162 | 199 | * Activate minimal log file ocsinventory.log by default into %PROGRAMDATA%\OCS Inventory NG\Agent | 199 | * Activate minimal log file ocsinventory.log by default into %PROGRAMDATA%\OCS Inventory NG\Agent |
163 | 200 | * Delay WMI first use until app start, to fix hang under Vista and higher. WMI cannot be used until WinMain starts | 200 | * Delay WMI first use until app start, to fix hang under Vista and higher. WMI cannot be used until WinMain starts |
164 | 201 | * Review WMI code, and use WMI to get Logical drives | 201 | * Review WMI code, and use WMI to get Logical drives |
166 | 202 | * Add service description and dependancies to standards windows services RPCSS, EventLog, WMI and Tcpip | 202 | * Add service description and dependencies to standards windows services RPCSS, EventLog, WMI and Tcpip |
167 | 203 | * Bug #568534 and #493609: Add 64 bits support for registry key | 203 | * Bug #568534 and #493609: Add 64 bits support for registry key |
168 | 204 | * Bug #563796: NOTIFY should send the IPGATEWAY | 204 | * Bug #563796: NOTIFY should send the IPGATEWAY |
169 | 205 | * Bug #484115: Frequency of inventory for ip_discover computer | 205 | * Bug #484115: Frequency of inventory for ip_discover computer |
170 | 206 | 206 | ||
171 | === modified file 'ComHTTP/HTTPCrypt.cpp' | |||
172 | --- ComHTTP/HTTPCrypt.cpp 2011-07-13 08:55:00 +0000 | |||
173 | +++ ComHTTP/HTTPCrypt.cpp 2015-05-07 18:53:51 +0000 | |||
174 | @@ -120,7 +120,7 @@ | |||
175 | 120 | 120 | ||
176 | 121 | BOOL CHTTPCrypt::encrypt( CString &csInput, CString &csOutput) | 121 | BOOL CHTTPCrypt::encrypt( CString &csInput, CString &csOutput) |
177 | 122 | { | 122 | { |
179 | 123 | BYTE pInitVector[AES_BLOCK_SIZE]; // Random generated intialization vector | 123 | BYTE pInitVector[AES_BLOCK_SIZE]; // Random generated initialization vector |
180 | 124 | EVP_CIPHER_CTX oEncCtx; // Cipher context | 124 | EVP_CIPHER_CTX oEncCtx; // Cipher context |
181 | 125 | const EVP_CIPHER *oChiper = NULL; // Cipher object | 125 | const EVP_CIPHER *oChiper = NULL; // Cipher object |
182 | 126 | LPBYTE pInBuffer = NULL, // Input buffer for data to encipher | 126 | LPBYTE pInBuffer = NULL, // Input buffer for data to encipher |
183 | 127 | 127 | ||
184 | === modified file 'Download/Download.h' | |||
185 | --- Download/Download.h 2014-04-09 16:22:56 +0000 | |||
186 | +++ Download/Download.h 2015-05-07 18:53:51 +0000 | |||
187 | @@ -70,7 +70,7 @@ | |||
188 | 70 | CLog *m_pLogger; | 70 | CLog *m_pLogger; |
189 | 71 | CConfig *m_pConfig; | 71 | CConfig *m_pConfig; |
190 | 72 | CConnexionAbstract *m_pConnexion; | 72 | CConnexionAbstract *m_pConnexion; |
192 | 73 | UINT m_uDownloadFragLatency; // Time to wait betwen fragment downloaded | 73 | UINT m_uDownloadFragLatency; // Time to wait between fragment downloaded |
193 | 74 | UINT m_uDownloadCycleLatency; // Time to wait between download cycle | 74 | UINT m_uDownloadCycleLatency; // Time to wait between download cycle |
194 | 75 | UINT m_uDownloadPeriodLatency; // Time to wait between each cycle priority ( = period) | 75 | UINT m_uDownloadPeriodLatency; // Time to wait between each cycle priority ( = period) |
195 | 76 | UINT m_uDownloadPeriodLength; // Number of period in a download cycle | 76 | UINT m_uDownloadPeriodLength; // Number of period in a download cycle |
196 | 77 | 77 | ||
197 | === modified file 'Download/Package.cpp' | |||
198 | --- Download/Package.cpp 2014-06-10 16:56:21 +0000 | |||
199 | +++ Download/Package.cpp 2015-05-07 18:53:51 +0000 | |||
200 | @@ -104,7 +104,7 @@ | |||
201 | 104 | 104 | ||
202 | 105 | if (m_csAction == OCS_DOWNLOAD_ACTION_LAUNCH) | 105 | if (m_csAction == OCS_DOWNLOAD_ACTION_LAUNCH) |
203 | 106 | { | 106 | { |
205 | 107 | // In LAUNCH, command is in the NAME atribute | 107 | // In LAUNCH, command is in the NAME attribute |
206 | 108 | if( !ExpandEnvironmentStrings( m_csName, cCommand, 255 )) | 108 | if( !ExpandEnvironmentStrings( m_csName, cCommand, 255 )) |
207 | 109 | { | 109 | { |
208 | 110 | return FALSE; | 110 | return FALSE; |
209 | @@ -705,7 +705,7 @@ | |||
210 | 705 | // Check if first fragment exist | 705 | // Check if first fragment exist |
211 | 706 | csFile.Format( _T( "%s\\%s\\%s-1"), getDownloadFolder(), m_csID, m_csID); | 706 | csFile.Format( _T( "%s\\%s\\%s-1"), getDownloadFolder(), m_csID, m_csID); |
212 | 707 | if (fileExists( csFile)) | 707 | if (fileExists( csFile)) |
214 | 708 | // Package not built, or previous build unsuccessfull | 708 | // Package not built, or previous build unsuccessful |
215 | 709 | return FALSE; | 709 | return FALSE; |
216 | 710 | // Check if ZIP exist | 710 | // Check if ZIP exist |
217 | 711 | csFile.Format( _T( "%s\\%s\\%s"), getDownloadFolder(), m_csID, OCS_DOWNLOAD_BUILD); | 711 | csFile.Format( _T( "%s\\%s\\%s"), getDownloadFolder(), m_csID, OCS_DOWNLOAD_BUILD); |
218 | 712 | 712 | ||
219 | === modified file 'Download/Package.h' | |||
220 | --- Download/Package.h 2014-06-10 16:56:21 +0000 | |||
221 | +++ Download/Package.h 2015-05-07 18:53:51 +0000 | |||
222 | @@ -104,7 +104,7 @@ | |||
223 | 104 | BOOL regReadPackageDigest( CString &csDigest); | 104 | BOOL regReadPackageDigest( CString &csDigest); |
224 | 105 | // Delete package digest from registry | 105 | // Delete package digest from registry |
225 | 106 | BOOL regDeletePackageDigest(); | 106 | BOOL regDeletePackageDigest(); |
227 | 107 | // Is execution result successfull | 107 | // Is execution result successful |
228 | 108 | BOOL isExecSuccessful( int nExitCode, CString &csStatus); | 108 | BOOL isExecSuccessful( int nExitCode, CString &csStatus); |
229 | 109 | 109 | ||
230 | 110 | protected: | 110 | protected: |
231 | @@ -131,7 +131,7 @@ | |||
232 | 131 | CString m_csNotifyText; // Before package action user notification text | 131 | CString m_csNotifyText; // Before package action user notification text |
233 | 132 | BOOL m_bNotifyCanAbort; // Is user able to abort package setup | 132 | BOOL m_bNotifyCanAbort; // Is user able to abort package setup |
234 | 133 | BOOL m_bNotifyCanDelay; // Is user able to report package setup at next agent execution | 133 | BOOL m_bNotifyCanDelay; // Is user able to report package setup at next agent execution |
236 | 134 | BOOL m_bNeedDoneAction; // Do we have to notify user after package successfull execution | 134 | BOOL m_bNeedDoneAction; // Do we have to notify user after package successful execution |
237 | 135 | CString m_csNeedDoneActionText; // After package success notification text | 135 | CString m_csNeedDoneActionText; // After package success notification text |
238 | 136 | }; | 136 | }; |
239 | 137 | 137 | ||
240 | 138 | 138 | ||
241 | === modified file 'External_Deps/OCS_Make_Required_Libs.bat' | |||
242 | --- External_Deps/OCS_Make_Required_Libs.bat 2014-08-25 13:08:56 +0000 | |||
243 | +++ External_Deps/OCS_Make_Required_Libs.bat 2015-05-07 18:53:51 +0000 | |||
244 | @@ -212,7 +212,7 @@ | |||
245 | 212 | echo * Please, fix problem before trying to build OCS Inventory NG ! * | 212 | echo * Please, fix problem before trying to build OCS Inventory NG ! * |
246 | 213 | echo * * | 213 | echo * * |
247 | 214 | echo * Here is some common errors: * | 214 | echo * Here is some common errors: * |
249 | 215 | echo * - Have you reviewed paths at the begining of this batch file ? * | 215 | echo * - Have you reviewed paths at the beginning of this batch file ? * |
250 | 216 | echo * - Have you updated Visual C++ version in cURL Makefile ? * | 216 | echo * - Have you updated Visual C++ version in cURL Makefile ? * |
251 | 217 | echo * - Have you build ZipArchive "Release Unicode STL MD DLL" ? * | 217 | echo * - Have you build ZipArchive "Release Unicode STL MD DLL" ? * |
252 | 218 | echo * * | 218 | echo * * |
253 | 219 | 219 | ||
254 | === modified file 'NSIS_agent_setup/Agent.ini' | |||
255 | --- NSIS_agent_setup/Agent.ini 2011-09-06 17:39:00 +0000 | |||
256 | +++ NSIS_agent_setup/Agent.ini 2015-05-07 18:53:51 +0000 | |||
257 | @@ -53,7 +53,7 @@ | |||
258 | 53 | 53 | ||
259 | 54 | [Field 7] | 54 | [Field 7] |
260 | 55 | Type=Checkbox | 55 | Type=Checkbox |
262 | 56 | Text=Do not registrer service - agent must be launched manually (= /NO_SERVICE) | 56 | Text=Do not register service - agent must be launched manually (= /NO_SERVICE) |
263 | 57 | Left=15 | 57 | Left=15 |
264 | 58 | Right=290 | 58 | Right=290 |
265 | 59 | Top=89 | 59 | Top=89 |
266 | @@ -71,7 +71,7 @@ | |||
267 | 71 | 71 | ||
268 | 72 | [Field 9] | 72 | [Field 9] |
269 | 73 | Type=Checkbox | 73 | Type=Checkbox |
271 | 74 | Text=Immediatly launch inventory (= /NOW) | 74 | Text=Immediately launch inventory (= /NOW) |
272 | 75 | Left=15 | 75 | Left=15 |
273 | 76 | Right=290 | 76 | Right=290 |
274 | 77 | Top=120 | 77 | Top=120 |
275 | 78 | 78 | ||
276 | === modified file 'NSIS_agent_setup/OCS-NG_Windows_Agent_Setup.nsi' | |||
277 | --- NSIS_agent_setup/OCS-NG_Windows_Agent_Setup.nsi 2014-08-24 07:54:24 +0000 | |||
278 | +++ NSIS_agent_setup/OCS-NG_Windows_Agent_Setup.nsi 2015-05-07 18:53:51 +0000 | |||
279 | @@ -557,7 +557,7 @@ | |||
280 | 557 | WriteINIStr "$PLUGINSDIR\agent.ini" "Field 9" "State" "0" | 557 | WriteINIStr "$PLUGINSDIR\agent.ini" "Field 9" "State" "0" |
281 | 558 | goto ParseCmd_Now_End | 558 | goto ParseCmd_Now_End |
282 | 559 | ParseCmd_Now: | 559 | ParseCmd_Now: |
284 | 560 | ; Immediately maunch inventory | 560 | ; Immediately launch inventory |
285 | 561 | WriteINIStr "$PLUGINSDIR\agent.ini" "Field 9" "State" "1" | 561 | WriteINIStr "$PLUGINSDIR\agent.ini" "Field 9" "State" "1" |
286 | 562 | ParseCmd_Now_End: | 562 | ParseCmd_Now_End: |
287 | 563 | ; Remove parsed arg from command line | 563 | ; Remove parsed arg from command line |
288 | @@ -1517,7 +1517,7 @@ | |||
289 | 1517 | IfErrors 0 +3 | 1517 | IfErrors 0 +3 |
290 | 1518 | StrCpy $logBuffer "Failed to remove key, but non blocking !" | 1518 | StrCpy $logBuffer "Failed to remove key, but non blocking !" |
291 | 1519 | Call Write_Log | 1519 | Call Write_Log |
293 | 1520 | ; Ensure service uninstall and migration process successfull | 1520 | ; Ensure service uninstall and migration process successful |
294 | 1521 | IfFileExists "$INSTDIR\PsApi.dll" TestInstall_Upgrade_Error | 1521 | IfFileExists "$INSTDIR\PsApi.dll" TestInstall_Upgrade_Error |
295 | 1522 | StrCpy $logBuffer "$\r$\nMigration process from old agent 4000 series succesfull, continuing setup...$\r$\n" | 1522 | StrCpy $logBuffer "$\r$\nMigration process from old agent 4000 series succesfull, continuing setup...$\r$\n" |
296 | 1523 | Call Write_Log | 1523 | Call Write_Log |
297 | @@ -1571,7 +1571,7 @@ | |||
298 | 1571 | Call Write_Log | 1571 | Call Write_Log |
299 | 1572 | strcpy $installSatus ":(" | 1572 | strcpy $installSatus ":(" |
300 | 1573 | clearerrors | 1573 | clearerrors |
302 | 1574 | ; MSVC 9 CRT redist 9.00.21022.8 for Windows 2000 compatiblity only (DO NOT WORK ON XP AND HIGHER) | 1574 | ; MSVC 9 CRT redist 9.00.21022.8 for Windows 2000 compatibility only (DO NOT WORK ON XP AND HIGHER) |
303 | 1575 | SetOutPath "$INSTDIR" | 1575 | SetOutPath "$INSTDIR" |
304 | 1576 | File "vc2008_redist_9.00.21022.8_for_Windows_2000\Microsoft.VC90.CRT.manifest" | 1576 | File "vc2008_redist_9.00.21022.8_for_Windows_2000\Microsoft.VC90.CRT.manifest" |
305 | 1577 | Iferrors 0 +5 | 1577 | Iferrors 0 +5 |
306 | @@ -1597,7 +1597,7 @@ | |||
307 | 1597 | Call Write_Log | 1597 | Call Write_Log |
308 | 1598 | strcpy $installSatus ":(" | 1598 | strcpy $installSatus ":(" |
309 | 1599 | clearerrors | 1599 | clearerrors |
311 | 1600 | ; MSVC 9 MFC redist 9.00.21022.8 for Windows 2000 compatiblity only (DO NOT WORK ON XP AND HIGHER) | 1600 | ; MSVC 9 MFC redist 9.00.21022.8 for Windows 2000 compatibility only (DO NOT WORK ON XP AND HIGHER) |
312 | 1601 | File "vc2008_redist_9.00.21022.8_for_Windows_2000\Microsoft.VC90.MFC.manifest" | 1601 | File "vc2008_redist_9.00.21022.8_for_Windows_2000\Microsoft.VC90.MFC.manifest" |
313 | 1602 | Iferrors 0 +5 | 1602 | Iferrors 0 +5 |
314 | 1603 | StrCpy $logBuffer "$logBuffer ERROR copying \Microsoft.VC90.MFC.manifest $\r$\n" | 1603 | StrCpy $logBuffer "$logBuffer ERROR copying \Microsoft.VC90.MFC.manifest $\r$\n" |
315 | @@ -1913,14 +1913,14 @@ | |||
316 | 1913 | 1913 | ||
317 | 1914 | 1914 | ||
318 | 1915 | ##################################################################### | 1915 | ##################################################################### |
320 | 1916 | # This function writes install status into log file when sucessfull install | 1916 | # This function writes install status into log file when successful install |
321 | 1917 | ##################################################################### | 1917 | ##################################################################### |
322 | 1918 | Function .onInstSuccess | 1918 | Function .onInstSuccess |
323 | 1919 | strcmp "$installSatus" ";-)" 0 onInstSuccess_Error | 1919 | strcmp "$installSatus" ";-)" 0 onInstSuccess_Error |
324 | 1920 | Push "SUCCESS" | 1920 | Push "SUCCESS" |
325 | 1921 | Call WriteAgentSetupDone | 1921 | Call WriteAgentSetupDone |
326 | 1922 | ${GetTime} "" "L" $0 $1 $2 $3 $4 $5 $6 | 1922 | ${GetTime} "" "L" $0 $1 $2 $3 $4 $5 $6 |
328 | 1923 | StrCpy $logBuffer "SUCCESS: ${PRODUCT_NAME} ${PRODUCT_VERSION} successfuly installed on $0/$1/$2 at $4:$5:$6$\r$\n$installSatus$\r$\n " | 1923 | StrCpy $logBuffer "SUCCESS: ${PRODUCT_NAME} ${PRODUCT_VERSION} successfully installed on $0/$1/$2 at $4:$5:$6$\r$\n$installSatus$\r$\n " |
329 | 1924 | Call Write_Log | 1924 | Call Write_Log |
330 | 1925 | goto onInstSuccess_end | 1925 | goto onInstSuccess_end |
331 | 1926 | onInstSuccess_Error: | 1926 | onInstSuccess_Error: |
332 | 1927 | 1927 | ||
333 | === modified file 'NSIS_agent_setup/Readme.txt' | |||
334 | --- NSIS_agent_setup/Readme.txt 2012-07-30 20:07:46 +0000 | |||
335 | +++ NSIS_agent_setup/Readme.txt 2015-05-07 18:53:51 +0000 | |||
336 | @@ -36,7 +36,7 @@ | |||
337 | 36 | 36 | ||
338 | 37 | MS11-025 critical fix introduces incompatibilty problem of MS CRT/MFC 9.0 with | 37 | MS11-025 critical fix introduces incompatibilty problem of MS CRT/MFC 9.0 with |
339 | 38 | Windows 2000 (http://blogs.msdn.com/b/vcblog/archive/2011/04/26/10158277.aspx). | 38 | Windows 2000 (http://blogs.msdn.com/b/vcblog/archive/2011/04/26/10158277.aspx). |
341 | 39 | So for Windows 2000 only, w've choosen to install original MS CRT/MFC | 39 | So for Windows 2000 only, we have chosen to install original MS CRT/MFC |
342 | 40 | 9.00.21022.8 provided with Visual C++ 2008 without Service Pack or hot fixes. | 40 | 9.00.21022.8 provided with Visual C++ 2008 without Service Pack or hot fixes. |
343 | 41 | You must put these files into "vc2008_redist_9.00.21022.8_for_Windows_2000" | 41 | You must put these files into "vc2008_redist_9.00.21022.8_for_Windows_2000" |
344 | 42 | sub directory before building NSIS installer. | 42 | sub directory before building NSIS installer. |
345 | @@ -82,4 +82,4 @@ | |||
346 | 82 | 82 | ||
347 | 83 | We hope it will works for you ! | 83 | We hope it will works for you ! |
348 | 84 | 84 | ||
349 | 85 | OCS Inventory Team | ||
350 | 86 | \ No newline at end of file | 85 | \ No newline at end of file |
351 | 86 | OCS Inventory Team | ||
352 | 87 | 87 | ||
353 | === modified file 'OCSInventory Front/Config.cpp' | |||
354 | --- OCSInventory Front/Config.cpp 2011-09-06 17:39:00 +0000 | |||
355 | +++ OCSInventory Front/Config.cpp 2015-05-07 18:53:51 +0000 | |||
356 | @@ -180,7 +180,7 @@ | |||
357 | 180 | m_csLocal.ReleaseBuffer(); | 180 | m_csLocal.ReleaseBuffer(); |
358 | 181 | // Scan for installed software or not | 181 | // Scan for installed software or not |
359 | 182 | m_bNoSoftware = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "NoSoftware"), FALSE, m_csConfigFile); | 182 | m_bNoSoftware = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "NoSoftware"), FALSE, m_csConfigFile); |
361 | 183 | // Scanning HKEY_CURRENT_USER hive for printers and sofware | 183 | // Scanning HKEY_CURRENT_USER hive for printers and software |
362 | 184 | m_bHKCU = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "HKCU"), FALSE, m_csConfigFile); | 184 | m_bHKCU = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "HKCU"), FALSE, m_csConfigFile); |
363 | 185 | // Disable prompting user for TAG value | 185 | // Disable prompting user for TAG value |
364 | 186 | m_bNoTag = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "NoTAG"), FALSE, m_csConfigFile); | 186 | m_bNoTag = (BOOL)GetPrivateProfileInt( OCS_AGENT_SECTION, _T( "NoTAG"), FALSE, m_csConfigFile); |
365 | 187 | 187 | ||
366 | === modified file 'OCSInventory Front/Config.h' | |||
367 | --- OCSInventory Front/Config.h 2011-09-06 17:39:00 +0000 | |||
368 | +++ OCSInventory Front/Config.h 2015-05-07 18:53:51 +0000 | |||
369 | @@ -107,7 +107,7 @@ | |||
370 | 107 | // What's the content of TAG (/TAG:"tag value") | 107 | // What's the content of TAG (/TAG:"tag value") |
371 | 108 | BOOL isTagTextProvided(); | 108 | BOOL isTagTextProvided(); |
372 | 109 | LPCTSTR getTagText(); | 109 | LPCTSTR getTagText(); |
374 | 110 | // Does agent also scan HKEY_CURRENT_USER hive for printers and sofware (/HKCU) | 110 | // Does agent also scan HKEY_CURRENT_USER hive for printers and software (/HKCU) |
375 | 111 | BOOL isHkcuRequired(); | 111 | BOOL isHkcuRequired(); |
376 | 112 | // Is Inventory forced (/FORCE) | 112 | // Is Inventory forced (/FORCE) |
377 | 113 | BOOL isForceInventoryRequired(); | 113 | BOOL isForceInventoryRequired(); |
378 | @@ -141,7 +141,7 @@ | |||
379 | 141 | void setIpDiscoverLatency(LPCTSTR lpstrLatency = NULL); | 141 | void setIpDiscoverLatency(LPCTSTR lpstrLatency = NULL); |
380 | 142 | // Does agent launches a fast IpDiscover scan, without taking care of network load, or not | 142 | // Does agent launches a fast IpDiscover scan, without taking care of network load, or not |
381 | 143 | void setFastIpRequired( BOOL bFast = TRUE); | 143 | void setFastIpRequired( BOOL bFast = TRUE); |
383 | 144 | // Set if agent also scan HKEY_CURRENT_USER hive for printers and sofware (/HKCU) | 144 | // Set if agent also scan HKEY_CURRENT_USER hive for printers and software (/HKCU) |
384 | 145 | void setHkcuRequired( BOOL bHKCU = TRUE); | 145 | void setHkcuRequired( BOOL bHKCU = TRUE); |
385 | 146 | // Set Communication Provider DLL to use without extension .DLL | 146 | // Set Communication Provider DLL to use without extension .DLL |
386 | 147 | void setCommunicationProvider( LPCTSTR lpstrDll); | 147 | void setCommunicationProvider( LPCTSTR lpstrDll); |
387 | 148 | 148 | ||
388 | === modified file 'OCSInventory Front/Deviceid.cpp' | |||
389 | --- OCSInventory Front/Deviceid.cpp 2011-05-19 16:55:18 +0000 | |||
390 | +++ OCSInventory Front/Deviceid.cpp 2015-05-07 18:53:51 +0000 | |||
391 | @@ -145,7 +145,7 @@ | |||
392 | 145 | delete pCb; | 145 | delete pCb; |
393 | 146 | return FALSE; | 146 | return FALSE; |
394 | 147 | } | 147 | } |
396 | 148 | // All sucessfull | 148 | // All successful |
397 | 149 | delete pCb; | 149 | delete pCb; |
398 | 150 | return TRUE; | 150 | return TRUE; |
399 | 151 | } | 151 | } |
400 | 152 | 152 | ||
401 | === modified file 'OCSInventory Front/ExecCommand.h' | |||
402 | --- OCSInventory Front/ExecCommand.h 2012-09-26 16:31:18 +0000 | |||
403 | +++ OCSInventory Front/ExecCommand.h 2015-05-07 18:53:51 +0000 | |||
404 | @@ -51,7 +51,7 @@ | |||
405 | 51 | * We don't care about command ending, so stdout and stderr | 51 | * We don't care about command ending, so stdout and stderr |
406 | 52 | * will not be grabbed, and we will not try to get process | 52 | * will not be grabbed, and we will not try to get process |
407 | 53 | * exit code | 53 | * exit code |
409 | 54 | * Return EXEC_SUCCESSFULL if all successfull | 54 | * Return EXEC_SUCCESSFULL if all successful |
410 | 55 | * EXEC_ERROR_START_COMMAND if start command error | 55 | * EXEC_ERROR_START_COMMAND if start command error |
411 | 56 | */ | 56 | */ |
412 | 57 | int execNoWait(LPCTSTR lpstrCommand, LPCTSTR lpstrPath); | 57 | int execNoWait(LPCTSTR lpstrCommand, LPCTSTR lpstrPath); |
413 | @@ -59,12 +59,12 @@ | |||
414 | 59 | /** | 59 | /** |
415 | 60 | * Exec command in the directory path. Make sure that the | 60 | * Exec command in the directory path. Make sure that the |
416 | 61 | * executable is either in the path or specify the full path. | 61 | * executable is either in the path or specify the full path. |
418 | 62 | * We will try to get process exit code (use getExitCode() to retreive it). | 62 | * We will try to get process exit code (use getExitCode() to retrieve it). |
419 | 63 | * If bCapture is TRUE, stdout and stderr will be grabbed (use getOutput() | 63 | * If bCapture is TRUE, stdout and stderr will be grabbed (use getOutput() |
421 | 64 | * to retreive it) | 64 | * to retrieve it) |
422 | 65 | * We will wait until command end (but if command starts other | 65 | * We will wait until command end (but if command starts other |
423 | 66 | * processes/threads, we will not be able to wait for those ending) | 66 | * processes/threads, we will not be able to wait for those ending) |
425 | 67 | * Return EXEC_SUCCESSFULL if all successfull | 67 | * Return EXEC_SUCCESSFULL if all successful |
426 | 68 | * EXEC_ERROR_START_COMMAND if start command error | 68 | * EXEC_ERROR_START_COMMAND if start command error |
427 | 69 | * EXEC_ERROR_WAIT_COMMAND if wait or get exit code/ouput error, | 69 | * EXEC_ERROR_WAIT_COMMAND if wait or get exit code/ouput error, |
428 | 70 | */ | 70 | */ |
429 | @@ -75,7 +75,7 @@ | |||
430 | 75 | * executable is either in the path or specify the full path. | 75 | * executable is either in the path or specify the full path. |
431 | 76 | * Wait for command AND ALL others threads/processes it may launch to finish. | 76 | * Wait for command AND ALL others threads/processes it may launch to finish. |
432 | 77 | * In this case, we try get exit code, but NOT stdout and stderr | 77 | * In this case, we try get exit code, but NOT stdout and stderr |
434 | 78 | * Return EXEC_SUCCESSFULL if all successfull | 78 | * Return EXEC_SUCCESSFULL if all successful |
435 | 79 | * EXEC_ERROR_START_COMMAND if start command error | 79 | * EXEC_ERROR_START_COMMAND if start command error |
436 | 80 | * EXEC_ERROR_WAIT_COMMAND if wait error, | 80 | * EXEC_ERROR_WAIT_COMMAND if wait error, |
437 | 81 | */ | 81 | */ |
438 | 82 | 82 | ||
439 | === modified file 'OCSInventory Front/InventoryRequest.cpp' | |||
440 | --- OCSInventory Front/InventoryRequest.cpp 2014-08-06 15:06:08 +0000 | |||
441 | +++ OCSInventory Front/InventoryRequest.cpp 2015-05-07 18:53:51 +0000 | |||
442 | @@ -156,7 +156,7 @@ | |||
443 | 156 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Port(s)"), m_PortList.GetCount()); | 156 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Port(s)"), m_PortList.GetCount()); |
444 | 157 | // Update System Controllers | 157 | // Update System Controllers |
445 | 158 | bSuccess = bSuccess && m_pTheDB->UpdateSystemControllers( m_SystemControllerList); | 158 | bSuccess = bSuccess && m_pTheDB->UpdateSystemControllers( m_SystemControllerList); |
447 | 159 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Controler(s)"), m_SystemControllerList.GetCount()); | 159 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Controller(s)"), m_SystemControllerList.GetCount()); |
448 | 160 | // Update System Slots | 160 | // Update System Slots |
449 | 161 | bSuccess = bSuccess && m_pTheDB->UpdateSystemSlots( m_SlotList); | 161 | bSuccess = bSuccess && m_pTheDB->UpdateSystemSlots( m_SlotList); |
450 | 162 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Slot(s)"), m_SlotList.GetCount()); | 162 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => XML Update %u System Slot(s)"), m_SlotList.GetCount()); |
451 | @@ -710,7 +710,7 @@ | |||
452 | 710 | if (!m_pSysInfo->getSystemControllers( &m_SystemControllerList)) | 710 | if (!m_pSysInfo->getSystemControllers( &m_SystemControllerList)) |
453 | 711 | m_pLogger->log( LOG_PRIORITY_WARNING, _T( "INVENTORY => Failed to retrieve system controlers")); | 711 | m_pLogger->log( LOG_PRIORITY_WARNING, _T( "INVENTORY => Failed to retrieve system controlers")); |
454 | 712 | else | 712 | else |
456 | 713 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => %d system controler(s) found"), | 713 | m_pLogger->log( LOG_PRIORITY_DEBUG, _T( "INVENTORY => %d system controller(s) found"), |
457 | 714 | m_SystemControllerList.GetCount()); | 714 | m_SystemControllerList.GetCount()); |
458 | 715 | // Get Physical storage devices | 715 | // Get Physical storage devices |
459 | 716 | if (!m_pSysInfo->getStoragePeripherals( &m_StorageList)) | 716 | if (!m_pSysInfo->getStoragePeripherals( &m_StorageList)) |
460 | 717 | 717 | ||
461 | === modified file 'OCSInventory Front/Log.h' | |||
462 | --- OCSInventory Front/Log.h 2011-05-04 13:48:35 +0000 | |||
463 | +++ OCSInventory Front/Log.h 2015-05-07 18:53:51 +0000 | |||
464 | @@ -24,7 +24,7 @@ | |||
465 | 24 | 24 | ||
466 | 25 | /* OCS Inventory NG log modes | 25 | /* OCS Inventory NG log modes |
467 | 26 | /DEBUG=0 => default mode | 26 | /DEBUG=0 => default mode |
469 | 27 | /DEBUG=1 => DEBUG mode, for more detailled logs | 27 | /DEBUG=1 => DEBUG mode, for more detailed logs |
470 | 28 | /DEBUG=2 => TRACE mode, for full logs, including XML and SysInfo logs | 28 | /DEBUG=2 => TRACE mode, for full logs, including XML and SysInfo logs |
471 | 29 | */ | 29 | */ |
472 | 30 | 30 | ||
473 | @@ -71,7 +71,7 @@ | |||
474 | 71 | // Trace log for full mode debug | 71 | // Trace log for full mode debug |
475 | 72 | void log_trace( LPCTSTR lpstrFormat, va_list args); | 72 | void log_trace( LPCTSTR lpstrFormat, va_list args); |
476 | 73 | 73 | ||
478 | 74 | private: // Atributes | 74 | private: // Attributes |
479 | 75 | // Log filename | 75 | // Log filename |
480 | 76 | CString m_csFileName; | 76 | CString m_csFileName; |
481 | 77 | // The log file opened | 77 | // The log file opened |
482 | 78 | 78 | ||
483 | === modified file 'OCSInventory Front/Markup.cpp' | |||
484 | --- OCSInventory Front/Markup.cpp 2012-10-25 19:49:58 +0000 | |||
485 | +++ OCSInventory Front/Markup.cpp 2015-05-07 18:53:51 +0000 | |||
486 | @@ -169,7 +169,7 @@ | |||
487 | 169 | { | 169 | { |
488 | 170 | // This a test child, remove it... | 170 | // This a test child, remove it... |
489 | 171 | m_pCurrentNode->RemoveChild( pChild); | 171 | m_pCurrentNode->RemoveChild( pChild); |
491 | 172 | // ...and restart from the begining of childs | 172 | // ...and restart from the beginning of childs |
492 | 173 | pChild = NULL; | 173 | pChild = NULL; |
493 | 174 | } | 174 | } |
494 | 175 | } | 175 | } |
495 | 176 | 176 | ||
496 | === modified file 'OCSInventory Front/OcsUtils.cpp' | |||
497 | --- OCSInventory Front/OcsUtils.cpp 2014-08-24 07:40:05 +0000 | |||
498 | +++ OCSInventory Front/OcsUtils.cpp 2015-05-07 18:53:51 +0000 | |||
499 | @@ -385,7 +385,7 @@ | |||
500 | 385 | UINT uLength; | 385 | UINT uLength; |
501 | 386 | 386 | ||
502 | 387 | OpenSSL_add_all_digests(); | 387 | OpenSSL_add_all_digests(); |
504 | 388 | // Set the algorythm | 388 | // Set the algorithm |
505 | 389 | if (!(evpMD = EVP_get_digestbyname( GetAnsiFromUnicode( lpstrAlgo)))) | 389 | if (!(evpMD = EVP_get_digestbyname( GetAnsiFromUnicode( lpstrAlgo)))) |
506 | 390 | // Unsupported digest | 390 | // Unsupported digest |
507 | 391 | return FALSE; | 391 | return FALSE; |
508 | 392 | 392 | ||
509 | === modified file 'OCSInventory Front/RequestAbstract.cpp' | |||
510 | --- OCSInventory Front/RequestAbstract.cpp 2011-05-19 16:55:18 +0000 | |||
511 | +++ OCSInventory Front/RequestAbstract.cpp 2015-05-07 18:53:51 +0000 | |||
512 | @@ -81,7 +81,7 @@ | |||
513 | 81 | csXml.Delete( nIndex, nCount - nIndex); | 81 | csXml.Delete( nIndex, nCount - nIndex); |
514 | 82 | // and insert space | 82 | // and insert space |
515 | 83 | csXml.Insert( nIndex, " "); | 83 | csXml.Insert( nIndex, " "); |
517 | 84 | // Find next occurence | 84 | // Find next occurrence |
518 | 85 | nIndex = csXml.Find( "&#x", nIndex); | 85 | nIndex = csXml.Find( "&#x", nIndex); |
519 | 86 | } | 86 | } |
520 | 87 | m_cmXml.SetDoc( csXml); | 87 | m_cmXml.SetDoc( csXml); |
521 | 88 | 88 | ||
522 | === modified file 'OCSInventory Front/commonDownload.h' | |||
523 | --- OCSInventory Front/commonDownload.h 2013-03-19 18:25:18 +0000 | |||
524 | +++ OCSInventory Front/commonDownload.h 2015-05-07 18:53:51 +0000 | |||
525 | @@ -101,7 +101,7 @@ | |||
526 | 101 | BOOL OCSINVENTORYFRONT_API resumeDownload(); | 101 | BOOL OCSINVENTORYFRONT_API resumeDownload(); |
527 | 102 | // If suspend file exists, download is suspended | 102 | // If suspend file exists, download is suspended |
528 | 103 | BOOL OCSINVENTORYFRONT_API isDownloadSuspended(); | 103 | BOOL OCSINVENTORYFRONT_API isDownloadSuspended(); |
530 | 104 | // Get exclusive acces to download directory by locking lock file | 104 | // Get exclusive access to download directory by locking lock file |
531 | 105 | BOOL OCSINVENTORYFRONT_API lockDownload(); | 105 | BOOL OCSINVENTORYFRONT_API lockDownload(); |
532 | 106 | // Release exclusive access | 106 | // Release exclusive access |
533 | 107 | BOOL OCSINVENTORYFRONT_API unlockDownload(); | 107 | BOOL OCSINVENTORYFRONT_API unlockDownload(); |
534 | 108 | 108 | ||
535 | === modified file 'OPTIONS.TXT' | |||
536 | --- OPTIONS.TXT 2011-09-06 17:39:00 +0000 | |||
537 | +++ OPTIONS.TXT 2015-05-07 18:53:51 +0000 | |||
538 | @@ -62,7 +62,7 @@ | |||
539 | 62 | /server=http[s]://server.domain.tld[:port]/ocsinventory | 62 | /server=http[s]://server.domain.tld[:port]/ocsinventory |
540 | 63 | Agent try to connect to Communication Server address and port Listening on http[s]://server.domain.tld[:port]/ocsinventory | 63 | Agent try to connect to Communication Server address and port Listening on http[s]://server.domain.tld[:port]/ocsinventory |
541 | 64 | 64 | ||
543 | 65 | /ssl=0|1 When usng SSL connections, 0 => SSL without certificate validation, 1 => SSL with server certificate validation required (needs CA certificate) | 65 | /ssl=0|1 When using SSL connections, 0 => SSL without certificate validation, 1 => SSL with server certificate validation required (needs CA certificate) |
544 | 66 | 66 | ||
545 | 67 | /ca="path_to_cabundle.pem" Path to CA certificate chain file in PEM format, for server certificate validation | 67 | /ca="path_to_cabundle.pem" Path to CA certificate chain file in PEM format, for server certificate validation |
546 | 68 | 68 | ||
547 | @@ -94,7 +94,7 @@ | |||
548 | 94 | ; Enable local inventory mode (path to folder to store .ocs file => enabled, | 94 | ; Enable local inventory mode (path to folder to store .ocs file => enabled, |
549 | 95 | ; empty => disabled) | 95 | ; empty => disabled) |
550 | 96 | Local= | 96 | Local= |
552 | 97 | ; Enable agent scanning HKEY_CURRENT_USER hive for printers and sofware | 97 | ; Enable agent scanning HKEY_CURRENT_USER hive for printers and software |
553 | 98 | ; (0 => disabled, 1 => enabled) | 98 | ; (0 => disabled, 1 => enabled) |
554 | 99 | HKCU=0 | 99 | HKCU=0 |
555 | 100 | ; Disable scanning computer for installed software (0 => software scan allowed, 1 => disabled) | 100 | ; Disable scanning computer for installed software (0 => software scan allowed, 1 => disabled) |
556 | 101 | 101 | ||
557 | === modified file 'OcsNotifyUser/OcsNotifyUser.h' | |||
558 | --- OcsNotifyUser/OcsNotifyUser.h 2012-10-26 00:23:27 +0000 | |||
559 | +++ OcsNotifyUser/OcsNotifyUser.h 2015-05-07 18:53:51 +0000 | |||
560 | @@ -60,7 +60,7 @@ | |||
561 | 60 | 60 | ||
562 | 61 | protected: //Attributes | 61 | protected: //Attributes |
563 | 62 | CLog *m_pLogger; | 62 | CLog *m_pLogger; |
565 | 63 | UINT m_uNotifcation; // Notifcation type | 63 | UINT m_uNotifcation; // Notification type |
566 | 64 | CString m_csMessage; // Message to display to user | 64 | CString m_csMessage; // Message to display to user |
567 | 65 | BOOL m_bCancel; // Is cancel allowed or not | 65 | BOOL m_bCancel; // Is cancel allowed or not |
568 | 66 | BOOL m_bDelay; // Is delaying action allowed or not | 66 | BOOL m_bDelay; // Is delaying action allowed or not |
569 | 67 | 67 | ||
570 | === modified file 'OcsSystray/SystemTray.cpp' | |||
571 | --- OcsSystray/SystemTray.cpp 2010-07-07 20:56:04 +0000 | |||
572 | +++ OcsSystray/SystemTray.cpp 2015-05-07 18:53:51 +0000 | |||
573 | @@ -53,7 +53,7 @@ | |||
574 | 53 | // Explorer crashed | 53 | // Explorer crashed |
575 | 54 | // Fixed resource leak in SetIcon | 54 | // Fixed resource leak in SetIcon |
576 | 55 | // Animate() now checks for empty icon list - Anton Treskunov | 55 | // Animate() now checks for empty icon list - Anton Treskunov |
578 | 56 | // Added the virutal CustomizeMenu() method - Anton Treskunov | 56 | // Added the virtual CustomizeMenu() method - Anton Treskunov |
579 | 57 | // | 57 | // |
580 | 58 | // | 58 | // |
581 | 59 | // This code may be used in compiled form in any way you desire. This | 59 | // This code may be used in compiled form in any way you desire. This |
582 | @@ -112,7 +112,7 @@ | |||
583 | 112 | Initialise(); | 112 | Initialise(); |
584 | 113 | } | 113 | } |
585 | 114 | 114 | ||
587 | 115 | CSystemTray::CSystemTray(CWnd* pParent, // The window that will recieve tray notifications | 115 | CSystemTray::CSystemTray(CWnd* pParent, // The window that will receive tray notifications |
588 | 116 | UINT uCallbackMessage, // the callback message to send to parent | 116 | UINT uCallbackMessage, // the callback message to send to parent |
589 | 117 | LPCTSTR szToolTip, // tray icon tooltip | 117 | LPCTSTR szToolTip, // tray icon tooltip |
590 | 118 | HICON icon, // Handle to icon | 118 | HICON icon, // Handle to icon |
591 | 119 | 119 | ||
592 | === modified file 'README.TXT' | |||
593 | --- README.TXT 2011-11-25 14:46:24 +0000 | |||
594 | +++ README.TXT 2015-05-07 18:53:51 +0000 | |||
595 | @@ -24,12 +24,12 @@ | |||
596 | 24 | ============ | 24 | ============ |
597 | 25 | 25 | ||
598 | 26 | - Microsoft Visual C++ 2008 SP1 or higher | 26 | - Microsoft Visual C++ 2008 SP1 or higher |
600 | 27 | - Perl 5.8 or newer for building dependancies (you can use XAMPP perl addon) | 27 | - Perl 5.8 or newer for building dependencies (you can use XAMPP perl addon) |
601 | 28 | - Source code exported from Launchpad Bazaar repository. | 28 | - Source code exported from Launchpad Bazaar repository. |
602 | 29 | svn co https:// | 29 | svn co https:// |
603 | 30 | 30 | ||
604 | 31 | 31 | ||
606 | 32 | BUILDING DEPENDANCIES | 32 | BUILDING DEPENDENCIES |
607 | 33 | ===================== | 33 | ===================== |
608 | 34 | 34 | ||
609 | 35 | OCS Inventory NG Agent for Windows needs followong libraries: | 35 | OCS Inventory NG Agent for Windows needs followong libraries: |
610 | @@ -59,7 +59,7 @@ | |||
611 | 59 | http://blog.kalmbach-software.de/2009/05/27/deployment-of-vc2008-apps-without-installing-anything/) | 59 | http://blog.kalmbach-software.de/2009/05/27/deployment-of-vc2008-apps-without-installing-anything/) |
612 | 60 | Save and build to create unicode DLL for ZipArchive Library. | 60 | Save and build to create unicode DLL for ZipArchive Library. |
613 | 61 | 61 | ||
615 | 62 | Script for building dependancy automatically fixess cURL and net-snmp Makefiles for Visual C++ 2008, | 62 | Script for building dependency automatically fixess cURL and net-snmp Makefiles for Visual C++ 2008, |
616 | 63 | by adding "/D_BIND_TO_CURRENT_VCLIBS_VERSION" to the CFLAGS. As is, libcurl and net-snmp | 63 | by adding "/D_BIND_TO_CURRENT_VCLIBS_VERSION" to the CFLAGS. As is, libcurl and net-snmp |
617 | 64 | DLL will be binded to lastest Visual C++ 2008 SP1 CRT versions. | 64 | DLL will be binded to lastest Visual C++ 2008 SP1 CRT versions. |
618 | 65 | 65 | ||
619 | @@ -89,7 +89,7 @@ | |||
620 | 89 | Then, launch script "OCS_Make_Required_Libs.bat" to create all libs and prepare for building OCS agent. | 89 | Then, launch script "OCS_Make_Required_Libs.bat" to create all libs and prepare for building OCS agent. |
621 | 90 | 90 | ||
622 | 91 | 91 | ||
624 | 92 | BUIDLING AGENT | 92 | BUILDING AGENT |
625 | 93 | ============== | 93 | ============== |
626 | 94 | 94 | ||
627 | 95 | You need Visual C++ 2008, which includes MS Windows SDK 6.0A. | 95 | You need Visual C++ 2008, which includes MS Windows SDK 6.0A. |
628 | @@ -100,4 +100,4 @@ | |||
629 | 100 | 100 | ||
630 | 101 | We hope it will works for you ! | 101 | We hope it will works for you ! |
631 | 102 | 102 | ||
632 | 103 | OCS Inventory Team | ||
633 | 104 | \ No newline at end of file | 103 | \ No newline at end of file |
634 | 104 | OCS Inventory Team | ||
635 | 105 | 105 | ||
636 | === modified file 'Service/NTService.cpp' | |||
637 | --- Service/NTService.cpp 2012-07-25 16:38:31 +0000 | |||
638 | +++ Service/NTService.cpp 2015-05-07 18:53:51 +0000 | |||
639 | @@ -213,7 +213,7 @@ | |||
640 | 213 | szFilePath, // Main binary | 213 | szFilePath, // Main binary |
641 | 214 | NULL, // Load order group | 214 | NULL, // Load order group |
642 | 215 | NULL, // Tag ID to order service start in group | 215 | NULL, // Tag ID to order service start in group |
644 | 216 | lpstrDependancies, // Service dependancies | 216 | lpstrDependancies, // Service dependencies |
645 | 217 | NULL, // Service runs under Local system account, | 217 | NULL, // Service runs under Local system account, |
646 | 218 | NULL); // so no user and password | 218 | NULL); // so no user and password |
647 | 219 | if (!hService) | 219 | if (!hService) |
648 | 220 | 220 | ||
649 | === modified file 'Service/OcsService.cpp' | |||
650 | --- Service/OcsService.cpp 2014-04-09 16:22:56 +0000 | |||
651 | +++ Service/OcsService.cpp 2015-05-07 18:53:51 +0000 | |||
652 | @@ -488,7 +488,7 @@ | |||
653 | 488 | { | 488 | { |
654 | 489 | if (!bNotifyInventory && isInventoryStateChanged()) | 489 | if (!bNotifyInventory && isInventoryStateChanged()) |
655 | 490 | { | 490 | { |
657 | 491 | // Inventory state changed, force inventory immediatly | 491 | // Inventory state changed, force inventory immediately |
658 | 492 | m_iTToWait = 0; | 492 | m_iTToWait = 0; |
659 | 493 | bNotifyInventory = TRUE; | 493 | bNotifyInventory = TRUE; |
660 | 494 | } | 494 | } |
661 | @@ -691,7 +691,7 @@ | |||
662 | 691 | // Create inventory | 691 | // Create inventory |
663 | 692 | if ((pRequest = new CInventoryRequest()) == NULL) | 692 | if ((pRequest = new CInventoryRequest()) == NULL) |
664 | 693 | { | 693 | { |
666 | 694 | LogEvent( EVENTLOG_ERROR_TYPE, EVMSG_GENERIC_ERROR, _T( "Unable to retreive inventory informations")); | 694 | LogEvent( EVENTLOG_ERROR_TYPE, EVMSG_GENERIC_ERROR, _T( "Unable to retrieve inventory informations")); |
667 | 695 | return FALSE; | 695 | return FALSE; |
668 | 696 | } | 696 | } |
669 | 697 | if (!pRequest->final()) | 697 | if (!pRequest->final()) |
670 | @@ -723,7 +723,7 @@ | |||
671 | 723 | catch (CException *pEx) | 723 | catch (CException *pEx) |
672 | 724 | { | 724 | { |
673 | 725 | pEx->Delete(); | 725 | pEx->Delete(); |
675 | 726 | LogEvent( EVENTLOG_ERROR_TYPE, EVMSG_GENERIC_ERROR, _T( "An unknown error occured while trying to generate inventory informations")); | 726 | LogEvent( EVENTLOG_ERROR_TYPE, EVMSG_GENERIC_ERROR, _T( "An unknown error occurred while trying to generate inventory informations")); |
676 | 727 | return FALSE; | 727 | return FALSE; |
677 | 728 | } | 728 | } |
678 | 729 | } | 729 | } |
679 | @@ -755,7 +755,7 @@ | |||
680 | 755 | catch (CException *pEx) | 755 | catch (CException *pEx) |
681 | 756 | { | 756 | { |
682 | 757 | pEx->Delete(); | 757 | pEx->Delete(); |
684 | 758 | LogEvent( EVENTLOG_ERROR_TYPE, EVMSG_GENERIC_ERROR, _T( "An unknown error occured while rotating log files")); | 758 | LogEvent( EVENTLOG_ERROR_TYPE, EVMSG_GENERIC_ERROR, _T( "An unknown error occurred while rotating log files")); |
685 | 759 | return FALSE; | 759 | return FALSE; |
686 | 760 | } | 760 | } |
687 | 761 | return TRUE; | 761 | return TRUE; |
688 | 762 | 762 | ||
689 | === modified file 'SysInfo/DMI.cpp' | |||
690 | --- SysInfo/DMI.cpp 2014-08-06 15:06:08 +0000 | |||
691 | +++ SysInfo/DMI.cpp 2015-05-07 18:53:51 +0000 | |||
692 | @@ -291,7 +291,7 @@ | |||
693 | 291 | DmiHeader *dmi; | 291 | DmiHeader *dmi; |
694 | 292 | 292 | ||
695 | 293 | if (bStart) | 293 | if (bStart) |
697 | 294 | // Search from begining of tables | 294 | // Search from beginning of tables |
698 | 295 | nPosition = 0; | 295 | nPosition = 0; |
699 | 296 | 296 | ||
700 | 297 | while (nPosition < m_nStructureLength) | 297 | while (nPosition < m_nStructureLength) |
701 | 298 | 298 | ||
702 | === modified file 'SysInfo/DMI.h' | |||
703 | --- SysInfo/DMI.h 2014-04-09 17:35:05 +0000 | |||
704 | +++ SysInfo/DMI.h 2015-05-07 18:53:51 +0000 | |||
705 | @@ -86,7 +86,7 @@ | |||
706 | 86 | BOOL CheckSum(const BYTE *buf, int length); | 86 | BOOL CheckSum(const BYTE *buf, int length); |
707 | 87 | // Get length of DMI table at position nPosition | 87 | // Get length of DMI table at position nPosition |
708 | 88 | int GetTableLength( int nPosition); | 88 | int GetTableLength( int nPosition); |
710 | 89 | // Get next DMI table of type uType, and start seraching form begining | 89 | // Get next DMI table of type uType, and start seraching form beginning |
711 | 90 | // of table, or from current position | 90 | // of table, or from current position |
712 | 91 | UCHAR *GetNextTable( UCHAR uType, BOOL bStart = FALSE); | 91 | UCHAR *GetNextTable( UCHAR uType, BOOL bStart = FALSE); |
713 | 92 | 92 | ||
714 | 93 | 93 | ||
715 | === modified file 'SysInfo/Dtwinver.cpp' | |||
716 | --- SysInfo/Dtwinver.cpp 2013-05-28 09:08:01 +0000 | |||
717 | +++ SysInfo/Dtwinver.cpp 2015-05-07 18:53:51 +0000 | |||
718 | @@ -1531,7 +1531,7 @@ | |||
719 | 1531 | } | 1531 | } |
720 | 1532 | #endif | 1532 | #endif |
721 | 1533 | 1533 | ||
723 | 1534 | #else //We must be runing on an emulated or real version of Win16 or DOS | 1534 | #else //We must be running on an emulated or real version of Win16 or DOS |
724 | 1535 | lpVersionInformation->EmulatedProcessorType = IA32_PROCESSOR; //We can only be running x86-32 code from Win16 or DOS | 1535 | lpVersionInformation->EmulatedProcessorType = IA32_PROCESSOR; //We can only be running x86-32 code from Win16 or DOS |
725 | 1536 | 1536 | ||
726 | 1537 | #ifdef _WINDOWS //Running on some version of Windows | 1537 | #ifdef _WINDOWS //Running on some version of Windows |
727 | @@ -1639,7 +1639,7 @@ | |||
728 | 1639 | _fstrcpy(lpVersionInformation->szUnderlyingCSDVersion, ""); | 1639 | _fstrcpy(lpVersionInformation->szUnderlyingCSDVersion, ""); |
729 | 1640 | } | 1640 | } |
730 | 1641 | #else //Must be some version of real or emulated DOS | 1641 | #else //Must be some version of real or emulated DOS |
732 | 1642 | //Retreive the current version of emulated DOS | 1642 | //Retrieve the current version of emulated DOS |
733 | 1643 | BYTE DosMinor; | 1643 | BYTE DosMinor; |
734 | 1644 | BYTE DosMajor; | 1644 | BYTE DosMajor; |
735 | 1645 | _asm | 1645 | _asm |
736 | @@ -3054,7 +3054,7 @@ | |||
737 | 3054 | //puts in the ProductSuite. In Windows 2000 Datacenter it does not matter as it | 3054 | //puts in the ProductSuite. In Windows 2000 Datacenter it does not matter as it |
738 | 3055 | //supports GetVersionEx using a OSVERSIONINFOEX structure. | 3055 | //supports GetVersionEx using a OSVERSIONINFOEX structure. |
739 | 3056 | 3056 | ||
741 | 3057 | //Turn on appropiate fields in the "wSuiteMask" bit field | 3057 | //Turn on appropriate fields in the "wSuiteMask" bit field |
742 | 3058 | if (_tcsicmp(lpszSuite, _T("Terminal Server")) == 0) | 3058 | if (_tcsicmp(lpszSuite, _T("Terminal Server")) == 0) |
743 | 3059 | lpVersionInformation->dwSuiteMask |= COSVERSION_SUITE_TERMINAL; | 3059 | lpVersionInformation->dwSuiteMask |= COSVERSION_SUITE_TERMINAL; |
744 | 3060 | else if ((_tcsicmp(lpszSuite, _T("SBS")) == 0) || (_tcsicmp(lpszSuite, _T("Small Business")) == 0)) | 3060 | else if ((_tcsicmp(lpszSuite, _T("SBS")) == 0) || (_tcsicmp(lpszSuite, _T("Small Business")) == 0)) |
745 | 3061 | 3061 | ||
746 | === modified file 'SysInfo/EDID.cpp' | |||
747 | --- SysInfo/EDID.cpp 2013-11-27 16:28:03 +0000 | |||
748 | +++ SysInfo/EDID.cpp 2015-05-07 18:53:51 +0000 | |||
749 | @@ -415,7 +415,7 @@ | |||
750 | 415 | } | 415 | } |
751 | 416 | memset( szResult, 0, 15); | 416 | memset( szResult, 0, 15); |
752 | 417 | strncpy( szResult, (LPCSTR) (lpByte+DESCRIPTOR_DATA_OFFSET), 14); | 417 | strncpy( szResult, (LPCSTR) (lpByte+DESCRIPTOR_DATA_OFFSET), 14); |
754 | 418 | // Ignore space characters at begining | 418 | // Ignore space characters at beginning |
755 | 419 | for (i=0; i<strlen( szResult) && szResult[i]==' '; i++); | 419 | for (i=0; i<strlen( szResult) && szResult[i]==' '; i++); |
756 | 420 | m_csBuffer.Format( "%s", szResult+i); | 420 | m_csBuffer.Format( "%s", szResult+i); |
757 | 421 | return m_csBuffer; | 421 | return m_csBuffer; |
758 | 422 | 422 | ||
759 | === modified file 'SysInfo/EDID.h' | |||
760 | --- SysInfo/EDID.h 2010-12-08 22:42:33 +0000 | |||
761 | +++ SysInfo/EDID.h 2015-05-07 18:53:51 +0000 | |||
762 | @@ -75,7 +75,7 @@ | |||
763 | 75 | BYTE Vertical_Frequency; | 75 | BYTE Vertical_Frequency; |
764 | 76 | } EDIDMode; | 76 | } EDIDMode; |
765 | 77 | 77 | ||
767 | 78 | // Format of Detailed_Timing_DescriptionX if it is a Detailled Timing | 78 | // Format of Detailed_Timing_DescriptionX if it is a Detailed Timing |
768 | 79 | typedef struct tag_EDID_Detailled_Timing | 79 | typedef struct tag_EDID_Detailled_Timing |
769 | 80 | { | 80 | { |
770 | 81 | BYTE Horizontal_Frequency; // horizontal frequency in kHz (if 00h, may be text)(see #00135) | 81 | BYTE Horizontal_Frequency; // horizontal frequency in kHz (if 00h, may be text)(see #00135) |
771 | @@ -160,7 +160,7 @@ | |||
772 | 160 | BYTE Checksum; // (radix-complement: 256-low byte of 16-bit sum of 00h-7Eh) | 160 | BYTE Checksum; // (radix-complement: 256-low byte of 16-bit sum of 00h-7Eh) |
773 | 161 | } Standard_EDID; | 161 | } Standard_EDID; |
774 | 162 | 162 | ||
776 | 163 | // Detailled Timing enumeration types | 163 | // Detailed Timing enumeration types |
777 | 164 | enum DetailTiming | 164 | enum DetailTiming |
778 | 165 | { | 165 | { |
779 | 166 | Detailed_Timing_Description = 0, | 166 | Detailed_Timing_Description = 0, |
780 | @@ -191,7 +191,7 @@ | |||
781 | 191 | BOOL ParseEDID( LPBYTE lpByte, Standard_EDID &myEDID); | 191 | BOOL ParseEDID( LPBYTE lpByte, Standard_EDID &myEDID); |
782 | 192 | // Return manufacturer code (3 letters) | 192 | // Return manufacturer code (3 letters) |
783 | 193 | LPCSTR GetManufacturerID(BYTE ID[2]); | 193 | LPCSTR GetManufacturerID(BYTE ID[2]); |
785 | 194 | // Retreive EDID data from registry | 194 | // Retrieve EDID data from registry |
786 | 195 | BOOL GetDisplayEDID( HDEVINFO hDeviceInfoSet, SP_DEVINFO_DATA *pDevInfoData, Standard_EDID &myEDID); | 195 | BOOL GetDisplayEDID( HDEVINFO hDeviceInfoSet, SP_DEVINFO_DATA *pDevInfoData, Standard_EDID &myEDID); |
787 | 196 | // Decode DPMS flags to get monitor type | 196 | // Decode DPMS flags to get monitor type |
788 | 197 | LPCSTR DecodeDPMSFlag( BYTE Flag); | 197 | LPCSTR DecodeDPMSFlag( BYTE Flag); |
789 | 198 | 198 | ||
790 | === modified file 'SysInfo/Registry.cpp' | |||
791 | --- SysInfo/Registry.cpp 2014-08-06 15:06:08 +0000 | |||
792 | +++ SysInfo/Registry.cpp 2015-05-07 18:53:51 +0000 | |||
793 | @@ -2023,7 +2023,7 @@ | |||
794 | 2023 | 2023 | ||
795 | 2024 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find Floppy Controllers in HKLM\\%s...\n"), | 2024 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find Floppy Controllers in HKLM\\%s...\n"), |
796 | 2025 | NT_CONTROLER_FLOPPY_KEY); | 2025 | NT_CONTROLER_FLOPPY_KEY); |
798 | 2026 | // Windows NT => Open the floppy controler key | 2026 | // Windows NT => Open the floppy controller key |
799 | 2027 | if (RegOpenKeyEx( m_hKey, NT_CONTROLER_FLOPPY_KEY, 0, KEY_READ|KEY_WOW64_64KEY, &hKeyEnum) == ERROR_SUCCESS) | 2027 | if (RegOpenKeyEx( m_hKey, NT_CONTROLER_FLOPPY_KEY, 0, KEY_READ|KEY_WOW64_64KEY, &hKeyEnum) == ERROR_SUCCESS) |
800 | 2028 | { | 2028 | { |
801 | 2029 | // Enum the devices subkeys to find devices | 2029 | // Enum the devices subkeys to find devices |
802 | @@ -2136,7 +2136,7 @@ | |||
803 | 2136 | } | 2136 | } |
804 | 2137 | else | 2137 | else |
805 | 2138 | AddLog( _T( "\tFailed because no valid object !\n")); | 2138 | AddLog( _T( "\tFailed because no valid object !\n")); |
807 | 2139 | // Windows NT => Open the IDE controler key | 2139 | // Windows NT => Open the IDE controller key |
808 | 2140 | uIndex = 0; | 2140 | uIndex = 0; |
809 | 2141 | dwIndexEnum = 0; | 2141 | dwIndexEnum = 0; |
810 | 2142 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find IDE Controllers in HKLM\\%s...\n"), | 2142 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find IDE Controllers in HKLM\\%s...\n"), |
811 | @@ -2253,7 +2253,7 @@ | |||
812 | 2253 | } | 2253 | } |
813 | 2254 | else | 2254 | else |
814 | 2255 | AddLog( _T( "\tFailed because no valid object !\n")); | 2255 | AddLog( _T( "\tFailed because no valid object !\n")); |
816 | 2256 | // Windows NT => Open the SCSI controler key | 2256 | // Windows NT => Open the SCSI controller key |
817 | 2257 | uIndex = 0; | 2257 | uIndex = 0; |
818 | 2258 | dwIndexEnum = 0; | 2258 | dwIndexEnum = 0; |
819 | 2259 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find SCSI Controllers in HKLM\\%s...\n"), | 2259 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find SCSI Controllers in HKLM\\%s...\n"), |
820 | @@ -2370,7 +2370,7 @@ | |||
821 | 2370 | } | 2370 | } |
822 | 2371 | else | 2371 | else |
823 | 2372 | AddLog( _T( "\tFailed because no valid object !\n")); | 2372 | AddLog( _T( "\tFailed because no valid object !\n")); |
825 | 2373 | // Windows NT => Open the InfraRed controler key | 2373 | // Windows NT => Open the InfraRed controller key |
826 | 2374 | uIndex = 0; | 2374 | uIndex = 0; |
827 | 2375 | dwIndexEnum = 0; | 2375 | dwIndexEnum = 0; |
828 | 2376 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find InfraRed Controllers in HKLM\\%s...\n"), | 2376 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find InfraRed Controllers in HKLM\\%s...\n"), |
829 | @@ -2447,7 +2447,7 @@ | |||
830 | 2447 | csSubKey, NT_CONTROLER_INFRARED_VERSION_VALUE); | 2447 | csSubKey, NT_CONTROLER_INFRARED_VERSION_VALUE); |
831 | 2448 | csVersion = NOT_AVAILABLE; | 2448 | csVersion = NOT_AVAILABLE; |
832 | 2449 | } | 2449 | } |
834 | 2450 | // Ensure it is a controler | 2450 | // Ensure it is a controller |
835 | 2451 | if (GetValue( hKeyObject, NT_CONTROLER_INFRARED_CONTROLER_VALUE, csValue) == ERROR_SUCCESS) | 2451 | if (GetValue( hKeyObject, NT_CONTROLER_INFRARED_CONTROLER_VALUE, csValue) == ERROR_SUCCESS) |
836 | 2452 | { | 2452 | { |
837 | 2453 | bHaveToStore = TRUE; | 2453 | bHaveToStore = TRUE; |
838 | @@ -2498,7 +2498,7 @@ | |||
839 | 2498 | } | 2498 | } |
840 | 2499 | else | 2499 | else |
841 | 2500 | AddLog( _T( "\tFailed because no valid object !\n")); | 2500 | AddLog( _T( "\tFailed because no valid object !\n")); |
843 | 2501 | // Windows NT => Open the USB controler key | 2501 | // Windows NT => Open the USB controller key |
844 | 2502 | uIndex = 0; | 2502 | uIndex = 0; |
845 | 2503 | dwIndexEnum = 0; | 2503 | dwIndexEnum = 0; |
846 | 2504 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find USB Controllers in HKLM\\%s...\n"), | 2504 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find USB Controllers in HKLM\\%s...\n"), |
847 | @@ -2575,7 +2575,7 @@ | |||
848 | 2575 | csSubKey, NT_CONTROLER_USB_VERSION_VALUE); | 2575 | csSubKey, NT_CONTROLER_USB_VERSION_VALUE); |
849 | 2576 | csVersion = NOT_AVAILABLE; | 2576 | csVersion = NOT_AVAILABLE; |
850 | 2577 | } | 2577 | } |
852 | 2578 | // Ensure it is a controler | 2578 | // Ensure it is a controller |
853 | 2579 | if (GetValue( hKeyObject, NT_CONTROLER_USB_CONTROLER_VALUE, csValue) == ERROR_SUCCESS) | 2579 | if (GetValue( hKeyObject, NT_CONTROLER_USB_CONTROLER_VALUE, csValue) == ERROR_SUCCESS) |
854 | 2580 | { | 2580 | { |
855 | 2581 | bHaveToStore = TRUE; | 2581 | bHaveToStore = TRUE; |
856 | @@ -2626,7 +2626,7 @@ | |||
857 | 2626 | } | 2626 | } |
858 | 2627 | else | 2627 | else |
859 | 2628 | AddLog( _T( "\tFailed because no valid object !\n")); | 2628 | AddLog( _T( "\tFailed because no valid object !\n")); |
861 | 2629 | // Windows NT => Open the IEEE1394 controler key | 2629 | // Windows NT => Open the IEEE1394 controller key |
862 | 2630 | uIndex = 0; | 2630 | uIndex = 0; |
863 | 2631 | dwIndexEnum = 0; | 2631 | dwIndexEnum = 0; |
864 | 2632 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find IEEE1394 Controllers in HKLM\\%s...\n"), | 2632 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find IEEE1394 Controllers in HKLM\\%s...\n"), |
865 | @@ -2743,7 +2743,7 @@ | |||
866 | 2743 | } | 2743 | } |
867 | 2744 | else | 2744 | else |
868 | 2745 | AddLog( _T( "\tFailed because no valid object !\n")); | 2745 | AddLog( _T( "\tFailed because no valid object !\n")); |
870 | 2746 | // Windows NT => Open the PCMCIA controler key | 2746 | // Windows NT => Open the PCMCIA controller key |
871 | 2747 | uIndex = 0; | 2747 | uIndex = 0; |
872 | 2748 | dwIndexEnum = 0; | 2748 | dwIndexEnum = 0; |
873 | 2749 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find PCMCIA Controllers in HKLM\\%s...\n"), | 2749 | AddLog( _T( "Registry NT GetSystemControllers: Trying to find PCMCIA Controllers in HKLM\\%s...\n"), |
874 | 2750 | 2750 | ||
875 | === modified file 'SysInfo/SnmpAPI.cpp' | |||
876 | --- SysInfo/SnmpAPI.cpp 2011-05-19 16:55:18 +0000 | |||
877 | +++ SysInfo/SnmpAPI.cpp 2015-05-07 18:53:51 +0000 | |||
878 | @@ -121,7 +121,7 @@ | |||
879 | 121 | //* network traffic via a WebPage. | 121 | //* network traffic via a WebPage. |
880 | 122 | //* http://www.ee.ethz.ch/~oetiker/webtools/mrtg/ | 122 | //* http://www.ee.ethz.ch/~oetiker/webtools/mrtg/ |
881 | 123 | //* | 123 | //* |
883 | 124 | //* Copyright (c) 1996-2001 Tobias Oetiker and all the Contributers | 124 | //* Copyright (c) 1996-2001 Tobias Oetiker and all the Contributors |
884 | 125 | //* to MRTG | 125 | //* to MRTG |
885 | 126 | //* All rights reserved. | 126 | //* All rights reserved. |
886 | 127 | //* | 127 | //* |
887 | 128 | 128 | ||
888 | === modified file 'SysInfo/StoragePeripheral.cpp' | |||
889 | --- SysInfo/StoragePeripheral.cpp 2014-08-24 07:40:05 +0000 | |||
890 | +++ SysInfo/StoragePeripheral.cpp 2015-05-07 18:53:51 +0000 | |||
891 | @@ -160,7 +160,7 @@ | |||
892 | 160 | } | 160 | } |
893 | 161 | StrForSQL( m_csSN); | 161 | StrForSQL( m_csSN); |
894 | 162 | if (is_printable( m_csSN)) | 162 | if (is_printable( m_csSN)) |
896 | 163 | // Hex decode successfull | 163 | // Hex decode successful |
897 | 164 | return; | 164 | return; |
898 | 165 | } | 165 | } |
899 | 166 | // Not hex encoded (or hex decode failed), ensure printable | 166 | // Not hex encoded (or hex decode failed), ensure printable |
900 | 167 | 167 | ||
901 | === modified file 'SysInfo/SysInfo.cpp' | |||
902 | --- SysInfo/SysInfo.cpp 2014-05-16 20:32:33 +0000 | |||
903 | +++ SysInfo/SysInfo.cpp 2015-05-07 18:53:51 +0000 | |||
904 | @@ -147,7 +147,7 @@ | |||
905 | 147 | } | 147 | } |
906 | 148 | else if (os.IsWindowsME(&osvi)) | 148 | else if (os.IsWindowsME(&osvi)) |
907 | 149 | { | 149 | { |
909 | 150 | csName = _T( "Microsoft Windows Millenium"); | 150 | csName = _T( "Microsoft Windows Millennium"); |
910 | 151 | csComment.Empty(); | 151 | csComment.Empty(); |
911 | 152 | } | 152 | } |
912 | 153 | else | 153 | else |
913 | 154 | 154 | ||
914 | === modified file 'SysInfo/VMSystem.h' | |||
915 | --- SysInfo/VMSystem.h 2011-03-24 13:26:32 +0000 | |||
916 | +++ SysInfo/VMSystem.h 2015-05-07 18:53:51 +0000 | |||
917 | @@ -20,13 +20,13 @@ | |||
918 | 20 | CVMSystem(void); | 20 | CVMSystem(void); |
919 | 21 | ~CVMSystem(void); | 21 | ~CVMSystem(void); |
920 | 22 | 22 | ||
922 | 23 | // Try to detect hypervisor we're runnning on using Bios | 23 | // Try to detect hypervisor we're running on using Bios |
923 | 24 | BOOL DetectVM( CBios *pBios, CString &csVMSystem); | 24 | BOOL DetectVM( CBios *pBios, CString &csVMSystem); |
925 | 25 | // Try to detect hypervisor we're runnning on using System controller | 25 | // Try to detect hypervisor we're running on using System controller |
926 | 26 | BOOL DetectVM( CSystemControllerList *pMyList, CString &csVMSystem); | 26 | BOOL DetectVM( CSystemControllerList *pMyList, CString &csVMSystem); |
928 | 27 | // Try to detect hypervisor we're runnning on using Storage Peripherals | 27 | // Try to detect hypervisor we're running on using Storage Peripherals |
929 | 28 | BOOL DetectVM( CStoragePeripheralList *pMyList, CString &csVMSystem); | 28 | BOOL DetectVM( CStoragePeripheralList *pMyList, CString &csVMSystem); |
931 | 29 | // Try to detect hypervisor we're runnning on using Video Adapter | 29 | // Try to detect hypervisor we're running on using Video Adapter |
932 | 30 | BOOL DetectVM( CVideoAdapterList *pMyList, CString &csVMSystem); | 30 | BOOL DetectVM( CVideoAdapterList *pMyList, CString &csVMSystem); |
933 | 31 | protected: | 31 | protected: |
934 | 32 | // Try to find Hypervisor signature into a string | 32 | // Try to find Hypervisor signature into a string |
935 | 33 | 33 | ||
936 | === modified file 'TestSysInfo/TestSysInfoDlg.cpp' | |||
937 | --- TestSysInfo/TestSysInfoDlg.cpp 2013-07-22 16:30:50 +0000 | |||
938 | +++ TestSysInfo/TestSysInfoDlg.cpp 2015-05-07 18:53:51 +0000 | |||
939 | @@ -968,7 +968,7 @@ | |||
940 | 968 | } | 968 | } |
941 | 969 | 969 | ||
942 | 970 | m_List.AddString( _T( "------------------------------------------------------")); | 970 | m_List.AddString( _T( "------------------------------------------------------")); |
944 | 971 | m_List.AddString( _T( "Video Controler infos")); | 971 | m_List.AddString( _T( "Video Controller infos")); |
945 | 972 | m_List.AddString( _T( "------------------------------------------------------")); | 972 | m_List.AddString( _T( "------------------------------------------------------")); |
946 | 973 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_VideoController"))) | 973 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_VideoController"))) |
947 | 974 | { | 974 | { |
948 | @@ -1263,7 +1263,7 @@ | |||
949 | 1263 | } | 1263 | } |
950 | 1264 | 1264 | ||
951 | 1265 | m_List.AddString( _T( "------------------------------------------------------")); | 1265 | m_List.AddString( _T( "------------------------------------------------------")); |
953 | 1266 | m_List.AddString( _T( "Floppy Controler infos")); | 1266 | m_List.AddString( _T( "Floppy Controller infos")); |
954 | 1267 | m_List.AddString( _T( "------------------------------------------------------")); | 1267 | m_List.AddString( _T( "------------------------------------------------------")); |
955 | 1268 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_FloppyController"))) | 1268 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_FloppyController"))) |
956 | 1269 | { | 1269 | { |
957 | @@ -1302,7 +1302,7 @@ | |||
958 | 1302 | } | 1302 | } |
959 | 1303 | 1303 | ||
960 | 1304 | m_List.AddString( _T( "------------------------------------------------------")); | 1304 | m_List.AddString( _T( "------------------------------------------------------")); |
962 | 1305 | m_List.AddString( _T( "IDE Controler infos")); | 1305 | m_List.AddString( _T( "IDE Controller infos")); |
963 | 1306 | m_List.AddString( _T( "------------------------------------------------------")); | 1306 | m_List.AddString( _T( "------------------------------------------------------")); |
964 | 1307 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_IDEController"))) | 1307 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_IDEController"))) |
965 | 1308 | { | 1308 | { |
966 | @@ -1341,7 +1341,7 @@ | |||
967 | 1341 | } | 1341 | } |
968 | 1342 | 1342 | ||
969 | 1343 | m_List.AddString( _T( "------------------------------------------------------")); | 1343 | m_List.AddString( _T( "------------------------------------------------------")); |
971 | 1344 | m_List.AddString( _T( "SCSI Controler infos")); | 1344 | m_List.AddString( _T( "SCSI Controller infos")); |
972 | 1345 | m_List.AddString( _T( "------------------------------------------------------")); | 1345 | m_List.AddString( _T( "------------------------------------------------------")); |
973 | 1346 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_SCSIController"))) | 1346 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_SCSIController"))) |
974 | 1347 | { | 1347 | { |
975 | @@ -1388,7 +1388,7 @@ | |||
976 | 1388 | } | 1388 | } |
977 | 1389 | 1389 | ||
978 | 1390 | m_List.AddString( _T( "------------------------------------------------------")); | 1390 | m_List.AddString( _T( "------------------------------------------------------")); |
980 | 1391 | m_List.AddString( _T( "InfraRed Controler infos")); | 1391 | m_List.AddString( _T( "InfraRed Controller infos")); |
981 | 1392 | m_List.AddString( _T( "------------------------------------------------------")); | 1392 | m_List.AddString( _T( "------------------------------------------------------")); |
982 | 1393 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_InfraredDevice"))) | 1393 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_InfraredDevice"))) |
983 | 1394 | { | 1394 | { |
984 | @@ -1427,7 +1427,7 @@ | |||
985 | 1427 | } | 1427 | } |
986 | 1428 | 1428 | ||
987 | 1429 | m_List.AddString( _T( "------------------------------------------------------")); | 1429 | m_List.AddString( _T( "------------------------------------------------------")); |
989 | 1430 | m_List.AddString( _T( "USB Controler infos")); | 1430 | m_List.AddString( _T( "USB Controller infos")); |
990 | 1431 | m_List.AddString( _T( "------------------------------------------------------")); | 1431 | m_List.AddString( _T( "------------------------------------------------------")); |
991 | 1432 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_USBController"))) | 1432 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_USBController"))) |
992 | 1433 | { | 1433 | { |
993 | @@ -1466,7 +1466,7 @@ | |||
994 | 1466 | } | 1466 | } |
995 | 1467 | 1467 | ||
996 | 1468 | m_List.AddString( _T( "------------------------------------------------------")); | 1468 | m_List.AddString( _T( "------------------------------------------------------")); |
998 | 1469 | m_List.AddString( _T( "IEEE 1394 Controler infos")); | 1469 | m_List.AddString( _T( "IEEE 1394 Controller infos")); |
999 | 1470 | m_List.AddString( _T( "------------------------------------------------------")); | 1470 | m_List.AddString( _T( "------------------------------------------------------")); |
1000 | 1471 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_1394Controller"))) | 1471 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_1394Controller"))) |
1001 | 1472 | { | 1472 | { |
1002 | @@ -1505,7 +1505,7 @@ | |||
1003 | 1505 | } | 1505 | } |
1004 | 1506 | 1506 | ||
1005 | 1507 | m_List.AddString( _T( "------------------------------------------------------")); | 1507 | m_List.AddString( _T( "------------------------------------------------------")); |
1007 | 1508 | m_List.AddString( _T( "PCMCIA Controler infos")); | 1508 | m_List.AddString( _T( "PCMCIA Controller infos")); |
1008 | 1509 | m_List.AddString( _T( "------------------------------------------------------")); | 1509 | m_List.AddString( _T( "------------------------------------------------------")); |
1009 | 1510 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_PCMCIAController"))) | 1510 | if (myWmiDll.BeginEnumClassObject( _T( "Win32_PCMCIAController"))) |
1010 | 1511 | { | 1511 | { |
1011 | 1512 | 1512 | ||
1012 | === modified file 'logon/OcsLogon.nsi' | |||
1013 | --- logon/OcsLogon.nsi 2014-01-08 16:29:30 +0000 | |||
1014 | +++ logon/OcsLogon.nsi 2015-05-07 18:53:51 +0000 | |||
1015 | @@ -60,7 +60,7 @@ | |||
1016 | 60 | # Global variables | 60 | # Global variables |
1017 | 61 | ##################################################################### | 61 | ##################################################################### |
1018 | 62 | var /GLOBAL nGpo ; Set to 1 if /GPO is provided | 62 | var /GLOBAL nGpo ; Set to 1 if /GPO is provided |
1020 | 63 | var /GLOBAL nShowlog ; Set to 1 if /SHOWLOG is provided, to display log file at the end of exec, usefull for debugging | 63 | var /GLOBAL nShowlog ; Set to 1 if /SHOWLOG is provided, to display log file at the end of exec, useful for debugging |
1021 | 64 | var /GLOBAL nUninstall ; Set to 1 if /Uninstall is provided | 64 | var /GLOBAL nUninstall ; Set to 1 if /Uninstall is provided |
1022 | 65 | var /GLOBAL nForce ; Do we overwrite installed version (=1) or not (=0) | 65 | var /GLOBAL nForce ; Do we overwrite installed version (=1) or not (=0) |
1023 | 66 | var /GLOBAL nTimeOut ; Download timeout (default 60 sec) | 66 | var /GLOBAL nTimeOut ; Download timeout (default 60 sec) |
1024 | 67 | 67 | ||
1025 | === modified file 'logon/Readme.txt' | |||
1026 | --- logon/Readme.txt 2011-05-27 13:56:11 +0000 | |||
1027 | +++ logon/Readme.txt 2015-05-07 18:53:51 +0000 | |||
1028 | @@ -18,7 +18,7 @@ | |||
1029 | 18 | By default, OcsLogon try to download and install standard Agent setup file | 18 | By default, OcsLogon try to download and install standard Agent setup file |
1030 | 19 | "ocsagent.exe", but it can also use "ocspackage.exe", file created by OCS | 19 | "ocsagent.exe", but it can also use "ocspackage.exe", file created by OCS |
1031 | 20 | Inventory NG Packager, which can embbed certificate file and can be executed | 20 | Inventory NG Packager, which can embbed certificate file and can be executed |
1033 | 21 | under a fixed administrator account. This is usefull when user logon script | 21 | under a fixed administrator account. This is useful when user logon script |
1034 | 22 | is used in Samba domain, to allow installation process by non administrator | 22 | is used in Samba domain, to allow installation process by non administrator |
1035 | 23 | users. | 23 | users. |
1036 | 24 | 24 | ||
1037 | 25 | 25 | ||
1038 | === modified file 'ocsinventory.ini.sample' | |||
1039 | --- ocsinventory.ini.sample 2010-07-07 20:56:04 +0000 | |||
1040 | +++ ocsinventory.ini.sample 2015-05-07 18:53:51 +0000 | |||
1041 | @@ -5,7 +5,7 @@ | |||
1042 | 5 | ; Enable local inventory mode (path to folder to store .ocs file => enabled, | 5 | ; Enable local inventory mode (path to folder to store .ocs file => enabled, |
1043 | 6 | ; empty => disabled) | 6 | ; empty => disabled) |
1044 | 7 | Local= | 7 | Local= |
1046 | 8 | ; Enable agent scanning HKEY_CURRENT_USER hive for printers and sofware | 8 | ; Enable agent scanning HKEY_CURRENT_USER hive for printers and software |
1047 | 9 | ; (0 => disabled, 1 => enabled) | 9 | ; (0 => disabled, 1 => enabled) |
1048 | 10 | HKCU=0 | 10 | HKCU=0 |
1049 | 11 | ; Disable prompting user for TAG value (0 => prompt allowed, 1 => disabled) | 11 | ; Disable prompting user for TAG value (0 => prompt allowed, 1 => disabled) |