// TODO translate ui response to policy result
switch (response) {
case NResponseType::Deny:
- clientResponse = 0;
+ clientResponse = ASKUSER_DENY_ONCE;
break;
case NResponseType::DenyAlways:
- clientResponse = 1;
+ clientResponse = ASKUSER_DENY_FOREVER;
break;
case NResponseType::Allow:
- clientResponse = 2;
+ clientResponse = ASKUSER_ALLOW_ONCE;
break;
case NResponseType::AllowAlways:
- clientResponse = 3;
+ clientResponse = ASKUSER_ALLOW_FOREVER;
break;
case NResponseType::None:
- clientResponse = 0;
+ clientResponse = ASKUSER_NONE;
break;
case NResponseType::Error:
clientResponse = -255;
*/
#pragma once
-#define ASKUSER_DENY_ONCE 0
-#define ASKUSER_DENY_FOREVER 1
-#define ASKUSER_ALLOW_ONCE 2
-#define ASKUSER_ALLOW_FOREVER 3
+#define ASKUSER_NONE 0
+#define ASKUSER_DENY_ONCE 1
+#define ASKUSER_DENY_FOREVER 2
+#define ASKUSER_ALLOW_ONCE 3
+#define ASKUSER_ALLOW_FOREVER 4
#define ASKUSER_UNKNOWN_ERROR -255
namespace AskUser {