Message from discussion
MS Windows API bindings
Received: by 10.204.154.76 with SMTP id n12mr4932133bkw.1.1341875363716;
Mon, 09 Jul 2012 16:09:23 -0700 (PDT)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.204.4.74 with SMTP id 10ls939506bkq.0.gmail; Mon, 09 Jul 2012
16:08:59 -0700 (PDT)
Received: by 10.204.151.213 with SMTP id d21mr2216948bkw.0.1341875339174;
Mon, 09 Jul 2012 16:08:59 -0700 (PDT)
Received: by 10.204.151.213 with SMTP id d21mr2216947bkw.0.1341875339159;
Mon, 09 Jul 2012 16:08:59 -0700 (PDT)
Return-Path: <aaronngray.li...@gmail.com>
Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179])
by gmr-mx.google.com with ESMTPS id k7si16825540bks.2.2012.07.09.16.08.59
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 09 Jul 2012 16:08:59 -0700 (PDT)
Received-SPF: pass (google.com: domain of aaronngray.li...@gmail.com designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of aaronngray.li...@gmail.com designates 209.85.217.179 as permitted sender) smtp.mail=aaronngray.li...@gmail.com; dkim=pass header...@gmail.com
Received: by lban1 with SMTP id n1so15816077lba.10
for <nodejs@googlegroups.com>; Mon, 09 Jul 2012 16:08:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:content-type;
bh=y+7IldLCCK/9ZrEkWgO/1JLnwD75Ks9T1ItrDBRW8fs=;
b=SERR4V2d3ngDf2P4E1lo7NiT+0BBRpiyxsudSNgO8gZXQ/mK2CRM8fTddI9IdwYI99
BJvz0hIM6IWX/wZa1rQa54p7k2KvSN+oXoLsYFcKVZr4UcxB2BAJHkqL2a78pAa6zqGI
v+U6ICGHxlyG3nhhirwhOtcyrZlg2TNACmCY+5x8q6t5aFR4EcYkmh+Lf+JBMznJjb/h
C9xaqw7IuX7hmAnmyoA/nlPLPp4wmemcX6ACXPT+p3ReUkVuIHv77YGwyDnMMqJJRQE7
AQmmkk4gMWYO/ofA2JMr0SriTbM/1L9sRpoVjriwS6GJPdvHJRW7iqxczwmfvJ9opusN
qRQQ==
Received: by 10.152.109.198 with SMTP id hu6mr60838lab.21.1341875338647; Mon,
09 Jul 2012 16:08:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.112.64.141 with HTTP; Mon, 9 Jul 2012 16:08:36 -0700 (PDT)
In-Reply-To: <ccf22968-6c0d-4f08-bbea-0dcaa49fb...@e20g2000vbm.googlegroups.com>
References: <4ee0a716-1134-4332-ae52-6bab129c9...@q29g2000vby.googlegroups.com>
<ccf22968-6c0d-4f08-bbea-0dcaa49fb...@e20g2000vbm.googlegroups.com>
From: Aaron Gray <aaronngray.li...@gmail.com>
Date: Tue, 10 Jul 2012 00:08:36 +0100
Message-ID: <CANkmNDd3AwjYMK-3Y1KxOxV_BJWHx3sNVswQzrGVWHQVZDf...@mail.gmail.com>
Subject: Re: [nodejs] Re: MS Windows API bindings
To: nodejs@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Okay my fall back is to generate C binding code using jison and a bit
of templated C generation if it is at all possible.
AFAICS it would be relatively easy to put together, and would be
useful for creating other C interfaces.
Types such as Windows HANDLES - HWND, etc and other types are the only
area I have not sussed how to deal with.
On 9 July 2012 23:45, mscdex <msc...@gmail.com> wrote:
> On Jul 9, 1:23 pm, AaronNGray <aaronngray.li...@gmail.com> wrote:
>> I am interested whether anyone has created bindings for any of the MS
>> Windows API ?
>
> This would be quite an undertaking for a generic binding. There is
> node-ffi, but AFAIK that's not recommended for production use because
> of the performance penalties.
>
> Your best bet is to incorporate just the Windows API functions you
> need for your binding/project.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en