Heh, so much for claiming that i "followed the standard steps that Microsoft recommends for that kind of operation"...
You are correct, setting the proper LUID members fixed all these weird errors. Now the code runs just fine in all systems!
Thank you very much for your time!
Search found 2 matches
Search found 2 matches • Page 1 of 1
- Thu Jul 04, 2019 8:24 am
- Forum: Liberty BASIC Language
- Topic: SetSystemTimeAdjustment privileges
- Replies: 2
- Views: 663
So, i have the following demo code for fine adjustments of the local clock: struct TOKENPRIVILEGES, _ PrivilegeCount as ulong, _ Luid as long, _ Attributes as ulong hWndProc = GetCurrentProcess() if (hWndProc <> 0) then hWndToken = OpenProcessToken(hWndProc, _TOKEN_QUERY or _TOKEN_ADJUST_PRIVILEGES)...