Questions tagged [pure-managed]

2 questions
17
votes
1 answer

Lock Windows workstation programmatically in C#

I ran into this example for locking Windows workstation: using System.Runtime.InteropServices; ... [DllImport("user32.dll", SetLastError = true)] static extern bool LockWorkStation(); ... if (!LockWorkStation()) throw new…
Ron Klein
  • 9,178
  • 9
  • 55
  • 88
3
votes
4 answers

Is there a pure-managed DirectX wrapper?

I'm currently in need of a purely managed code DirectX wrapper for .NET. While SlimDX is great, its use of unmanaged code makes it impossible to perform proper dead code analysis on, for the purpose of merging it into your assemblies. With a pure…
Serafina Brocious
  • 30,433
  • 12
  • 89
  • 114