Support > General Discussions

module NT

<< < (2/2)

Support:
Script_test,

The registry support functionality is provided by the NT (Windows only) extension module. Windows isn't my main focus extending Script BASIC in the future. If you have the skills to take ownership in resolving the NT issues, the project and I would greatly appreciate it. I hope to have Windows 10 installed in a VM soon for testing.

Script_test:
Unfortunately I do not have the skills to do this task.
To be realistic, that module is not a priority either.
Thank you very much for your work.

Support:
I think your problem is that you didn't use the right key name. (LoggedOnUsername)
It works fine for me on Win7 32 bit version in a VirtualBox.


--- Quote from: john ---I don't have Windows 10 to test this. Are you sure the registry key you are after is is really there? Can you access any other registry keys?
--- End quote ---


--- Code: Script BASIC ---Import nt.bas print nt::RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\SessionData\\1\\LoggedOnUsername"),"\n" 

C:\sbgcc\examples\test>scriba testreg.sb
.\John

C:\sbgcc\examples\test>


Update - I now have Windows 10 installed and once I get Script BASIC setup on it I will try the NT registry access test but I don't expect any issues at this point.


--- Code: Script BASIC ---Import nt.bas print nt::RegRead("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\SessionData\\1\\LoggedOnUser"),"\n" 

Microsoft Windows [Version 10.0.14393]

C:\sbgcc\examples\test>scriba testreg.sb
DESKTOP-FEE3LLO\John

C:\sbgcc\examples\test>



Script_test:
(O,o) I do not understand anything. I tried it again and it works.!

Sorry for the inconvenience, and thank you very much.
 ;D

Navigation

[0] Message Index

[*] Previous page

Go to full version