From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1149539ccb97b04c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-14 11:43:10 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "martin.m.dowie" Newsgroups: comp.lang.ada References: Subject: Re: Win32 filetype problem X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <68so7.9766$Pm5.1801958@news2-win.server.ntlworld.com> Date: Fri, 14 Sep 2001 19:34:50 +0100 NNTP-Posting-Host: 62.252.148.117 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 1000492674 62.252.148.117 (Fri, 14 Sep 2001 19:37:54 BST) NNTP-Posting-Date: Fri, 14 Sep 2001 19:37:54 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:13083 Date: 2001-09-14T19:34:50+01:00 List-Id: "Beard, Frank" wrote in message news:mailman.1000484414.2704.comp.lang.ada@ada.eu.org... > The return statement should probably be: > > return Result /= 16#FFFF_FFFF# and then > (Result and Win32.WinNT.FILE_ATTRIBUTE_DIRECTORY) /= 0; > > Get Pascal Obry's POSIX binding, which is a wrapper around the > Win32 APIs, off of AdaPower and look at POSIX_Files.Is_File and > POSIX_Files.Is_Directory. > > Even if you don't use the POSIX binding directly, it's a good > source for seeing how to use the Window's API. comes to the same thing doesn't it? anyway, thanks for the tip - I assume this is the one in adapower?..