N
Noor-man
Guest
Hi I have plugin.h and plugin.c
in the header I define this :
extern PLUG_CB_CREATEPROCESS* process_Info;
in the body :
PLUG_CB_CREATEPROCESS* process_Info ;
extern "C" __declspec(dllexport) void CBCREATEPROCESS(CBTYPE cbType,PLUG_CB_CREATEPROCESS* info)
{
//process_Info = new (PLUG_CB_CREATEPROCESS);
process_Info = info;
}
where PLUG_CB_CREATEPROCESS a strcutre from another header file
typedef struct
{
CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo;
IMAGEHLP_MODULE64* modInfo;
const char* DebugFileName;
PROCESS_INFORMATION* fdProcessInfo;
} PLUG_CB_CREATEPROCESS;
now I try to get this <g class="gr_ gr_225 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="225" id="225">strcture</g> from another c++ file ( memory.cpp)
numBytes = VirtualQueryEx(process_Info->fdProcessInfo->hProcess, (LPVOID)pageStart, &mbi, sizeof(mbi));
here I got info in this <g class="gr_ gr_379 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="379" id="379">strctureare</g> <g class="gr_ gr_388 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="388" id="388">diffrent</g> from the one it assigned at <g class="gr_ gr_594 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="594" id="594">line </g>
process_Info = info;
<g class="gr_ gr_594 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" data-gr-id="594" id="594">anybody</g> <g class="gr_ gr_595 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="595" id="595">know why</g> this <g class="gr_ gr_572 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar multiReplace" data-gr-id="572" id="572">happen</g>!!
Continue reading...
in the header I define this :
extern PLUG_CB_CREATEPROCESS* process_Info;
in the body :
PLUG_CB_CREATEPROCESS* process_Info ;
extern "C" __declspec(dllexport) void CBCREATEPROCESS(CBTYPE cbType,PLUG_CB_CREATEPROCESS* info)
{
//process_Info = new (PLUG_CB_CREATEPROCESS);
process_Info = info;
}
where PLUG_CB_CREATEPROCESS a strcutre from another header file
typedef struct
{
CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo;
IMAGEHLP_MODULE64* modInfo;
const char* DebugFileName;
PROCESS_INFORMATION* fdProcessInfo;
} PLUG_CB_CREATEPROCESS;
now I try to get this <g class="gr_ gr_225 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="225" id="225">strcture</g> from another c++ file ( memory.cpp)
numBytes = VirtualQueryEx(process_Info->fdProcessInfo->hProcess, (LPVOID)pageStart, &mbi, sizeof(mbi));
here I got info in this <g class="gr_ gr_379 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="379" id="379">strctureare</g> <g class="gr_ gr_388 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="388" id="388">diffrent</g> from the one it assigned at <g class="gr_ gr_594 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="594" id="594">line </g>
process_Info = info;
<g class="gr_ gr_594 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Style multiReplace" data-gr-id="594" id="594">anybody</g> <g class="gr_ gr_595 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="595" id="595">know why</g> this <g class="gr_ gr_572 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar multiReplace" data-gr-id="572" id="572">happen</g>!!
Continue reading...