Skip to content

Why not handle when WTSQueryUserToken fails? #32

@imtrobin

Description

@imtrobin

Hi, I got the sample working fine under a service, but not when running as a normal app. So I understand there's a few more tokens as described here

https://devblogs.microsoft.com/oldnewthing/20190531-00/?p=102532
https://stackoverflow.com/questions/42717691/wtsqueryusertoken-returning-false

I'm just curious, why not set put this code in when WTSQueryUserToken fails?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions