Hi, I am creating an app which requires me to check system lock/unlock state . I cannot use system events as i need to know the current state.I came across https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtsquerysessioninformationw which when used with WTSSessionInfoEx(25) helps to get session state using sessionFlags.
Given that it's not implemented , i tried my hand to implement SessionInfoEx ; But unfortunately i am not able to do it as i'm quiet new to golang paradigm.
Any help on this with code will be of greater value to me.Thanks in Advance
Hi, I am creating an app which requires me to check system lock/unlock state . I cannot use system events as i need to know the current state.I came across https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtsquerysessioninformationw which when used with WTSSessionInfoEx(25) helps to get session state using sessionFlags.
Given that it's not implemented , i tried my hand to implement
SessionInfoEx; But unfortunately i am not able to do it as i'm quiet new to golang paradigm.Any help on this with code will be of greater value to me.Thanks in Advance