Инициализация окружения.

BOOL WINAPI WlxInitialize( LPWSTR lpWinsta,HANDLE hWlx,PVOID pvReserved,PVOID pWinlogonFunctions,PVOID *pWlxContext )
{
	DisableThreadLibraryCalls( m_hModule );
	LPGINA_CONTEXT		lpContext		= NULL;
	lpContext = (LPGINA_CONTEXT)LocalAlloc( LMEM_FIXED | LMEM_ZEROINIT,sizeof(GINA_CONTEXT) );
	if( lpContext == NULL )
		return FALSE;
	*pWlxContext = (PVOID)lpContext;
	lpContext->hDllInstance = m_hModule; 
	lpContext->pWlxFuncs = (PWLX_DISPATCH_VERSION_1_3)pWinlogonFunctions;
	lpContext->hWlx = hWlx;
	lpContext->station = lpWinsta;
	lpContext->pWlxFuncs->WlxUseCtrlAltDel( hWlx );
	return TRUE;
}