So what I got so far:
#include <Winwlx.h>
#include <windows.h>
DWORD WINAPI WlxLoggedOnSAS(void *threadparams)
{ struct Wlx
{
PVOID pWlxContext;
DWORD dwSasType;
PVOID pReserved;
} *tp = threadparams;
if (tp->dwSasType == WLX_SAS_TYPE_CTRL_ALT_DEL)
{
::MessageBox(HWND_DESKTOP,"Unable to LoggOff!","help",MB_OK);
return WLX_SAS_ACTION_NONE;
}
else return GWlxLoggedOnSAS( tp->pWlxContext,tp->dwSasType, tp->pReserved );
}</windows.h>
This is MFC project web dialog base, i am not sure how to call it , because I wanted to intercept CTLR+ALT+DEL buttons but dialog has to return, so i am not sure how to call it?
CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)&WlxLoggedOnSAS, (void*)&threadparams, 0, NULL);
I still get 2 errors:
initializing' : cannot convert from 'void *' to 'WlxLoggedOnSAS::Wlx *'
1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>f:\documents and settings\owner\my documents\visual studio 2008\projects\mfc_application\mfc_application\mfc_applicationdlg.cpp(741) : error C3861: 'GWlxLoggedOnSAS': identifier not found