Hero
February 28th, 2005, 09:45
Hi all
I have been witten an small import protector for some training,but I got an strange
problem in it.My algorithm is following:
I simply inject some codes in program that cause all of import table is retranslated
to use of LoadLibrary,GetProcAddress,FreeLibrary.
My problem is that when I protect the import table of an application that has no message
translation loop(for example a simple MessageBoxA in masm32) it runs normaly,but
when I protect a program that has an messge loop it get terminated with error code 80h
(ERROR_WAIT_NO_CHILDREN).
Do you know why this will happen?I can't solve it myself.
In addtion I attached to small programs and protected one to see.
sincerely yours
I have been witten an small import protector for some training,but I got an strange
problem in it.My algorithm is following:
I simply inject some codes in program that cause all of import table is retranslated
to use of LoadLibrary,GetProcAddress,FreeLibrary.
My problem is that when I protect the import table of an application that has no message
translation loop(for example a simple MessageBoxA in masm32) it runs normaly,but
when I protect a program that has an messge loop it get terminated with error code 80h
(ERROR_WAIT_NO_CHILDREN).
Do you know why this will happen?I can't solve it myself.
In addtion I attached to small programs and protected one to see.
sincerely yours