2010-05-12 07:53:01 UTC
For DeleteTimerQueueTimer() function, MSDN says: "This function cannot be
called while the thread is using impersonation. The resulting behavior is
I have some questions about this statement:
- In which situation a thread is supposed to be using impersonation?
- After calling SetThreadToken() with an access token?
- I plan to use timer queue timers in a Windows service. Most probably,
timer queue timer creations and deletions will occur in thread pool threads.
Does a service which runs under an account which is different than the
currently logged-on user's account implicitly impersonate thread pool
threads or other threads created in it?
- Because most of the services run under special user accounts regardless of
the currently logged-on user , if implicit impersonation occurs than does
this mean that DeleteTimerQueueTimer () cannot be used in service
Thanks in advance.