i have question error code 0x770002

c++ / delphi package - dll injection and api hooking

i have question error code 0x770002

Postby kimjw0820 » Wed Nov 30, 2016 9:54 am

Hello madshi,

I am trying to hook methods such as CoCreateInstance from Ole32.dll
but office 2016 32bit word, excel, ppt HookAPI fail.

error code : 0x770002

test : win10 64bit / office 32bit
3PC test..

office 2013 CoCreateInstance hook success.
office 2016 another api hook success.
another process hook success.

Thanks. :)
kimjw0820
 
Posts: 15
Joined: Fri Sep 11, 2015 1:54 am

Re: i have question error code 0x770002

Postby madshi » Thu Dec 15, 2016 10:11 am

This error code means "code not interceptable", which means that madCodeHook has the opinion that trying to hook that API would result in stability issues.

Are you calling HookAPI with any special flags? How does your HookAPI call look like exactly?
madshi
Site Admin
 
Posts: 9275
Joined: Sun Mar 21, 2004 5:25 pm

Re: i have question error code 0x770002

Postby kimjw0820 » Mon Dec 19, 2016 8:06 am

not special flags..
i calling function to HookAPI("ole32.dll", "CoCreateInstance", reinterpret_cast<void *>(new_function), reinterpret_cast<void **>(&original_function)) ...

only ms-office 2016 fail..
kimjw0820
 
Posts: 15
Joined: Fri Sep 11, 2015 1:54 am

Re: i have question error code 0x770002

Postby madshi » Fri Jan 06, 2017 6:02 pm

Sorry for the late reply.

Unfortunately I only have an Office 2010 license, so I'm not sure how I can test Office 2016. Any ideas? Maybe you could create a test VM for me, so that I could reproduce the problem on my PC? You could email me the VM download URL, and of course I would delete the VM after testing is done.

You're saying the problem occurs with Office 32bit. Have you tested Office 64bit? Does the problem occur there, too? (I'm not sure if Office even exists in a 64bit version.)

Which exact madCodeHook build are you using?
madshi
Site Admin
 
Posts: 9275
Joined: Sun Mar 21, 2004 5:25 pm

Re: i have question error code 0x770002

Postby kimjw0820 » Tue Jan 10, 2017 1:57 am

hello madshi,
you posible try office 365 for free?
try 1-month free (https://products.office.com/en-us/try)

using version 3.1.12 - 2016-12-07 download

Thanks :)
kimjw0820
 
Posts: 15
Joined: Fri Sep 11, 2015 1:54 am

Re: i have question error code 0x770002

Postby madshi » Tue Jan 10, 2017 8:26 am

Does the problem occur with that version, too?
madshi
Site Admin
 
Posts: 9275
Joined: Sun Mar 21, 2004 5:25 pm

Re: i have question error code 0x770002

Postby kimjw0820 » Thu Jan 12, 2017 12:50 am

yes, office 365 == office 2016
kimjw0820
 
Posts: 15
Joined: Fri Sep 11, 2015 1:54 am

Re: i have question error code 0x770002

Postby kimjw0820 » Wed Apr 26, 2017 5:57 am

hello..??
kimjw0820
 
Posts: 15
Joined: Fri Sep 11, 2015 1:54 am

Re: i have question error code 0x770002

Postby madshi » Wed Apr 26, 2017 10:54 pm

Sorry for failing to follow-up on this one.

Recently I had another customer report a similar problem, and he told me that upgrading to the latest madCodeHook build solved the issue for him. Could you try the latest build?

http://madshi.net/madCollection.exe
madshi
Site Admin
 
Posts: 9275
Joined: Sun Mar 21, 2004 5:25 pm

Re: i have question error code 0x770002

Postby kimjw0820 » Fri Apr 28, 2017 3:02 am

hello,
madchook 3.x, 4.x Still failing...
date 3.29~3.30 build lib office 2016 CoCreateInstance hook fail..
kimjw0820
 
Posts: 15
Joined: Fri Sep 11, 2015 1:54 am


Return to madCodeHook

Who is online

Users browsing this forum: No registered users and 3 guests

cron