diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_rc.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_rc.cpp | 11 |
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)
|