>28 ms-help://MS.MSDNQTR.2003FEB.1041/devio/base/communications_resource_handles.htm >The fdwShareMode parameter must be zero, opening the resource for exclusive access. なので無理です。
Requirements Windows NT/2000/XP: Included in Windows XP and Windows Server 2003. Windows 95/98/Me: Unsupported. Header: Declared in Winspool.h; include Windows.h. Library: Use Winspool.lib.
たとえばこういうふうに。接尾辞はたぶんなくても平気だろう。(必要ならi64) const long long FOO = 9223372036854775807; const unsigned long long BAR = 0xffffffffffffffff; VC6までならlong longはないから<windows.h>のLONGLONGとULONGLONGとかで。
ms-help://MS.MSDNQTR.2003FEB.1041/fileio/base/writefile.htm >Windows Me/98/95: For operations on files, disks, pipes, or mailslots, >this parameter must be NULL; a pointer to an OVERLAPPED structure causes >the call to fail. However, the function supports overlapped I/O on serial and parallel ports.