Anyone know how to set the lock screen in pascal? lazarus / 34-Windows ---------------------------------------------------------------------- vonskie · 2017-02-19 00:06 Windows.System.UserProfile.LockScreen.SetImageFileAsync(file) https://docs.microsoft.com/en-us/uwp/api/Windows.System.UserProfile.Lo ckScreen#Windows_System_UserProfile_LockScreen_SetImageFileAsync_Windo ws_Storage_IStorageFile_ ---------------------------------------------------------------------- jacmoe · 2017-02-19 04:03 Is this a question? ---------------------------------------------------------------------- Akira1364 · 2017-02-19 04:52 You just need to set up an external function prototype for it, and call it like you would any other WinAPI function. ---------------------------------------------------------------------- balazsszekely · 2017-02-19 06:01 QuoteYou just need to set up an external function prototype for it, and call it like you would any other WinAPI function. And make sure windows version is at least 8.1 otherwise it won't work. ---------------------------------------------------------------------- Akira1364 · 2017-02-19 17:46 Quote from: GetMem on February 19, 2017, 07:01:11 amQuoteYou just need to set up an external function prototype for it, and call it like you would any other WinAPI function. And make sure windows version is at least 8.1 otherwise it won't work. I was assuming that anyone wanting to use such a specific modern API call would certainly be using Win 8.1 or above.... In hindsight I should have erred on the side of caution, though. ---------------------------------------------------------------------- vonskie · 2017-02-20 22:16 Would you please show me how?