diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-24 12:47:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-24 12:47:23 +0000 |
commit | 04ea225a48f0fe836361882cb0f78e7b99ee582f (patch) | |
tree | 10c284c74489c884cb5888fa32259bde6b5c413a /include | |
parent | 9c8e399b431a9b0995efd24752a47efbe6e84ade (diff) |
more useless conversions removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@8254 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/m_awaymsg.h | 2 | ||||
-rw-r--r-- | include/m_clist.h | 24 | ||||
-rw-r--r-- | include/m_clui.h | 14 | ||||
-rw-r--r-- | include/m_database.h | 2 | ||||
-rw-r--r-- | include/m_email.h | 2 | ||||
-rw-r--r-- | include/m_file.h | 2 | ||||
-rw-r--r-- | include/m_history.h | 2 | ||||
-rw-r--r-- | include/m_hotkeys.h | 6 | ||||
-rw-r--r-- | include/m_ignore.h | 6 | ||||
-rw-r--r-- | include/m_message.h | 2 | ||||
-rw-r--r-- | include/m_netlib.h | 2 | ||||
-rw-r--r-- | include/m_protocols.h | 12 | ||||
-rw-r--r-- | include/m_protomod.h | 4 | ||||
-rw-r--r-- | include/m_protosvc.h | 26 | ||||
-rw-r--r-- | include/m_url.h | 2 | ||||
-rw-r--r-- | include/m_userinfo.h | 2 | ||||
-rw-r--r-- | include/m_utils.h | 4 |
17 files changed, 57 insertions, 57 deletions
diff --git a/include/m_awaymsg.h b/include/m_awaymsg.h index 83d5cbc9f0..78db3428c1 100644 --- a/include/m_awaymsg.h +++ b/include/m_awaymsg.h @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define M_AWAYMSG_H__ 1
//show the away/na/etc message for a contact v0.1.0.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns 0 on success or nonzero on failure
//returns immediately, without waiting for the message to retrieve
diff --git a/include/m_clist.h b/include/m_clist.h index fcc0534d5c..20025b58dc 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -151,7 +151,7 @@ __forceinline HGENMENU Menu_AddMainMenuItem(CLISTMENUITEM *mi) //add a new item to the user contact menus
//identical to clist/addmainmenuitem except when item is selected the service
-//gets called with wParam = (WPARAM)(HANDLE)hContact
+//gets called with wParam = (MCONTACT)hContact
//pszContactOwner is obeyed.
//popup menus are not supported. pszPopupName and popupPosition are ignored.
//If ctrl is held down when right clicking, the menu position numbers will be
@@ -201,7 +201,7 @@ __forceinline void Menu_ShowItem(HGENMENU hMenuItem, BOOL bShow) }
//the context menu for a contact is about to be built v0.1.0.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//modules should use this to change menu items that are specific to the
//contact that has them
@@ -243,7 +243,7 @@ sense to store all this information in memory, etc. */
#define ME_CLIST_DOUBLECLICKED "CList/DoubleClicked"
//gets the string that the contact list will use to represent a contact
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = flags
//returns a pointer to the name, will always succeed, even if it needs to
//return "(Unknown Contact)"
@@ -265,7 +265,7 @@ sense to store all this information in memory, etc. #define MS_CLIST_GETCONTACTDISPLAYNAME "CList/GetContactDisplayName"
// Invalidates the display name cache
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = not used
#define MS_CLIST_INVALIDATEDISPLAYNAME "CList/InvalidateDiplayName"
@@ -318,14 +318,14 @@ typedef struct { #define MS_CLIST_ADDEVENT "CList/AddEvent"
//removes an event from the contact list's queue
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(HANDLE)hDbEvent
//returns 0 if the event was successfully removed, or nonzero if the event
//was not found
#define MS_CLIST_REMOVEEVENT "Clist/RemoveEvent"
//gets the details of an event in the queue v0.1.2.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = iEvent
//returns a CLISTEVENT* on success, NULL on failure
//Returns the iEvent-th event from the queue for hContact, so iEvent = 0 will
@@ -347,7 +347,7 @@ typedef struct { #define MS_CLIST_MENUDRAWITEM "CList/MenuDrawItem"
//builds the context menu for a specific contact v0.1.1.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns a HMENU identifying the menu. This should be DestroyMenu()ed when
//finished with.
@@ -363,7 +363,7 @@ typedef struct { #define IMAGE_GROUPSHUT 12
//get the icon that should be associated with a contact v0.1.2.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns an index into the contact list imagelist. See clist/geticonsimagelist
//If the contact is flashing an icon, this function will not return that
@@ -371,7 +371,7 @@ typedef struct { #define MS_CLIST_GETCONTACTICON "CList/GetContactIcon"
//The icon of a contact in the contact list has changed v0.1.2.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = iconId
//iconId is an offset into the clist's imagelist. See clist/geticonsimagelist
#define ME_CLIST_CONTACTICONCHANGED "CList/ContactIconChanged"
@@ -570,20 +570,20 @@ __forceinline HANDLE Clist_CreateGroup(HANDLE hParent, LPCTSTR ptszGroupName) #define MS_CLIST_SETHIDEOFFLINE "CList/SetHideOffline"
//do the message processing associated with double clicking a contact v0.1.1.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns 0 on success, nonzero on failure
#define MS_CLIST_CONTACTDOUBLECLICKED "CList/ContactDoubleClicked"
//do the processing for when some files are dropped on a contact v0.1.2.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(char**)ppFiles
//returns 0 on success, nonzero on failure
//ppFiles is an array of fully qualified filenames, ending with a NULL.
#define MS_CLIST_CONTACTFILESDROPPED "CList/ContactFilesDropped"
//change the group a contact belongs to v0.1.1.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(HANDLE)hGroup
//returns 0 on success, nonzero on failure
//use hGroup = NULL to put the contact in no group
diff --git a/include/m_clui.h b/include/m_clui.h index 07d9f9b5d8..18e4a33823 100644 --- a/include/m_clui.h +++ b/include/m_clui.h @@ -50,14 +50,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MS_CLUI_GROUPADDED "CLUI/GroupCreated"
//change the icon for a contact
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = iconid
//returns 0 on sucess, nonzero on failure
//iconid is an offset in the image list. see clist/geticonsimagelist
#define MS_CLUI_CONTACTSETICON "CLUI/ContactSetIcon"
//remove a contact from the list
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns 0 on success, nonzero on failure
//this is not necessarily the same as a contact being actually deleted, since
@@ -65,7 +65,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MS_CLUI_CONTACTDELETED "CLUI/ContactDeleted"
//add a contact to the list
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = iconId
//returns 0 on success, nonzero on failure
//The caller processes the 'hide offline' setting, so the callee should not do
@@ -83,7 +83,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MS_CLUI_CONTACTADDED "CLUI/ContactAdded"
//rename a contact in the list
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns 0 on success, nonzero on failure
//you should not re-sort the list on this call. A separate resort request will
@@ -135,20 +135,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MS_CLUI_GETCAPS "CLUI/GetCaps"
//a contact is being dragged outside the main window v0.1.2.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = MAKELPARAM(screenX, screenY)
//return nonzero to make the cursor a 'can drop here', or zero for 'no'
#define ME_CLUI_CONTACTDRAGGING "CLUI/ContactDragging"
//a contact has just been dropped outside the main window v0.1.2.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = MAKELPARAM(screenX, screenY)
//return nonzero if your hook processed this, so no other hooks get it
#define ME_CLUI_CONTACTDROPPED "CLUI/ContactDropped"
//a contact that was being dragged outside the main window has gone back in to
//the main window. v0.1.2.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//return zero
#define ME_CLUI_CONTACTDRAGSTOP "CLUI/ContactDragStop"
diff --git a/include/m_database.h b/include/m_database.h index 7f9d4a921d..4e30e42885 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -262,7 +262,7 @@ __forceinline MCONTACT DbGetAuthEventContact(DBEVENTINFO* dbei) /* DB/Event/GetText (0.7.0+)
Retrieves the event's text
- wParam = (WPARAM)0 (unused)
+ wParam = 0 (unused)
lParam = (LPARAM)(DBEVENTGETTEXT*)egt - pointer to structure with parameters
egt->dbei should be the valid database event read via db_event_get()
egt->datatype = DBVT_WCHAR or DBVT_ASCIIZ or DBVT_TCHAR.
diff --git a/include/m_email.h b/include/m_email.h index ecbf27cb0c..7eae65a7f2 100644 --- a/include/m_email.h +++ b/include/m_email.h @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define M_EMAIL_H__ 1
//send an e-mail to the specified contact v0.1.0.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns 0 on success or nonzero on failure
//if an error occurs the service will display a message box with the error
diff --git a/include/m_file.h b/include/m_file.h index ccb39cd66d..0eaf62832b 100644 --- a/include/m_file.h +++ b/include/m_file.h @@ -34,7 +34,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // brings up the send file dialog with the specified files already chosen
// returns immediately, without waiting for the send
-// wParam = (WPARAM)(HANDLE)hContact
+// wParam = (MCONTACT)hContact
// lParam = (LPARAM)(const char**)ppFiles
// returns file selection dialog's handle or 0 on error
// returns immediately, without waiting for the send
diff --git a/include/m_history.h b/include/m_history.h index a0c61f4fb4..7b95237f6a 100644 --- a/include/m_history.h +++ b/include/m_history.h @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define M_HISTORY_H__ 1
//show the History dialog box for a contact
-// wParam = (WPARAM)(HANDLE)hContact
+// wParam = (MCONTACT)hContact
// lParam = 0
//hContact can be NULL to show system messages
#define MS_HISTORY_SHOWCONTACTHISTORY "History/ShowContactHistory"
diff --git a/include/m_hotkeys.h b/include/m_hotkeys.h index effe9df65b..63843b47bd 100644 --- a/include/m_hotkeys.h +++ b/include/m_hotkeys.h @@ -62,7 +62,7 @@ extern int hLangpack; /* CoreHotkeys/Register service
Registers new hotkey
- wParam = (WPARAM)0
+ wParam = 0
lParam = (LPARAM)(HOTKEYDESC *)hotkey
Returns 0 on failure or hotkey atom id on success
*/
@@ -74,7 +74,7 @@ __forceinline INT_PTR Hotkey_Register(HOTKEYDESC *hk) /* CoreHotkeys/Unregister service
Unregister existing hotkey
- wParam = (WPARAM)0
+ wParam = 0
lParam = (LPARAM)(char *)pszName
Returns 0 on success or nonzero otherwise
*/
@@ -90,7 +90,7 @@ Returns lParam associated with activated hotkey /* Subclass/unsubclass edit box to act as hotkey control
wParam = (WPARAM)(HWND)hwndEdit
- lParam = (LPARAM)0
+ lParam = 0
Returns zero on success
You will get notification with LOWORD(wParam) == 0 when users sets hotkey.
diff --git a/include/m_ignore.h b/include/m_ignore.h index 0c1789a543..b40b9c2290 100644 --- a/include/m_ignore.h +++ b/include/m_ignore.h @@ -38,7 +38,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define IGNOREEVENT_TYPINGNOTIFY 7 // 0.7+
//determines if a message type to a contact should be ignored v0.1.0.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = message type, an ignoreevent_ constant
//returns 0 if the message should be shown, or nonzero if it should be ignored
//Use hContact = NULL to retrieve the setting for unknown contacts (not on the
@@ -47,14 +47,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MS_IGNORE_ISIGNORED "Ignore/IsIgnored"
//ignore future messages from a contact v0.1.0.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = message type, an ignoreevent_ constant
//returns 0 on success or nonzero on failure
//Use hContact = NULL to retrieve the setting for unknown contacts
#define MS_IGNORE_IGNORE "Ignore/Ignore"
//receive future messages from a contact v0.1.0.1+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = message type, an ignoreevent_ constant
//returns 0 on success or nonzero on failure
//Use hContact = NULL to retrieve the setting for unknown contacts
diff --git a/include/m_message.h b/include/m_message.h index f5ba26ea07..71ff3f4749 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern int hLangpack;
//brings up the send message dialog for a contact
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(char*)szText
//returns 0 on success or nonzero on failure
//returns immediately, just after the dialog is shown
diff --git a/include/m_netlib.h b/include/m_netlib.h index 44d9a55b37..62b3e5c536 100644 --- a/include/m_netlib.h +++ b/include/m_netlib.h @@ -622,7 +622,7 @@ typedef struct { //Shutdown connection
//wParam = (WPARAM)(HANDLE)hConnection
-//lParam = (LPARAM)0
+//lParam = 0
//Returns 0
#define MS_NETLIB_SHUTDOWN "Netlib/Shutdown"
__forceinline void Netlib_Shutdown(HANDLE h) {CallService(MS_NETLIB_SHUTDOWN, (WPARAM)h, 0);}
diff --git a/include/m_protocols.h b/include/m_protocols.h index 52e6107e08..b29fd4583d 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -224,7 +224,7 @@ typedef struct { #define MS_PROTO_ISPROTOCOLLOADED "Proto/IsProtocolLoaded"
//gets the network-level protocol associated with a contact
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//Returns a char* pointing to the asciiz name of the protocol or NULL if the
//contact has no protocol. There is no need to free() it or anything.
@@ -237,7 +237,7 @@ __forceinline char* GetContactProto(MCONTACT hContact) }
//determines whether the specified contact has the given protocol in its chain
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(const char*)szName
//Returns -1 if it is base protocol, positive number if it is filter and 0 if it doesn't
#define MS_PROTO_ISPROTOONCONTACT "Proto/IsProtoOnContact"
@@ -247,7 +247,7 @@ __forceinline char* GetContactProto(MCONTACT hContact) //This service is for notifying protocols that the user is typing a message v0.3.3+
//in a message dialog.
//This is typically sent by a message dialog when a user in the clist is typing.
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(int)typing state
//NOTE: Only protocols should generally call this service
#define MS_PROTO_SELFISTYPING "Proto/SelfIsTyping"
@@ -256,7 +256,7 @@ __forceinline char* GetContactProto(MCONTACT hContact) #define PROTOTYPE_CONTACTTYPING_INFINITE 2147483647
//This service is for notifying message dialogs/other plugins of a user typing. v0.3.3+
//This is typically sent by a protocol when a user in the clist is typing.
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(int)time (secs)
//NOTE: The time in seconds is used to tell a message dialog (or other plugin)
//how long to display its notification. If time is 0, then notification
@@ -269,7 +269,7 @@ __forceinline char* GetContactProto(MCONTACT hContact) //ProtoService PSS_USERISTYPING to the contacts protocol *after* verifying
//that the hContact is not NULL and the the user wishes to send notifications
//to this user (checked visibility, individual typing blocking, etc).
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(int)typing state
#define ME_PROTO_CONTACTISTYPING "Proto/ContactIsTypingEvent"
@@ -349,7 +349,7 @@ __forceinline int IsAccountEnabled(const PROTOACCOUNT* pa) //gets the account associated with a contact
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//Returns a char* pointing to the asciiz name of the protocol or NULL if the
//contact has no protocol. There is no need to mir_free() it or anything.
diff --git a/include/m_protomod.h b/include/m_protomod.h index fdd07122c6..6b3a485ed8 100644 --- a/include/m_protomod.h +++ b/include/m_protomod.h @@ -48,7 +48,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MS_PROTO_REGISTERMODULE "Proto/RegisterModule"
//adds the specified protocol module to the chain for a contact
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(const char*)szName
//returns 0 on success, nonzero on failure
//The module is added in the correct position according to the type given when
@@ -56,7 +56,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MS_PROTO_ADDTOCONTACT "Proto/AddToContact"
//removes the specified protocol module from the chain for a contact
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(const char*)szName
//returns 0 on success, nonzero on failure
#define MS_PROTO_REMOVEFROMCONTACT "Proto/RemoveFromContact"
diff --git a/include/m_protosvc.h b/include/m_protosvc.h index d083caf1ec..1a5dd3d817 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -450,19 +450,19 @@ typedef struct { #define PS_FILERESUMEW "/FileResumeW"
//Asks a protocol to join the chatroom from contact v0.8.0+
-//wParam = (WPARAM)(HANDLE)hContact
-//lParam = (LPARAM)0
+//wParam = (MCONTACT)hContact
+//lParam = 0
//Returns 0 on success, nonzero on failure
#define PS_JOINCHAT "/JoinChat"
//Asks a protocol to leave the chatroom from contact v0.8.0+
-//wParam = (WPARAM)(HANDLE)hContact
-//lParam = (LPARAM)0
+//wParam = (MCONTACT)hContact
+//lParam = 0
//Returns 0 on success, nonzero on failure
#define PS_LEAVECHAT "/LeaveChat"
//Asks a protocol to read contact information and translate them (for a lookup fields) v0.8.0+
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = (LPARAM)(DBCONTACTGETSETTING*)&dbcgs
//The flag PF4_INFOSETTINGSVC indicates that a protocol supports this. Basically it should
//do the same as MS_DB_CONTACT_GETSETTING_STR, except that for a lookup settings (e.g. Language)
@@ -506,8 +506,8 @@ typedef struct { // Get the max allowed length for the user nickname
// Optional, default value is 1024
-// wParam = (WPARAM)0
-// lParam = (LPARAM)0
+// wParam = 0
+// lParam = 0
// return = <= 0 for error, >0 the max length of the nick
#define PS_GETMYNICKNAMEMAXLENGTH "/GetMyNicknameMaxLength"
@@ -521,7 +521,7 @@ typedef struct { // Get the WAYD message for the user
// wParam = (WPARAM)WAYD_xxx
-// lParam = (LPARAM)0
+// lParam = 0
// Returns the text or NULL if there is none. Remember to mir_free the return value.
#define PS_GETMYWAYD "/GetMyWAYD"
@@ -533,14 +533,14 @@ typedef struct { // Get the max allowed length that a WAYD message can have
// Optional, default value is 1024
-// wParam = (WPARAM)0
-// lParam = (LPARAM)0
+// wParam = 0
+// lParam = 0
// Returns the max length
#define PS_GETMYWAYDMAXLENGTH "/GetMyWAYDMaxLength"
// Get the unread email message count, optional
-// wParam = (WPARAM)0
-// lParam = (LPARAM)0
+// wParam = 0
+// lParam = 0
// Returns the number of unread emails
#define PS_GETUNREADEMAILCOUNT "/GetUnreadEmailCount"
@@ -666,7 +666,7 @@ typedef struct { #define PSS_AUTHREQUESTW "/AuthRequestW"
// Send "User is Typing" (user is typing a message to the user) v0.3.3+
-// wParam = (WPARAM)(HANDLE)hContact
+// wParam = (MCONTACT)hContact
// lParam = (LPARAM)(int)typing type - see PROTOTYPE_SELFTYPING_X defines in m_protocols.h
#define PSS_USERISTYPING "/UserIsTyping"
diff --git a/include/m_url.h b/include/m_url.h index ec39566b31..33bbaaed83 100644 --- a/include/m_url.h +++ b/include/m_url.h @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define M_URL_H__ 1
//bring up the send URL dialog for a user
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
//returns 0 on success or nonzero on failure
//returns immediately, before the url is sent
diff --git a/include/m_userinfo.h b/include/m_userinfo.h index 1e865480d8..48612ffd13 100644 --- a/include/m_userinfo.h +++ b/include/m_userinfo.h @@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "m_options.h"
//show the User Details dialog box
-//wParam = (WPARAM)(HANDLE)hContact
+//wParam = (MCONTACT)hContact
//lParam = 0
#define MS_USERINFO_SHOWDIALOG "UserInfo/ShowDialog"
diff --git a/include/m_utils.h b/include/m_utils.h index eeaa419094..b6490a447c 100644 --- a/include/m_utils.h +++ b/include/m_utils.h @@ -180,11 +180,11 @@ __forceinline INT_PTR WindowList_Remove(HANDLE hList, HWND hwnd) { // finds a window given the hContact
// wParam = (WPARAM)(HANDLE)hList
-// lParam = (WPARAM)(HANDLE)hContact
+// lParam = (MCONTACT)hContact
// returns the window handle on success, or NULL on failure
#define MS_UTILS_FINDWINDOWINLIST "Utils/FindWindowInList"
__forceinline HWND WindowList_Find(HANDLE hList, MCONTACT hContact) {
- return (HWND)CallService(MS_UTILS_FINDWINDOWINLIST, (WPARAM)hList, (LPARAM)hContact);
+ return (HWND)CallService(MS_UTILS_FINDWINDOWINLIST, (WPARAM)hList, hContact);
}
// sends a message to all windows in a list using SendMessage
|