GetLongPathName WinNT

So I use Win32API to get GetLongPathName on a Win2K box - works okay.
Apparently, I need to Windows NT + C++ requires NewAPIs.h to make it
work. Is there any way to do this for an NT box without having to
write a small extension?

Matt Maycock

···

--
There's no word in the English language for what you do to a dead
thing to make it stop chasing you.

So I use Win32API to get GetLongPathName on a Win2K box - works okay.
Apparently, I need to Windows NT + C++ requires NewAPIs.h to make it
work. Is there any way to do this for an NT box without having to
write a small extension?

Maybe using Ruby/DL.
You can find some info in What's Shiny and New in Ruby 1.8.0: http://www.whytheluckystiff.net/articles/rubyOneEightOh.html
Official site : http://ttsky.net/ruby/ruby-dl.html

Regards,
Vincent Isambart

Matt Maycock <ummaycoc@gmail.com> wrote in message news:<e86cebfb040810134174db7cbf@mail.gmail.com>...

So I use Win32API to get GetLongPathName on a Win2K box - works okay.
Apparently, I need to Windows NT + C++ requires NewAPIs.h to make it
work. Is there any way to do this for an NT box without having to
write a small extension?

Matt Maycock

Hi Matt,

I just release win32-file 0.2.1 which now includes a long_path()
method. There is both a C and pure Ruby version if you want to take a
look.

Regards,

Dan