2009-10-13 12:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbwin/win_prn2.c
    ! alter hb_PrintFileRaw() to open printed file in FILE_SHARE_READ mode.
      (borrowed from xhb, patch by Peter Rees <peter(AT)rees.co.nz>)
This commit is contained in:
Viktor Szakats
2009-10-13 10:41:18 +00:00
parent 790f8fc290
commit cef64f9ba4
2 changed files with 7 additions and 2 deletions

View File

@@ -17,6 +17,11 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-10-13 12:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn2.c
! alter hb_PrintFileRaw() to open printed file in FILE_SHARE_READ mode.
(borrowed from xhb, patch by Peter Rees <peter(AT)rees.co.nz>)
2009-10-13 02:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbtip/sendmail.prg
+ Fixed to allow inclusion of descriptive name in "from" address.
@@ -67,7 +72,7 @@
! Fixed wrongly referring to 7-bit encoding.
! Fixed some more hardcoded charsets.
+ Added support for user-selectable encoding.
; TOFIX: Still doesn't work for some reason.
; TOFIX: Still doesn't work for some reason. [DONE]
* contrib/hbtip/encqp.prg
* contrib/hbtip/mail.prg

View File

@@ -440,7 +440,7 @@ LONG hb_PrintFileRaw( const char * cPrinterName, const char * cFileName, const c
LPTSTR lpFileName = HB_TCHAR_CONVTO( cFileName );
HANDLE hFile;
hFile = CreateFile( ( LPCTSTR ) lpFileName, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
hFile = CreateFile( ( LPCTSTR ) lpFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
HB_TCHAR_FREE( lpFileName );