SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2003
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Operating System Name

    Is there any function calls exposed by silk to return the OS name.
    Note : Return should be Windows 2000 Server / Advanced Server / Professional / Server Pack 5 Version xxxxx

    Thanks.

    ------------------

  2. #2
    Member
    Join Date
    Sep 2001
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Operating System Name

    You can try:

    STRING sValue
    sValue = SYS_GetEnv ("OS")
    Print (sValue)

    However, the OS environment variable must be defined on your system do this from a dos prompt to check:

    echo %OS%

    Also, I don't think the environment variable will contain the version number. At lest it doesnt on my machine.

    - Joe

    ------------------

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Operating System Name

    Take a look at http://www.qaforums.com/Forum1/HTML/003628.html

    and/or search this forum for SYS_GetVersion() and SYS_GetName().

    You pretty much need to combine the two to get what you're looking for -- and use some add'l logic on top of that.

    If that still doesn't get you what you need, you will likely need to find a Registry entry that has the specifics (as I don't think it will tell you the Server/AdvServer/Workstation stuff ...).

    Good Luck!


    ------------------

  4. #4
    Member
    Join Date
    Jan 2003
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Operating System Name

    After a long and search for possible answers, Silk do not expose functions for determing correct OS name, Service packs and Version. I better off creating a c++ dll and expose a function to retrieve information, because OSVERSIONINFO structure contains all possible information about the system.

    you can get this structure by calling windows sdk call GetVersionEx()
    Thanks again.

    ------------------


    [This message has been edited by abalaji (edited 01-31-2003).]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:14 AM.

Copyright BetaSoft Inc.