Thanks once again, wasn't aware of this functionality, very helpful.
@DanielPineault
4 ай бұрын
Happy to help!
@rtatt1
4 ай бұрын
Hi Daniel and thanks for another interesting video. One question though... At around @1:00, you show the MS documentation for this API call which clearly states: "Because the function executes asynchronously, a nonzero return value indicates that the operation has been initiated. It does not indicate whether the workstation has been successfully locked." But your code at around @1:30 explicitly assumes that the PC has been locked if the return value is non-zero. Have you ever come across an occasion where the asynchronous function has been succesfully initiated (thus returning a non-zero value) but the PC has NOT been locked? I assume you haven't as I know you state at around @2:30 that you haven't come across a situation where it hadn't locked, but you clarified that by mentioning the case where it might have returned zero, which is a different thing entirely.
@DanielPineault
4 ай бұрын
Great catch on your part! You're interpretation is correct, I've never once had the call fail or the PC not get locked 🔒.
Пікірлер: 6