Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

  1. #include "precomp.h"
  2. #include "resource.h"
  3. #include "call.h"
  4. #include "imsconf3.h"
  5. #include "ConfNmSysInfoNotify.h"
  6. #include "ConfUtil.h"
  7. ///////////////////////////////////////
  8. // INmSysInfoNotify
  9. ///////////////////////////////////////
  10. STDMETHODIMP CConfNmSysInfoNotifySink::GateKeeperNotify( IN NM_GK_NOTIFY_CODE code )
  11. {
  12. HRESULT hr = S_OK;
  13. switch( code )
  14. {
  15. case NM_GKNC_REG_CONFIRM: TRACE_OUT(("NM_GKNC_REG_CONFIRM notification received"));
  16. SetGkLogonState(NM_GK_LOGGED_ON);
  17. break;
  18. case NM_GKNC_LOGON_TIMEOUT: TRACE_OUT(("NM_GKNC_LOGON_TIMEOUT notification received"));
  19. SetGkLogonState(NM_GK_IDLE);
  20. PostConfMsgBox(IDS_ERR_GK_LOGON_TIMEOUT);
  21. break;
  22. case NM_GKNC_REJECTED: TRACE_OUT(("NM_GKNC_REJECTED notification received"));
  23. PostConfMsgBox(IDS_ERR_GK_LOGON_REJECTED);
  24. SetGkLogonState(NM_GK_IDLE);
  25. break;
  26. case NM_GKNC_UNREG_CONFIRM: TRACE_OUT(("NM_GKNC_UNREG_CONFIRM notification received"));
  27. case NM_GKNC_UNREG_REQ: TRACE_OUT(("NM_GKNC_UNREG_REQ notification received"));
  28. SetGkLogonState(NM_GK_IDLE);
  29. break;
  30. default:
  31. WARNING_OUT(("Unknown notification recieved from GateKeeper"));
  32. break;
  33. }
  34. return hr;
  35. }