Article View: borland.public.cppbuilder.nativeapi
Article #4474Re: How to find out if a drive-letter is 'subst' drive and if yes, what is the connected dir?
From: MR
Date: Mon, 30 Jan 2006 09:53
Date: Mon, 30 Jan 2006 09:53
53 lines
2334 bytes
2334 bytes
"Andrue Cope [TeamB]" <no.spam@not.a.valid.address> schrieb:
>What a curious request. No version of Builder can create a real DOS
>application.
I know, but I wrote a console-tool for BCB, which should also be
compilable by BC50 for creating pure DOS programs (instead of
console-program).
>Anyway have you tried calling ScUNCFromLocalPath() to see if the UNC
>path sees 'through' the drive substitution?
I just tried it with BCB:
char str[256];
SCODE s=ScUNCFromLocalPath("T:\\", str, sizeof(str));
with z:\\ being set in the DOS-BOX with
SUBST T: C:\
but I got a strange message when executing
Either there exists no standard-mail-client or the current mail-client
can't fullfill the messaging reuqest. Please execute Microsoft Outllok
and define it as standard-mail-client. [TRANSLATED]
instead of delivering
"C:\\" inside str.
Trying to use this in BC50 results in some compiler-errors when
including mapiutil.h:
pshpack8.h: Error directive: 8-byte-packing is not supported!
I'm not sure it makes sense to dive into trying to get it run, because
this function does not deliver the intended under windows, as shown
above...
~~~~~
I finally found the function
QueryDosDevice()
which really does what I want, but unfortunately only under windows.
Isn't there really no way to get the same under DOS?
~~~~~~
Thanks a lot,
Michael
Technical Details
Message-ID:
<ulnrt1thg3ol5n3gq5kdm094fgrkicrsk6@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<7e5mt1tgs8g8aiccinc8otj9e30htumds7@4ax.com> <43ddd465$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1f1d5f65bf11a172 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: MR <> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to find out if a drive-letter is 'subst' drive and if yes, what is the connected dir? Date: Mon, 30 Jan 2006 10:53:14 +0100 Message-ID: <ulnrt1thg3ol5n3gq5kdm094fgrkicrsk6@4ax.com> References: <7e5mt1tgs8g8aiccinc8otj9e30htumds7@4ax.com> <43ddd465$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 3.1/32.783 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 84.57.47.235 X-Trace: newsgroups.borland.com 1138614754 84.57.47.235 (30 Jan 2006 01:52:34 -0700) Lines: 54 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail