Article View: borland.public.cppbuilder.nativeapi
Article #14222Re: SHGetSpecialFolderLocation!
From: Ed Mulroy [TeamB]
Date: Thu, 21 Aug 2003 12:24
Date: Thu, 21 Aug 2003 12:24
50 lines
2137 bytes
2137 bytes
---------------------
C:\Lookat\temp
>type temp57.cpp
#include <stdio.h>
#include <windows.h>
int main()
{
char TmpDir[MAX_PATH + 1] = {0};
char long_dir[MAX_PATH + 1];
GetTempPath(MAX_PATH, TmpDir);
printf("%s\n", TmpDir);
GetLongPathName(TmpDir, long_dir, sizeof(long_dir));
printf("%s\n", long_dir);
return 0;
}
C:\Lookat\temp
>bcc32 -WCR temp57
Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland
temp57.cpp:
Turbo Incremental Link 5.64 Copyright (c) 1997-2002 Borland
C:\Lookat\temp
>temp57
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
C:\Documents and Settings\Administrator\Local Settings\Temp\
C:\Lookat\temp
>
---------------------
. Ed
> Safari wrote in message
> news:3f44ad81@newsgroups.borland.com...
>
> Please look at this:
> {
> char TmpDir[MAX_PATH + 1] = {0};
> GetTempPath(MAX_PATH, TmpDir)
> }
>
> Return me:
> "D:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\"
> How can i have:
> "D:\Documents and Settings\Administrator\Local Settings\Temp\"?
> My Meaning is: LongPath and ShortPath.
Technical Details
Message-ID:
<3f44ba0f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3F425543.9040507@alloymail.com> <3f429e1d$1@newsgroups.borland.com> <3f44ad81@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7ce38efab0f8f813 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-21 05:27:43 PST From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <3F425543.9040507@alloymail.com> <3f429e1d$1@newsgroups.borland.com> <3f44ad81@newsgroups.borland.com> Subject: Re: SHGetSpecialFolderLocation! Date: Thu, 21 Aug 2003 08:24:27 -0400 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 206.228.162.71 Message-ID: <3f44ba0f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061468687 206.228.162.71 (21 Aug 2003 05:24:47 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail