MCPcopy Create free account
hub / github.com/DarthTon/Xenos / UpdateInterface

Method UpdateInterface

src/Routines.cpp:191–227  ·  view source on GitHub ↗

Update interface controls Error code

Source from the content-addressed store, hash-verified

189/// </summary>
190/// <returns>Error code</returns>
191DWORD MainDlg::UpdateInterface( )
192{
193 // Reset controls state
194 if (_exProc.checked())
195 {
196 _procList.enable();
197 _selectProc.disable();
198 }
199 else
200 {
201 _procList.disable();
202 _selectProc.enable();
203 }
204
205 if (_profileMgr.config().injectMode == Kernel_DriverMap)
206 {
207 _exProc.disable();
208 _newProc.disable();
209 _autoProc.disable();
210 _procList.disable();
211 _selectProc.disable();
212 }
213 else
214 {
215 _exProc.enable();
216 _newProc.enable();
217 _autoProc.enable();
218 }
219
220 // Disable inject button if no images available or no process selected
221 if (_images.empty() || _procList.selection() == -1)
222 _inject.disable();
223 else
224 _inject.enable();
225
226 return ERROR_SUCCESS;
227}
228
229/// <summary>
230/// Invoke Open/Save file dialog

Callers

nothing calls this directly

Calls 4

checkedMethod · 0.80
enableMethod · 0.80
disableMethod · 0.80
selectionMethod · 0.45

Tested by

no test coverage detected