summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_rc.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-21 20:23:22 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-21 20:23:22 +0000
commit52824c91bac6d6cc0f04e242b07d9031477b6362 (patch)
tree3cafc4ce886f9066b50d4d32bfdda4c5c9f954f4 /protocols/JabberG/src/jabber_rc.cpp
parentb4caa062df453412e7cafa5b96afab0b0c3a2940 (diff)
protocols cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6170 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_rc.cpp')
-rw-r--r--protocols/JabberG/src/jabber_rc.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_rc.cpp b/protocols/JabberG/src/jabber_rc.cpp
index 5990dad83b..9cfc9aceb3 100644
--- a/protocols/JabberG/src/jabber_rc.cpp
+++ b/protocols/JabberG/src/jabber_rc.cpp
@@ -624,18 +624,9 @@ int CJabberProto::AdhocForwardHandler(HXML, CJabberIqInfo* pInfo, CJabberAdhocSe
return JABBER_ADHOC_HANDLER_STATUS_CANCEL;
}
-typedef BOOL (WINAPI *LWS)(VOID);
-
int CJabberProto::AdhocLockWSHandler(HXML, CJabberIqInfo* pInfo, CJabberAdhocSession* pSession)
{
- BOOL bOk = FALSE;
- HMODULE hLibrary = LoadLibrary(_T("user32.dll"));
- if (hLibrary) {
- LWS pLws = (LWS)GetProcAddress(hLibrary, "LockWorkStation");
- if (pLws)
- bOk = pLws();
- FreeLibrary(hLibrary);
- }
+ BOOL bOk = LockWorkStation();
TCHAR szMsg[ 1024 ];
if (bOk)