View previous topic :: View next topic |
Author |
Message |
hlzy Advanced Cheater
Reputation: 0
Joined: 13 Jun 2011 Posts: 56
|
Posted: Tue Jun 14, 2011 9:30 pm Post subject: why DBK32Initialize is error? |
|
|
I call the procedure DBK32Initialize is error.program can not run normally
in .dll file i export like this:
{$R *.res}
exports
OP,RPM,WPM,DBK32Initialize;
begin
end.
in .exe program i import DBK32Initialize like this:
procedure DBK32Initialize;external '.\project1.dll';
when i call the procedure DBK32Initialize it make error immediately
it show that 'Access violation';
but compile .dll and .exe does not have error.
i have copy dbk32.sys to the .exe file directory.
if it can not load the .sys drive
that means it can not read/write memory by drive?
only use windows API readprocessmemory/writeprocessmemory?
how to solve?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Wed Jun 15, 2011 7:39 am Post subject: |
|
|
try adding some debug messages in dbk32initialize to find out where it goes wrong
also, if you're using the 64-bit compiler, make sure you do not use any jedi defined functions (only structures are useful)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
hlzy Advanced Cheater
Reputation: 0
Joined: 13 Jun 2011 Posts: 56
|
Posted: Wed Jun 15, 2011 7:46 am Post subject: |
|
|
No.i am use 32bit compiler.
and i am sorry to say i do not know how to add debug message to a dll project.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Wed Jun 15, 2011 7:51 am Post subject: |
|
|
get dbgview and use outputdebugstring in the dll to see where it goes wrong
if you've got an debugger attached, check the debug messages in your debugger (dbgview won't show it then)
or just use showmessage
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
hlzy Advanced Cheater
Reputation: 0
Joined: 13 Jun 2011 Posts: 56
|
Posted: Wed Jun 15, 2011 8:03 am Post subject: |
|
|
try
configure_vmx(strtoint('$'+vmx_p1_txt), strtoint('$'+vmx_p2_txt) );
except
//couldn't parse the password
end;
the program can not run pass here.
it is in the procedure DBK32Initialize
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Wed Jun 15, 2011 8:10 am Post subject: |
|
|
does it get past there when NOT debugging ? (debuggers generally don't handle vmx well when there is no vmx running)
anyhow, seeing you don't have much experience with this doubt you would even know how to use dbvm effectively. Add -dNOVMX to the compile parameters (or just comment it out)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
hlzy Advanced Cheater
Reputation: 0
Joined: 13 Jun 2011 Posts: 56
|
Posted: Wed Jun 15, 2011 8:21 am Post subject: |
|
|
Yes ,my experience is not enough
thank you. I comment it out can pass.
but if do not comment it out only need to set -dNOVMX to the compile parameters?
and i also do not know what is vmx use to?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25791 Location: The netherlands
|
Posted: Wed Jun 15, 2011 11:35 am Post subject: |
|
|
if you use -dNOVMX you won't need to comment it out as the special code won't get executed then anyhow
as for what vmx is used for:
Hiding physical memory
preventing ce from being read
faking parts of memory
Hooking interrupts in 64-bit
changing the hardware id of your system
ability to watch taskswitches
profiler functions
kernelmode access whenever you feel like it
easy routines to ignore data pagefaults
etc...
Nothing that important if you only want to read memory using kernelmode read/write memory
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
hlzy Advanced Cheater
Reputation: 0
Joined: 13 Jun 2011 Posts: 56
|
Posted: Thu Jun 16, 2011 4:50 am Post subject: |
|
|
en,may be i have no chance to use vmx.i only want to use read/write memory.
at last, thank you very very much
|
|
Back to top |
|
 |
|