delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/06/06:13:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <bobbymcn2001 AT yahoo DOT com>
From: "Robert McNulty Junior" <bobbymcn2001 AT yahoo DOT com>
To: "Jesper Eskilson" <jojo AT virtutech DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: Accessing Cygwin API calls from a native Windows app
Date: Wed, 6 Jun 2001 05:04:41 -0500
Message-ID: <NFBBLEPABINFAPNCOFOMIEBECAAA.bobbymcn2001@yahoo.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <Pine.LNX.4.30.0106061202350.20051-100000@rachel.hq.vtech>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

-mcygwin -mwindows

-----Original Message-----
From: cygwin-owner AT sources DOT redhat DOT com
[mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Jesper Eskilson
Sent: Wednesday, June 06, 2001 5:08 AM
To: cygwin AT cygwin DOT com
Cc: Jesper Eskilson
Subject: Accessing Cygwin API calls from a native Windows app



Hi!

Is it at all possible to call a Cygwin API function from a native Windows
application? I know that you can't simultaneously link with MSVCRT and
cygwin1.dll at the same time, but I was think rather along the lines of
calling LoadLibrary() on cygwin1.dll and then doing GetProcAddress() on
the API entry point.

I managed to get as far as successfully calling GetProcAddres(), but when
calling the function in question (cygwin_conv_to_win32_path, just for
starters), the program crashed. Something is probably not initialized
correctly.

The reason I'm trying to do this is that I'm trying to get a native
windows application to interoperate smoothly with a Cygwin environment (if
one exists, of course). One important aspect of this is the ability of
understanding Cygwin-style links and mount points.

Any thoughts?

[please cc me on any reply, since I am not a subscriber to the list]

/Jesper
-- 
-------------------------------------------------------------------------
Jesper Eskilson                                         jojo AT virtutech DOT se
Virtutech                                         http://www.virtutech.se
-------------------------------------------------------------------------


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019