summaryrefslogtreecommitdiff
path: root/ping/log.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-08-06 23:58:54 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-08-06 23:58:54 +0000
commitf022fc1b79ee29c7f8f796499129476fa49e0ca5 (patch)
treea9745d2cb345035ad66cb035d844eb8a8c2ebe54 /ping/log.cpp
parent7246339c9ec44dd0492e7756b5d7fd5a9ed0d699 (diff)
x64 conversion
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@526 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'ping/log.cpp')
-rw-r--r--ping/log.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ping/log.cpp b/ping/log.cpp
index a9bb7e3..7b1b4fc 100644
--- a/ping/log.cpp
+++ b/ping/log.cpp
@@ -1,7 +1,7 @@
#include "common.h"
#include "log.h"
-int Log(WPARAM wParam, LPARAM lParam) {
+INT_PTR Log(WPARAM wParam, LPARAM lParam) {
char buf[1024], tbuf[512], dbuf[512];
CallService(PLUG "/GetLogFilename", (WPARAM)1024, (LPARAM)buf);
@@ -29,7 +29,7 @@ int Log(WPARAM wParam, LPARAM lParam) {
return 0;
}
-int GetLogFilename(WPARAM wParam, LPARAM lParam) {
+INT_PTR GetLogFilename(WPARAM wParam, LPARAM lParam) {
DBVARIANT dbv;
char *filename = (char *)lParam;
if(DBGetContactSetting(0, PLUG, "LogFilename", &dbv)) {
@@ -46,14 +46,14 @@ int GetLogFilename(WPARAM wParam, LPARAM lParam) {
return 0;
}
-int SetLogFilename(WPARAM wParam, LPARAM lParam) {
+INT_PTR SetLogFilename(WPARAM wParam, LPARAM lParam) {
DBWriteContactSettingString(0, PLUG, "LogFilename", (char *)lParam);
return 0;
}
-int ViewLogData(WPARAM wParam, LPARAM lParam) {
+INT_PTR ViewLogData(WPARAM wParam, LPARAM lParam) {
char buf[1024];
CallService(PLUG "/GetLogFilename", (WPARAM)MAX_PATH, (LPARAM)buf);
- return (int)ShellExecute((HWND)wParam, "edit", buf, "", "", SW_SHOW);
+ return (INT_PTR)ShellExecute((HWND)wParam, "edit", buf, "", "", SW_SHOW);
}