question

IftikharHaidry-5205 avatar image
0 Votes"
IftikharHaidry-5205 asked RLWA32-6355 commented

Read non-key registry entries using c#.net console application

Hi,
I need to read registry entry entries that are not backed by key handles like "Minimum Password Length" using C#. I can see some methods to read the key based entries but can't find anything for non-key entries.
Regards.

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I don't understand what you mean by "registry entries that are not backed by key handles". Can you provide a link to Microsoft documentation that discusses such items?

0 Votes 0 ·
Castorix31 avatar image
0 Votes"
Castorix31 answered

"Minimum Password Length" is got with NetUserModalsGet
(usrmod0_min_passwd_len from USER_MODALS_INFO_0 structure)



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello Iftikhar,

registry entries are properties of keys and, as such, cannot be directly browsed, we need to take a slightly different approach when working with them.

From my knowledge, it isn't ideal to read registry entry entries that aren't by backed by key handles, it is better to go with the help of key handles

Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

For a further idea about your needs, do follow up the below link

https://docs.microsoft.com/en-us/troubleshoot/windows-server/performance/windows-registry-advanced-users

Hope this answers all your queries, if not please do repost back.
If an Answer is helpful, please click "Accept Answer" and upvote it : )

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.