Exemple #1
0
int main()
{
	MSG msg;

	printf("push F2 for spam Mathias !!:D\n");
	SetHook();
	GetMessage(&msg, NULL, 0, 0);
	ReleaseHook();
	return (0);
}
Exemple #2
0
LRESULT C_Edit::OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	try {

		m_currentWindow = NULL;
		ReleaseHook();

		DefWindowProc();
	}
	catch (C_STLNonStackException const &exception) {
		exception.Log(_T("Exception in C_Edit::SetCLSID"));
	}

	return S_OK;
}
typename std::enable_if<(I < sizeof...(Types))>::type
IterateTupleRelease(std::tuple<Types...>& t, logger* log, HMODULE module)
{
    ReleaseHook(*std::get<I>(t), log, module);
    IterateTupleRelease<I + 1>(t, log, module);
}