Windows API to set requirement of sign-in when you've been away from PC

Jeremy Zhu 21 Reputation points
2021-06-23T03:10:54.88+00:00

Hi,
I have a question about the following setting in Windows 10:
Start → Settings → Accounts → Sign-in options
108387-sign-in.png

I want to get/set this value from Win32 API or .net framework API in a desktop application.
Would you please give me some suggestions for it?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,757 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xiaopo Yang - MSFT 12,731 Reputation points Microsoft External Staff
    2021-06-23T05:19:01.48+00:00

    You can refer to the answer of Programmatically get Windows Setting | Account Setting | Require Sign In Question.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.