Re: Windows CE API hooking in C# or .NET CF

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Whose API calls are you trying to hook? Generally, you're going to need
exported functions in a DLL to accomplish this and managed code on Windows
CE won't do that. You could conceivably hook some routines using .NET CF
2.0, I think. The 'why' of all this is not clear to me, however. What are
you trying to accomplish?

As far as using DLLs, of course you can do that from managed code. P/Invoke
(Platform Invoke) the calls. This is done all over the place and thirty
seconds reading the old messages in this group will probably find you dozens
of example calls to unmanaged code. OpenNETCF SDF has probably hundreds of
examples in the source, www.opennetcf.org.

Paul T.

"joemango" <joseandremorales@xxxxxxxxx> wrote in message
news:1155708746.691539.213990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi everyone, I was just reading the following artilce titled: "Spy: A
Windows CE API Interceptor" by Dmitri Leman in Dr. Dobbs Journal,
September 02, 2003 located at


http://www.ddj.com/184405459?pgno=1


the article presents source code that includes a dll file which holds
all the hooking procedures it is written in C++.


Is there an implementation for windows api hooking in C# or .NET out
there or how can it be done ?


Also how can I use the dll file in a C# program to make use of its
procedures ?


Thanks,


Jose.



.



Relevant Pages

  • Re: a pre-beginners question: what is the pros and cons of .net, compared to ++
    ... as the windows forms architecture wraps a number of activex ... and retains backwards compatibility with both COM and the classic Win32 api. ... C++ cannot inherently do video capture either, since you have to import COM. ... Outlook or Word or IM programs, each of which would run in managed code ...
    (microsoft.public.dotnet.general)
  • Re: RUNDLL32.EXE
    ... 0x66800000 0x155000 Windows Shell Common Dll ... 0x75FA0000 0xA000 BSD Socket API for Windows ... 0x794D0000 0x15000 Microsoft WinSock Extension APIs ...
    (comp.security.firewalls)
  • Re: newbe about API
    ... Emne: Re: newbe about API ... > I found all these API-CALL strings are finally compiled to ... more than that...and Windows simply takes this to an extreme that this ... DLL, when a weak point is found (which, with Microsoft, is something ...
    (alt.lang.asm)
  • Re: undestroyable process
    ... Since when Windows hooks spy upon API ... including injection of DLL into the fogeign ... inject a DLL into some system process ...
    (microsoft.public.win32.programmer.kernel)
  • Skype codec
    ... user32.dll Windows XP USER API Client DLL ... LINKINFO.dll Windows Volume Tracking ... SETUPAPI.dll Windows Setup API ... MSVFW32.dll Microsoft Video for Windows DLL ...
    (microsoft.public.win32.programmer.mmedia)