This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Trapping the Win32 API path functions


On Tue, Jan 25, 2000 at 11:10:01PM -0600, Mumit Khan wrote:
>On Mon, 24 Jan 2000, Chris Faylor wrote:
>
>> It has occurred to me that we could trap the Win32 functions
>> which understand paths and slip Cygwin style paths in there.
>> 
>> At the most trivial, we could make a front-end for kernel32.dll
>> although I'm sure it wouldn't be that easy.
>
>Hmmm ... I'm trying to understand this. I can see hooking/replacing
>selected kernel32 functions in Cygwin DLL and doing pre- and post-
>processing before- and after- the real call.
>
>Are you suggesting that you make a replacement for kernel32? Could
>you elaborate a bit on your proposal please?

It is theoretically possible to trap all calls to a DLL.  I've seen
numerous references to it on DejaNews but I've never tried it myself.

I was proposing doing this in such a way that functions like CreateFile
would appear to accept cygwin paths.

cgf

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]