1 |
< |
using System; |
1 |
> |
#define DISABLE_GETFIRSTNONZEROBYTE_ONUPDATE_ACCEPTEDPROCESS // when defined will not call GetFirstNonZeroByte() when AcceptedProcess is updated and is not null |
2 |
> |
#define DISABLE_GETFIRSTNONZERO_BYTE // when defined will make GetFirstNonZeroByte() an empty void method |
3 |
> |
using System; |
4 |
|
using System.Collections.Generic; |
5 |
|
using System.ComponentModel; |
6 |
|
using System.Drawing; |
53 |
|
|
54 |
|
private void GetFirstNonZeroByte() |
55 |
|
{ |
56 |
+ |
#if !DISABLE_GETFIRSTNONZERO_BYTE |
57 |
|
if (!DesignMode) |
58 |
|
{ |
59 |
|
GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this); |
63 |
|
provider.CloseProvider(); |
64 |
|
GotoAddress(addr); |
65 |
|
} |
66 |
+ |
#endif |
67 |
|
} |
68 |
|
|
69 |
|
#region IAcceptsProcess<Process> Members |
76 |
|
_AcceptedProcess = value; |
77 |
|
update_timer.Enabled = (value != null); |
78 |
|
UpdateEnabled = update_timer.Enabled; |
79 |
+ |
#if !DISABLE_GETFIRSTNONZEROBYTE_ONUPDATE_ACCEPTEDPROCESS |
80 |
|
if (value != null) |
81 |
|
GetFirstNonZeroByte(); |
82 |
+ |
#endif |
83 |
|
} |
84 |
|
} |
85 |
|
#endregion |