DWORD is uint32  : i
LPTSTR is pointer to string, 2 versions,
ascii  version : *c
unicode version : *w
usually add suffix A for ascii, W for unicode version of function names.

also look at the bottom of page to confirm the name of dll, in this case
kernel32.dll

'kernel32 GetLogicalDriveStringsA​ i i *c'&cd

'kernel32 GetLogicalDriveStringsW​ i i *w'&cd
On Oct 23, 2015 2:56 AM, "Devon McCormick" <[email protected]> wrote:

> So, if I want to translate this call as shown on MSDN:
> DWORD WINAPI GetLogicalDriveStrings(
>
>   _In_  DWORD  nBufferLength,
>   _Out_ LPTSTR lpBuffer
> );
>
> ​I need to do something like 'kernel32 GetLogicalDriveStrings​ i *'&cd ?
>
>
> On Thu, Oct 22, 2015 at 12:35 PM, bill lam <[email protected]> wrote:
>
> > You can still cpoy from the j602 winapi.dat file, eg
> > the line
> > kernel32 ReadFile i i * i *i *
> >
> > tell you the signature for ReadFile, and call it as
> >
> > 'kernel32 ReadFile i i * i *i *'&cd  your parameters...
> >
> > However the signatures inside this winapi.dat are only correct
> > for 32-bit windows. Anyways you most likely need to google MSDN
> > because winapi.dat didn't tell anything about the meaning of each
> > argument.
> >
> > Чт, 22 окт 2015, Devon McCormick написал(а):
> > > Can I figure out how to do this for the call I need by looking at one
> of
> > > the existing API packages?
> > >
> > >
> > > On Thu, Oct 22, 2015 at 11:38 AM, chris burke <[email protected]>
> > wrote:
> > >
> > > > It got dropped. The old winapi dated back to the Win95 days and was a
> > > > straight dump of VB calls. Some time ago we decided it was too out of
> > date
> > > > to distribute, and that it would be better to use MSDN.
> > > >
> > > > On 22 October 2015 at 07:48, Devon McCormick <[email protected]>
> > wrote:
> > > >
> > > > > I understand the forum traffic is light since we're all riveted by
> > the
> > > > > possibility of a Mets/Blue Jays world series, but I do have a
> > J-related
> > > > > question.
> > > > >
> > > > > While attempting to load some old code, I get an error trying to
> load
> > > > > "winapi".  I see a number of particular API libraries in the
> addons,
> > but
> > > > > not this one.  Does anyone know if there's a replacement for this
> or
> > did
> > > > it
> > > > > get dropped?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Devon
> > > > > --
> > > > >
> > > > > Devon McCormick, CFA
> > > > >
> > > > > Quantitative Consultant
> > > > >
> > ----------------------------------------------------------------------
> > > > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > > > >
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Devon McCormick, CFA
> > >
> > > Quantitative Consultant
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> > --
> > regards,
> > ====================================================
> > GPG key 1024D/4434BAB3 2008-08-24
> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to