| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-Id: | <5.1.0.14.2.20020625144350.03b45810@pop.puretec.de> |
| X-Sender: | webs20p4 AT mail DOT synaptron DOT de |
| Date: | Tue, 25 Jun 2002 14:43:56 +0200 |
| To: | "cygwin" <cygwin AT cygwin DOT com> |
| From: | David Ecker <david DOT ecker AT synaptron DOT de> |
| Subject: | using kill in cygwin1.dll |
| Mime-Version: | 1.0 |
Hi,
I'll try to call the function kill from a Borland Application to kill a
cygwin application.
typedef int __declspec(dllimport) _pascal PKill(int pid, int signal);
...
HMODULE mod = LoadLibrary("cygwin1.dll");
Kill = (PKill) GetProcAddress("kill");
...
int ret = Kill(pid,signal);
...
If I call the system like that I'll get a -1 as return -> Error.
So here are my questions :
1) Do I need to initialize something before calling kill?
2) is _pascal the correct calling style (or _stdcall, _cdecl)??
3) Are the types correct? (I would say so, but who knows for sure)
Thx
David Ecker
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |