hi guys! Is it posible to lock my WIndows XP programmatically? If so, can you help me how..Thanks in advance!
Printable View
hi guys! Is it posible to lock my WIndows XP programmatically? If so, can you help me how..Thanks in advance!
You use the LockWorkstation API function.
thanks JM...
solution:
...im just curious, how can i get the list of available API Function from the user32.dll?Code:[DllImport("user32.dll")]
public static extern void LockWorkStation();
http://allapi.mentalis.org Download the API Viewer utility.
You may also want to search MSDN as they have everything including the 7000+ new Vista APIs.
You'll want to get the API Guide from that same link. The Guide basically reproduces the MSDN documentation but it adds a little more in many cases, plus it has a categorised index. The Viewer will then give you the appropriate signature in your chosen langauge. Just note that there are often multiple possibilities for function signatures and the one provided by the API Viewer will not always be the best for your circumstances.
I would suggest pinvoke but I have never had any sucess with it.
For the API viewer dont forget to set the language to C# ;)
Thanks a lot for the input guys!I'll try that...