... a new simple way to manage your code by creating hacks, etc.
Before there was many stuff you'd have to include into your code to get the read/write memory functions working. Now you could easily
do this by using the extensions the upper called namespace gives you or by creating a new 'ProcessAccessor' object, which gives you much
more functionality ...
Features...
Instant memory reading/writing by using extension methods
Huge amount of methods, properties, etc. to give you the highest count of abilities to manage your code
The possibility to create your own 'ProcessAccessor' to make it fit to any process
Usage of events to make it easier to invoke code in situations you need to
... for more features just download and try it yourself.
Please use the VM/PM function if you're to ask for approval.
-Remember that his from a different time-zone than you, so please wait.
(There's no need to mention him for him to do his job. You are a minion yourself, so you know how it works)
//Approved.
@ @Kenshin13 You mentioned me the same hour this got released, while I was in bed. Good job
.NET does not need to use OpenProcess to obtain a handle. You can use the Process class property 'Handle' which is a fully qualified handle.
If you wish to trace it in the .NET framework libraries, you will see in the Process class:
Code:
this.m_processAccess = 0x1F0FFF;
.Handle call leads to:
Code:
// System.Diagnostics.Process
/// <summary>Gets the native handle of the associated process.</summary>
/// <returns>The handle that the operating system assigned to the associated process when the process was started. The system uses this handle to keep track of process attributes.</returns>
/// <exception cref="T:System.InvalidOperationException">The process has not been started or has exited. The <see cref="P:System.Diagnostics.Process.Handle" /> property cannot be read because there is no process associated with this <see cref="T:System.Diagnostics.Process" /> instance.-or- The <see cref="T:System.Diagnostics.Process" /> instance has been attached to a running process but you do not have the necessary permissions to get a handle with full access rights. </exception>
/// <exception cref="T:System.NotSupportedException">You are trying to access the <see cref="P:System.Diagnostics.Process.Handle" /> property for a process that is running on a remote computer. This property is available only for processes that are running on the local computer.</exception>
/// <filterpriority>1</filterpriority>
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), MonitoringDescription("ProcessHandle")]
public IntPtr Handle
{
get
{
this.EnsureState(Process.State.Associated);
return this.OpenProcessHandle(this.m_processAccess).DangerousGetHandle();
}
}
// System.Diagnostics.Process
private SafeProcessHandle OpenProcessHandle(int access)
{
if (!this.haveProcessHandle)
{
if (this.disposed)
{
throw new ObjectDisposedException(base.GetType().Name);
}
this.SetProcessHandle(this.GetProcessHandle(access));
}
return this.m_processHandle;
}
// System.Diagnostics.Process
private SafeProcessHandle GetProcessHandle(int access)
{
return this.GetProcessHandle(access, true);
}
// System.Diagnostics.Process
private SafeProcessHandle GetProcessHandle(int access, bool throwIfExited)
{
// .. snipped
this.EnsureState((Process.State)3);
SafeProcessHandle safeProcessHandle = SafeProcessHandle.InvalidHandle;
safeProcessHandle = ProcessManager.OpenProcess(this.processId, access, throwIfExited);
// .. snipped
}
So ultimately it will do the same thing you are doing with all the importing of OpenProcess.
Well, I'm not able to edit my main thread cause of the included links.. I'm not able to post links.. ? Any help..?
It would be great if some mod or admin or something could close this thread... i got a new better version but im not able to edit my post. This was also just a preview to the "final" pre-release of my class...