#OpenFile/SHARE/Serial #
12-Jul-94 05:40:13
Sb: #29932-#OpenFile/SHARE/Serial #
Fm: Brian Ku 72262,1600
To: Gary D. Shank 75300,1205
Hi Gary,
> I've written a multi-product installation/setup program that uses
> OpenFile to open a file called A:\DISK1.INF that contains installation
> scripts. Each product must contain A:\DISK1.INF on its first
> diskette. Here's where it gets weird. I have two identical sets of
> installation diskettes except that one set has volumn serial numbers
> (written by DOS FORMAT) and the other set does not. When SHARE is
> loaded and in use, the set of diskettes with the volumn serial numbers
> will not install. It has opened and read the first A:\DISK1.INF but
> when it comes to the next A:\DISK1.INF, OpenFile is returning 0x0003
> (path not found) in the OFSTRUCT. If SHARE is not loaded, both sets
> of diskettes work great. Why is OpenFile failing with 0x0003 when
> SHARE is loaded and the diskettes contain volumn serial numbers????
> I've tried using various combinations of OF_SHARE_xxxx but to no
> avail.
I'm not sure why you're running into this problem. Could it be that you
need to flush the buffer or increase the File handles? The WinSDK forum
would be a more appropriate place to post this question.
Sincerely,
Brian Ku
-Microsoft Developer Support