doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
win_taskkeyhook.cpp File Reference
#include "../../idlib/precompiled.h"
#include <afxwin.h>
#include "win_local.h"

Go to the source code of this file.

Macros

#define DLLEXPORT   __declspec(dllexport)
 

Functions

LRESULT CALLBACK MyTaskKeyHookLL (int nCode, WPARAM wp, LPARAM lp)
 
BOOL AreTaskKeysDisabled ()
 
BOOL IsTaskMgrDisabled ()
 
void DisableTaskKeys (BOOL bDisable, BOOL bBeep, BOOL bTaskMgr)
 

Variables

LPCTSTR KEY_DisableTaskMgr = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"
 
LPCTSTR VAL_DisableTaskMgr = "DisableTaskMgr"
 
HHOOK g_hHookKbdLL = NULL
 
BOOL g_bBeep = FALSE
 

Macro Definition Documentation

#define DLLEXPORT   __declspec(dllexport)

Definition at line 40 of file win_taskkeyhook.cpp.

Function Documentation

BOOL AreTaskKeysDisabled ( )

Definition at line 91 of file win_taskkeyhook.cpp.

void DisableTaskKeys ( BOOL  bDisable,
BOOL  bBeep,
BOOL  bTaskMgr 
)

Definition at line 117 of file win_taskkeyhook.cpp.

BOOL IsTaskMgrDisabled ( )

Definition at line 100 of file win_taskkeyhook.cpp.

LRESULT CALLBACK MyTaskKeyHookLL ( int  nCode,
WPARAM  wp,
LPARAM  lp 
)

Definition at line 62 of file win_taskkeyhook.cpp.

Variable Documentation

BOOL g_bBeep = FALSE

Definition at line 50 of file win_taskkeyhook.cpp.

HHOOK g_hHookKbdLL = NULL

Definition at line 49 of file win_taskkeyhook.cpp.

LPCTSTR KEY_DisableTaskMgr = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System"

Definition at line 43 of file win_taskkeyhook.cpp.

LPCTSTR VAL_DisableTaskMgr = "DisableTaskMgr"

Definition at line 44 of file win_taskkeyhook.cpp.