Commit Graph

2 Commits

Author SHA1 Message Date
Uri Lublin
8a28f878b9 vdagent: as_user: reorder initialization to make mingw-gcc happy
Fixes compiler warning that starts with:

In file included from vdagent/as_user.cpp:19:0:
vdagent/as_user.h: In constructor 'AsUser::AsUser(DWORD)':
vdagent/as_user.h:35:10: warning: 'AsUser::_started' will be initialized after [-Wreorder]
     bool _started;
2014-12-30 17:17:24 +02:00
Uri Lublin
750a8bab40 vdagent: add as_user to run tasks with user privileges
The class calls Impersonate upon begin(), and Revert
upon end() or destruction.

The user is the current user that is logged in.

 create mode 100644 vdagent/as_user.cpp
 create mode 100644 vdagent/as_user.h
2013-11-13 10:24:59 +02:00