What can I do with Silverlight? RRS feed

  • Question

  • Hi folks! 

    I would like to know if I can get the following  data using silverlight:

    • Username
    • total memory
    • free memory
    • kind of device(ie. Samsung, Dell, etc..)
    • model device(ie. Dell Latitude, etc..)
    • Computer name

    I have to use C#. 

    If the answer is not I also would like the reason why...

    Thank you very much in advance!

    Monday, June 19, 2017 4:05 PM

All replies

  • Hi caizo,

    From your description, you want to get more system information when you are using Silverlight.

    As far as I know, Silverlight is run in a certain range of permissions. So it is not possible to access all the information.

    So, you may try the following way.

    1. Make your Silverlight app enable option elevated trust. It will allow using COM.

    Silverlight 4 : COM Interop..Endless Opportunities:

    Silverlight 4 COM Automation – Taking photos with a DSLR using Windows Image Acquisition:

    2. Add some system library and import required functions that will allow you to get RAM etc. info

    How do you get total amount of RAM the computer has?

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Yohann Lu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 20, 2017 3:19 AM