win 0.1.13 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.13
1
+ 0.1.16
data/lib/win/dde.rb CHANGED
@@ -562,7 +562,7 @@ module Win
562
562
  #
563
563
  # idInst:: [in] Specifies the application instance identifier obtained by a previous call to the DdeInitialize.
564
564
  # hsz:: [in] Handle to the string to copy. This handle must have been created by a previous call to the
565
- # DdeCreateStringHandle function.
565
+ # DdeCreateStringHandle function.
566
566
  # psz:: [in, out] Pointer to a buffer that receives the string. To obtain the length of the string, this parameter
567
567
  # should be set to NULL.
568
568
  # cchMax:: [in] Specifies the length, in TCHARs, of the buffer pointed to by the psz parameter. For the ANSI
@@ -700,15 +700,12 @@ module Win
700
700
  # parameter is NULL, the server receives the default CONVCONTEXT structure during the XTYP_CONNECT
701
701
  # or XTYP_WILDCONNECT transaction.
702
702
  # *Returns*:: If the function succeeds, the return value is the handle to the established conversation.
703
- # If the function fails, the return value is 0L. The DdeGetLastError function can be used to get
704
- # the error code, which can be one of the following values:
705
- # - DMLERR_DLL_NOT_INITIALIZED
706
- # - DMLERR_INVALIDPARAMETER
707
- # - DMLERR_NO_CONV_ESTABLISHED
708
- # - DMLERR_NO_ERROR
709
- # ---
710
- # <b>Enhanced (snake_case) API makes all args optional except for first (dde instance id), and returns nil if
711
- # the function was unsuccessful.</b>
703
+ # If the function fails, the return value is 0L. The DdeGetLastError function can be used to get
704
+ # the error code, which can be one of the following values:
705
+ # - DMLERR_DLL_NOT_INITIALIZED
706
+ # - DMLERR_INVALIDPARAMETER
707
+ # - DMLERR_NO_CONV_ESTABLISHED
708
+ # - DMLERR_NO_ERROR
712
709
  # ---
713
710
  # *Remarks*
714
711
  # - The client application cannot make assumptions regarding the server selected. If an instance-specific name
@@ -718,6 +715,9 @@ module Win
718
715
  # - All members of the default CONVCONTEXT structure are set to zero except cb, which specifies the size of the
719
716
  # structure, and iCodePage, which specifies CP_WINANSI (the default code page) or CP_WINUNICODE, depending on
720
717
  # whether the ANSI or Unicode version of the DdeInitialize function was called by the client application.
718
+ # ---
719
+ # <b>Enhanced (snake_case) API makes all args optional except for first (dde instance id), and returns nil if
720
+ # the function was unsuccessful.</b>
721
721
  #
722
722
  # :call-seq:
723
723
  # conversation_handle = dde_connect( instance_id, [service = 0, topic = 0, context = nil] )
@@ -740,12 +740,12 @@ module Win
740
740
  # - DMLERR_NO_CONV_ESTABLISHED
741
741
  # - DMLERR_NO_ERROR
742
742
  # ---
743
- # <b>Enhanced (snake_case) API returns *true/false* instead of nonzero/zero.</b>
744
- # ---
745
743
  # *Remarks*:
746
744
  # Any incomplete transactions started before calling DdeDisconnect are immediately abandoned. The XTYP_DISCONNECT
747
745
  # transaction is sent to the Dynamic Data Exchange (DDE) callback function of the partner in the conversation.
748
746
  # Generally, only client applications must terminate conversations.
747
+ # ---
748
+ # <b>Enhanced (snake_case) API returns *true/false* instead of nonzero/zero.</b>
749
749
  #
750
750
  # :call-seq:
751
751
  # success = dde_disconnect(conversation_handle)
@@ -759,7 +759,7 @@ module Win
759
759
  #
760
760
  # [*Syntax*] UINT DdeGetLastError( DWORD idInst );
761
761
  #
762
- # idInst:: [in] Specifies the application instance identifier obtained by a previous call to the DdeInitialize.
762
+ # idInst:: [in] Specifies the application instance identifier obtained by a previous call to the DdeInitialize.
763
763
  #
764
764
  # *Returns*:: If the function succeeds, the return value is the last error code, which can be one of the following:
765
765
  # DMLERR_ADVACKTIMEOUT, DMLERR_EXECACKTIMEOUT, DMLERR_INVALIDPARAMETER, DMLERR_LOW_MEMORY, DMLERR_MEMORY_ERROR,