Can you access the windows registry from Adobe Air?

前端 未结 8 1421
萌比男神i
萌比男神i 2021-02-09 00:55

(y/N)

Edit: Read-only access is fine.

8条回答
  •  醉梦人生
    2021-02-09 01:07

    Are you trying to determine if the user is an administrator or not?

    If so you could grad the username by with "File.userDirectory.name".

    And I think to figure out if the user is an administrator you could probably try to access a file that requires administrator privileges (maybe try writing a file to Windows/System32). If the file access fails you could probably assume that the user is under a Limited account.

提交回复
热议问题