Commit Graph

24 Commits

Author SHA1 Message Date
Viktor Szakats
1b4008723b 2012-01-06 16:13 UTC+0100 Viktor Szakats (harbour syenar.net)
* ChangeLog
  * (whole tree)
    * changed e-mail address
2012-01-06 15:28:23 +00:00
Viktor Szakats
7ad3481808 2011-12-24 03:32 UTC+0100 Viktor Szakats (harbour syenar.hu)
* ChangeLog
  * (whole tree)
    * removed obsolete antispam measure from my e-mail address
2011-12-24 02:47:24 +00:00
Viktor Szakats
28668633cb 2011-06-01 11:01 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    ! fixed UNICODE conflict after recent LoadLibrary patch. 
      this file has forced UNICODE off due to MS idiocy so I had 
      to add more idiocy to interface with properly UNICODE setting 
      compliant local API
      Note, I didn't test non-UNICODE build, if you're interested
      in it, pls do it
  * contrib/hbwin/tests/testmapi.prg
    + simpleio
2011-06-02 09:02:44 +00:00
Viktor Szakats
744a7426dd 2011-05-09 13:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwapi.h
  * contrib/hbwin/wapi_misc.c
    * hbwapi_FileNameAtSystemDir() made static
    + hbwapi_LoadLibrarySystem() public function added
      this is safe version of LoadLibrary() when loading Windows
      system dlls. it will avoid dll hijacking vulnerability.
    ! deleted HB_EXPORT from hbwapi_t*() functions, they are
      public to this lib due to UNICODE setting dependance
    ; TODO: make hbwapi_LoadLibrarySystem() effective also for WinCE, 
            for now it will not add any system path under this platform.

  * contrib/hbwin/axcore.c
  * contrib/hbwin/mapi.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/wapi_shellapi.c
    ! LoadLibrary() -> hbwapi_LoadLibrarySystem()
      thus fixing dll hijack vulnerability
2011-05-09 11:34:40 +00:00
Viktor Szakats
c7e69160ac 2011-04-25 22:30 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbct/hbct.hbp
    * raise c dialect to gnu90 on linux for stime()
  * contrib/hbwin/wapi_winbase.c
    ! define WAPI_GET*PATHNAME() as noop functions on wce
  * contrib/hbwin/win_shell.c
    ! made WIN_SHELLNOTIFYICON() a dummy on wce
  * contrib/hbwin/mapi.c
    ! do not undef UNICODE for wce (results in missing LoadLibraryA() on link)
  * contrib/hbwin/wapi_commctrl.c
    ! made WAPI_IMAGELIST_LOADIMAGE() a dummy on wce
  * contrib/sddfb/sddfb.hbp
  * contrib/hbfbird/hbfbird.hbp
    * set c dialect to gnu90 for fbird headers
  * contrib/hbpre.hbm
    * set c dialect to gnu90 for wce/allmingw for cegcc Windows headers
2011-04-25 20:34:20 +00:00
Viktor Szakats
b7c67500d2 2010-12-21 14:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    ! Disabled UNICODE support for WIN_MAPISENDMAIL(). Apparently this
      is called "Simple MAPI" interface by Microsoft, it's deprecated
      and _doesn't_ support U16 UNICODE. UTF-8 is supposed to be supported
      to some extent, but in a weird way, so I'm leaving the implementation
      to interested users. I recommend everyone to use hbcurl + hbtip for
      sending e-mails.
2010-12-21 13:14:23 +00:00
Viktor Szakats
81c9b0506c 2010-06-04 15:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/*
    * Deleted 'www.' from harbour-project.org website name.
      (www.harbour-project.org -> harbour-project.org)
2010-06-04 13:32:23 +00:00
Viktor Szakats
16242fc4b7 2010-03-13 03:03 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/gtwvt/gtwvt.c
    ! Reverted RegisterClassEx() to RegisterClass() for WinCE.
      Thanks for the information.

  * src/rtl/gtdos/gtdos.c
  * src/rtl/gtwvt/gtwvt.c
  * src/rtl/filesys.c
  * src/rdd/dbcmd.c
  * src/rdd/dbcmd53.c
  * src/rdd/wafunc.c
  * src/rdd/workarea.c
  * src/rdd/dbfcdx/dbfcdx1.c
  * src/rdd/dbffpt/dbffpt1.c
  * src/rdd/ordwldsk.c
  * src/rdd/hbsix/sxord.c
  * src/rdd/hbsix/sxsem.c
  * src/rdd/ordcount.c
  * contrib/hbtpathy/tpwin.c
  * contrib/rddbmcdx/bmdbfcdx.c
  * contrib/gtwvg/gtwvg.c
  * contrib/gtwvg/wvggui.c
  * contrib/gtwvg/wvgwing.c
  * contrib/rddads/adsfunc.c
  * contrib/hbwin/axcore.c
  * contrib/hbwin/mapi.c
  * contrib/hbwin/win_dlg.c
    * 'memset( &obj, 0, sizeof( TYPE_OF_OBJ ) )'
      changed to:
      'memset( &obj, 0, sizeof( obj ) )'
      (same meaning but less room for mistake)
    * Variable scope cleanups in few places.

  * bin/hb-mkimp.bat
  * src/vm/itemapi.c
    * Formatting.
2010-03-13 02:07:35 +00:00
Przemyslaw Czerpak
cdd7cd30db 2010-02-14 15:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbwince.h
    * redirect GetProcAddress() to GetProcAddressA() in WinCE builds.
      ASCII version of GetProcAddress() is supported by WinCE 3.0 and
      later versions.

  * harbour/include/hbdefs.h
    - removed HBTEXT() macro

  * harbour/src/common/hbver.c
  * harbour/src/rtl/diskspac.c
  * harbour/src/rtl/disksphb.c
  * harbour/src/rtl/gtwvt/gtwvt.c
  * harbour/src/vm/extrap.c
  * harbour/src/vm/maindllp/dllpcode.c
  * harbour/contrib/gtwvg/gtwvg.c
  * harbour/contrib/gtwvg/gtwvg.h
  * harbour/contrib/gtwvg/wvgwin.c
  * harbour/contrib/hbwin/wapi_winbase.c
  * harbour/contrib/hbwin/axcore.c
  * harbour/contrib/hbwin/mapi.c
  * harbour/contrib/hbwin/win_prn2.c
  * harbour/contrib/hbwin/win_prn3.c
  * harbour/contrib/hbwin/wapi_shellapi.c
    * eliminated HBTEXT() macro

  * harbour/src/rtl/diskspac.c
  * harbour/src/rtl/disksphb.c
  * harbour/contrib/hbwin/wapi_winbase.c
    % optimized GetProcAddress() calls to store function addresses
      in static variables
2010-02-14 14:18:13 +00:00
Viktor Szakats
5cfcb4f323 2010-02-09 03:55 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/common/Makefile
  * src/common/hbwince.c
  + src/common/hbwin.c
    ! Moved Windows UNICODE helper function into new source,
      leaving WinCE API local emulation into separate source file.

  * include/hbwince.h
    + Now automatically includes windows.h. (since it depends on it)

  * include/hbdefs.h
    - Deleted HB_OS_WIN_USED autodetection. Not needed anymore.
    ! Fixed to not include hbwince.h anymore. It should be included
      directly from source files, where needed.

  * include/hbdefs.h
  * contrib/hbodbc/odbc.c
  * contrib/rddsql/sddodbc/odbcdd.c
    + Always defining HB_TCHAR_*() macros. They will be dummies
      in non-Windows or non-UNICODE builds.

  * include/clipdefs.h
    ! Legacy Clipper types moved to the bottom, because it's
      no longer true that hbapi.h defines their dependent types
      (our legacy ones).

  * contrib/hbwin/win_bmpd.c
  * contrib/hbwin/wapi_wingdi.c
  * contrib/hbwin/win_misc.c
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/wapi_alloc.c
  * contrib/hbwin/wapi_winuser.c
  * contrib/hbwin/hbwin.h
  * contrib/hbwin/hbwinole.h
  * contrib/hbwin/mapi.c
  * contrib/hbwin/wapi_wingdi_font.c
  * contrib/hbwin/olecore.c
  * contrib/hbwin/wce_simc.c
  * contrib/hbwin/wapi_winnls.c
  * contrib/hbwin/win_bmp.c
  * contrib/hbwin/win_com.c
  * contrib/hbwin/Makefile
  * contrib/hbwin/win_regc.c
  * contrib/hbwin/win_prn1.c
  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
  * contrib/hbwin/wapi_commctrl.c
  * contrib/hbwin/win_osc.c
  * contrib/hbwin/wce_smsc.c
  * contrib/hbwin/wapi_err.c
  * contrib/hbwin/legacycd.c
  * contrib/hbwin/hbwapi.h
  * contrib/hbwin/wapi_shellapi.c
  * contrib/hbwin/win_dlg.c
  * contrib/hbwin/legacyco.c
  * contrib/hbwin/win_dll.c
  * contrib/hbwin/wapi_winbase_mutex.c
    + Reworked the way windows.h is included and headers
      are organized. New types allow complete control and
      flexibility. Finally.

  * src/vm/mainwin.c
  * src/vm/maindll.c
  * src/vm/maindllh.c
  * src/vm/cmdarg.c
  * src/vm/maindllp.c
  * src/vm/task.c
  * src/vm/fm.c
  * src/vm/extrap.c
  * src/vm/thread.c
  * src/vm/hvmall.c
  * src/vm/dynlibhb.c
  * src/common/hbgete.c
  * src/common/hbffind.c
  * src/common/hbver.c
  * src/common/hbtrace.c
  * src/common/hbfsapi.c
  * src/common/hbdate.c
  * src/rtl/gtwin/gtwin.c
  * src/rtl/fstemp.c
  * src/rtl/gttone.c
  * src/rtl/fserr.c
  * src/rtl/filesys.c
  * src/rtl/lang.c
  * src/rtl/diskspac.c
  * src/rtl/console.c
  * src/rtl/cputime.c
  * src/rtl/gtclip.c
  * src/rtl/oemansi.c
  * src/rtl/disksphb.c
  * src/rtl/net.c
  * src/rtl/gtgui/gtgui.c
  * src/rtl/hbproces.c
  * src/rtl/gtwvt/gtwvt.h
  * src/rtl/gtwvt/gtwvt.c
  * src/rtl/gtkbstat.c
  * contrib/hbct/ctnet.c
  * contrib/hbct/dattime3.c
  * contrib/hbct/disk.c
  * contrib/hbodbc/odbc.c
  * contrib/xhb/hboutdbg.c
  * contrib/xhb/xhberrc.c
  * contrib/xhb/filestat.c
  * contrib/xhb/hbserv.c
  * contrib/hbtpathy/tpwin.c
  * contrib/hbmzip/hbmzip.c
  * contrib/hbqt/hbqt_base.cpp
  * contrib/hbnf/getenvrn.c
  * contrib/rddsql/sddodbc/odbcdd.c
  * contrib/rddads/adsx.c
  * contrib/rddads/adsfunc.c
  * contrib/rddads/rddads.h
  * contrib/rddads/ads1.c
  * contrib/rddads/adsmgmnt.c
  * examples/hbapollo/apollo.c
    + HB_OS_WIN_USED trick replaced with direct windows.h
      inclusion, just like we do for all other OSes.
    + Also inclded hbwince.h in source files which required
      it. Please test it.

  * contrib/hbqt/gtqtc/gtqtc.cpp
    - Deleted commented code to not create false grep hits
      all the time.
2010-02-09 02:58:53 +00:00
Viktor Szakats
0ef977b36e 2010-01-18 13:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn1.c
  * contrib/hbwin/hbwapi.h
    + Added public functions to return and retrieve HDC and HPEN
      handles. This makes it possible to use these in 3rd party
      code and other parts of hbwin lib. F.e. to create pure
      wrappers for GDI functions.
    + win_prn1.c now uses hbwapi_ret_*() functions to return
      HDC and HPEN handles.
    * Renamed static GC related functions.
    ! WIN_SETPEN() fixed to retrieve pointer from _2nd_ param.
      (it was 1st previously, pls review me)
    ! WIN_SETPEN() fixed to not allocate new GC pointer if
      an existing GC pointer was passed as 2nd parameter.
      (please review me)

  * contrib/hbwin/mapi.c
  * contrib/hbwin/wapi_commctrl.c
    ! Fixed to compile with Cygwin.
      [TOMERGE 2.0]

  * contrib/hbwin/win_prn1.c
    - Deleted unnecessary winspool.h header.

  * contrib/hbwin/win_prn2.c
  * contrib/hbwin/win_prn3.c
    - Deleted winspool.h header for LCC compiler.
      We don't support LCC compiler in Harbour.
    ! Cleaned windows.h inclusion.

  * contrib/hbfimage/fi_winfu.c
  * contrib/hbfimage/fi_wrp.c
    * Formatting.
    + TOFIX added to use GC collected pointers.
2010-01-18 12:30:26 +00:00
Viktor Szakats
83ea866c61 2010-01-14 03:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn3.c
    * ULONG -> HB_SIZE
    ! Fixed new warning in hb_tstrncat() (assigment in conditional).
      I've now basically restored my original version taken from common lib.

  * contrib/hbwin/mapi.c
    * Formatting.
2010-01-14 02:26:19 +00:00
Viktor Szakats
2e7a94a814 2009-12-26 12:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
    + Added note that at least QT 4.5.0 is required for Harbour.
      [TOMERGE 2.0]

  * package/winuni/mpkg_win_uni_extra_copy.bat
    + Copying full source of hbide to Windows binary release.
    ; TODO: Probably it'd be better to move this tool to examples to
            avoid such exceptions.
      [TOMERGE 2.0]

  * package/winuni/RELNOTES
    + Added link to sf.net files.
    * Next Windows binary release to not include HBQT libs
      built against static QT libs.
      [TOMERGE 2.0]

  * contrib/hbwin/mapi.c
    ! Minor correction / optimization.
      [TOMERGE 2.0]
2009-12-26 11:18:25 +00:00
Viktor Szakats
2854c05053 2009-12-18 12:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    ! Fixed typo in r13235 patch. This could have caused memory 
      corruption and MAPI errors.
    ; Please retest.
2009-12-18 11:43:54 +00:00
Viktor Szakats
caf44bd828 2009-12-17 22:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    ! Fixed typo causing GPF when using 'long' calling form.
    ! Fixed not counting recipients when using 'simple' calling form.
    ; Toninho, could you pls retest?
2009-12-17 21:59:47 +00:00
Viktor Szakats
99f5921c00 2009-12-16 21:38 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/hbwin.ch
  * contrib/hbwin/tests/testmapi.prg
  * contrib/hbwin/mapi.c
    + Added HB_WIN_MAPI_* constants for recipient types.
    + WIN_MAPISENDMAIL() now accept 8th (sender) as simple string,
      this will be passed as sender name to Windows.
    + WIN_MAPISENDMAIL() now accept 9th (recipient) parameter
      as simple list of strings. Values will be passed as
      'TO' recipient names to Windows.
    + WIN_MAPISENDMAIL() now accept 10th (attachment) parameter
      as simple list of strings. Values will be passed as
      pathname to Windows.
    % One minor optimization in WIN_MAPISENDMAIL().
    + Added example for simple form of WIN_MAPISENDMAIL() call.
2009-12-16 20:40:18 +00:00
Viktor Szakats
4829b38dae 2009-12-16 21:18 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    * WIN_MAPISENDMAIL() fixed to set sender as MAPI_ORIG.
      This is the default value (zero), but we shouldn't assume such things.
    + WIN_MAPISENDMAIL() recipient arrays elements third parameter
      is optional.
    ! WIN_MAPISENDMAIL() fixed to set recipient address type as
      MAPI_TO by default (if there is no 3rd element or 3rd element is
      non-numeric). So far it was defaulting to MAPI_ORIG in these case,
      which is wrong.
    ! WIN_MAPISENDMAIL() fixed to skip recipient if neither first
      nor second element is a non-empty string. It may have caused
      GPFs before.
    * WIN_MAPISENDMAIL() changed to accept 1st element of file
      attachment array list as pathname, and 2nd element as
      optional filename. 2nd element is now truly optional, files
      won't be skipped if omitted.
      Original code accepted filename in 1st element, but it's
      cleaner this way and also testmapi.prg calls it this way,
      so it might have been a typo.
    ! WIN_MAPISENDMAIL() fixed file attachments handling to not
      cause GPF is 1st array element (pathname) is non-string or
      empty. These items will now be skipped.
    ; Please retest also with bad parameters. And I'd appreciate
      if someone could review as it's blind coding.
2009-12-16 20:23:42 +00:00
Przemyslaw Czerpak
9ccc8edfb8 2009-12-16 01:26 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbwin/mapi.c
    ! fixed compilation with OpenWatcom
2009-12-16 00:26:31 +00:00
Viktor Szakats
f3be4e51c5 2009-12-13 17:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    ! Added back zeroing rcp/file structure list.

  * INSTALL
    * Minor.

  * contrib/gtwvg/wvgutils.c
  * contrib/hbwin/win_misc.c
  * contrib/hbwin/mapi.c
    * ZeroMemory() -> memset()
2009-12-13 16:30:16 +00:00
Viktor Szakats
b36077420e 2009-12-13 14:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    + Added support for unlimited number of recipients and
      attached files. Please test and review.

  * utils/hbmk2/hbmk2.prg
    + Added support for linux/open64. (Please test)

  * INSTALL
    + Added open64.
2009-12-13 13:49:14 +00:00
Viktor Szakats
55f6219681 2009-12-12 21:24 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/tests/testmapi.prg
  * contrib/hbwin/mapi.c
    ! Fixes.
2009-12-12 20:24:27 +00:00
Viktor Szakats
2430d97b22 2009-12-12 19:27 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/mapi.c
    + Added support for UNICODE.
    ; Untested, I don't have a mailer on any Windows systems I have
      access to to try it.
      Please make tests with MSVC also, to check UNICODE.
    ! Fixed typo in prev modification.
    ! Added ( ULONG ) cast to -1 value.
    + Added copyright header.

  * contrib/hbwin/tests/testmapi.prg
    + Added some test data to make it work.
      (couldn't test it though, all I get is msgbox that I have no
      mailer)
2009-12-12 18:45:54 +00:00
Viktor Szakats
947362d444 2009-12-12 15:42 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/Makefile
  * contrib/hbwin/mapi.c
    + Added to Makefile.
    ! Added SVN ID.
    ! Added License header. (pls add your name to copyright headers)
    ! Fixed to use simple quote to include Harbour headers.
    ! Fixed Windows header inclusion.
    ! Disabled for UNICODE.
    ! Fixed to not use return value on stack as temporary variable.
    ! Fixed to not use static variable.
    ! Fixed UNICODE literals (also for WinCE).
    ! Fixed to not create NULL "holes" in passed to Windows lists
      if received arrays have wrong content.
    ! Fixed to check return value of GetProcAddress().
    % Optimized to only do parameter processing if MAPISendMail is available.
    * Cleaned string parameter defaulting to "".
    * Castings added and changed.
    * Optimizations.
    * Formatting (indentation, deleted unnecessary {}, variable scopes, ' ;' endings)
    * Variable scopes.
    * Using HB_SIZE.
    * Avoiding duplicating constants.
    + Added some provisions for UNICODE support. Otherwise whole
      code is disabled until this gets fully implemented.
    ; TODO: It'd be probably beneficial to remove artificial limit of
            100 recipients and file attachments.
    ; NOTE: I didn't make any functional tests, so please make some.
            An example/test code would be nice in tests subdir.
2009-12-12 14:43:52 +00:00
Antonio Carlos Pantaglione
8d0fba2d44 2009-12-12 10:45 UTC-0300 Antonio Carlos Pantaglione <toninho@fwi.com.br>
+ harbour/contrib/hbwin/mapi.c
  + harbour/contrib/hbwin/tests/testmapi.prg
    * MAPI send mail function.
2009-12-12 12:57:49 +00:00