Re: File Version without GetFileVersionInfo
- From: "Doug Harrison [MVP]" <dsh@xxxxxxxx>
- Date: Wed, 22 Jun 2005 00:04:51 -0500
On Tue, 21 Jun 2005 21:10:51 -0700, Alexander Grigoriev wrote:
> I think in NT+ OS you cannot rename a file if it's open without
> FILE_SHARE_DELETE flag. Mapped executables and DLLs are opened without it.
> It worked in Win9x, IIRC.
I tried it earlier today in WinXP. I wrote a console program that printed
its filename from GetModuleFileName(), slept for 20 sec giving me time to
rename the file in Explorer, and again printed its filename from
GetModuleFileName(). The rename was successful, but GetModuleFileName
didn't notice. :(
--
Doug Harrison
Microsoft MVP - Visual C++
.
- References:
- File Version without GetFileVersionInfo
- From: tnewton@xxxxxxxxx
- Re: File Version without GetFileVersionInfo
- From: Yan K. Avlasov
- Re: File Version without GetFileVersionInfo
- From: Joseph M . Newcomer
- Re: File Version without GetFileVersionInfo
- From: Mihajlo Cvetanović
- Re: File Version without GetFileVersionInfo
- From: Joseph M . Newcomer
- Re: File Version without GetFileVersionInfo
- From: Mihajlo Cvetanović
- Re: File Version without GetFileVersionInfo
- From: Alexander Grigoriev
- File Version without GetFileVersionInfo
- Prev by Date: Re: Custom NC region
- Next by Date: Re: Static Dll vs Shared Dll
- Previous by thread: Re: File Version without GetFileVersionInfo
- Next by thread: gethostname method fails
- Index(es):
Relevant Pages
|