Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogonUser P/Invoke signature is not optimal #2

Closed
mattjohnsonpint opened this issue Oct 8, 2013 · 0 comments
Closed

LogonUser P/Invoke signature is not optimal #2

mattjohnsonpint opened this issue Oct 8, 2013 · 0 comments

Comments

@mattjohnsonpint
Copy link
Owner

It's possible to receive an exception of "SafeHandle cannot be null", due to the way the native LogonUser is defined.

We're currently using the same P/Invoke declaration as the MSDN sample code.

Per Hans Passant, this was incorrect and we should be returning an IntPtr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant