LockWorkstation using Powershell and pInvoke

Notes Keyword PUBLIC is a must, or else wont be able to call the native function. Unlike variables, Add-Type cant be changed once created in a powershell session. References http://msdn.microsoft.com/en-us/library/windows/desktop/aa376875(v=vs.85).aspx http://www.pinvoke.net/default.aspx/user32/LockWorkStation.html