diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-29 16:31:31 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-29 16:31:31 +0000 |
commit | a54110ae83aeb7e6b31b7320bfec06562ae6b546 (patch) | |
tree | 279de9e5ac57c880725646c519b703fcbab4dbf9 /worldtime_protocol/worldtimeproto.cpp | |
parent | 7ca0277c12724173c8951f7db3d06edc33231f68 (diff) |
x64 portability
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@441 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'worldtime_protocol/worldtimeproto.cpp')
-rw-r--r-- | worldtime_protocol/worldtimeproto.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/worldtime_protocol/worldtimeproto.cpp b/worldtime_protocol/worldtimeproto.cpp index f782c0c..6a1cad4 100644 --- a/worldtime_protocol/worldtimeproto.cpp +++ b/worldtime_protocol/worldtimeproto.cpp @@ -13,7 +13,7 @@ int previousMode, UINT id_timer = 0;
// protocol related services
-int GetCaps(WPARAM wParam,LPARAM lParam)
+INT_PTR GetCaps(WPARAM wParam,LPARAM lParam)
{
int ret = 0;
switch (wParam) {
@@ -46,7 +46,7 @@ int GetCaps(WPARAM wParam,LPARAM lParam) * @param wParam : max size of the name
* @param lParam : reference to a char *, which will hold the name
*/
-int GetName(WPARAM wParam,LPARAM lParam)
+INT_PTR GetName(WPARAM wParam,LPARAM lParam)
{
char *name = (char *)Translate(PROTO);
size_t size = min(strlen(name),wParam-1); // copy only the first size bytes.
@@ -62,7 +62,7 @@ int GetName(WPARAM wParam,LPARAM lParam) <tt>PLI_PROTOCOL | PLI_ONLINE | PLI_OFFLINE</tt>
* @return an \c HICON in which the icon has been loaded.
*/
-int LoadIcon(WPARAM wParam,LPARAM lParam)
+INT_PTR LoadIcon(WPARAM wParam,LPARAM lParam)
{
UINT id;
@@ -81,7 +81,7 @@ int LoadIcon(WPARAM wParam,LPARAM lParam) return (int) (HICON) NULL;
}
- return (int) LoadImage(hInst, MAKEINTRESOURCE(id), IMAGE_ICON,
+ return (INT_PTR) LoadImage(hInst, MAKEINTRESOURCE(id), IMAGE_ICON,
GetSystemMetrics(wParam & PLIF_SMALL ? SM_CXSMICON : SM_CXICON),
GetSystemMetrics(wParam & PLIF_SMALL ? SM_CYSMICON : SM_CYICON), 0);
return 0;
@@ -92,7 +92,7 @@ int LoadIcon(WPARAM wParam,LPARAM lParam) * @param wParam : The new mode
* @param lParam : Allways set to 0.
*/
-int SetStatus(WPARAM wParam,LPARAM lParam)
+INT_PTR SetStatus(WPARAM wParam,LPARAM lParam)
{
previousMode = mcStatus;
mcStatus = (int)wParam;
@@ -103,7 +103,7 @@ int SetStatus(WPARAM wParam,LPARAM lParam) /** Returns the current status
*/
-int GetStatus(WPARAM wParam,LPARAM lParam)
+INT_PTR GetStatus(WPARAM wParam,LPARAM lParam)
{
return mcStatus;
}
@@ -176,7 +176,7 @@ static DWORD CALLBACK sttFakeAckInfoSuccess( LPVOID param ) return 0;
}
-int GetInfo(WPARAM wParam, LPARAM lParam) {
+INT_PTR GetInfo(WPARAM wParam, LPARAM lParam) {
CCSDATA *ccs = (CCSDATA *) lParam;
DWORD dwThreadId;
HANDLE hEvent;
@@ -194,7 +194,7 @@ int GetInfo(WPARAM wParam, LPARAM lParam) { return 0;
}
-int EditContact(WPARAM wParam, LPARAM lParam) {
+INT_PTR EditContact(WPARAM wParam, LPARAM lParam) {
LISTITEM pa;
HWND hwndList = (HWND)CallService(MS_CLUI_GETHWND, 0, 0);
DBVARIANT dbv;
|