Jump to content


Photo

System Information Dll


  • Please log in to reply
99 replies to this topic

#1 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 29 August 2007 - 08:37 PM

Hi everyone. This is the Beta version of my SystemInfo.dll
It currently has around 40 functions working, but it will receive updates frequently.

Functions
  • get_drive_free_space
  • get_drive_total_space
  • get_drive_used_space
  • get_drive_percent_space
  • get_drivetype
  • get_default_drive
  • get_drive_name - NEW!
  • get_drive_filesystem - NEW!
  • set_drive_name - NEW!
  • get_ram_total
  • get_ram_used
  • get_ram_free
  • get_ram_percentage_use
  • get_virtual_total
  • get_virtual_used
  • get_virtual_free
  • get_page_total
  • get_page_used
  • get_page_free
  • get_country_eng
  • get_country_native
  • get_currency
  • get_language_eng
  • get_language_native
  • get_ac_status
  • get_battery_status
  • get_battery_percent
  • get_battery_life_total
  • get_battery_life_remaining
  • get_cpu_number
  • get_cpu_architecture
  • get_computer_name
  • get_keyboard_type
  • get_operating_system
  • get_system_directory
  • get_temp_directory
  • get_theme
  • get_username
  • get_windows_directory
Here is the link:

Download from Digital X Server:
Download SysInfo DLL
Download from Host-A.net (Mirror):
Download SysInfo DLL from Mirror

Thanks,
cdm319

Edited by cdm319, 28 August 2008 - 04:45 PM.

  • 4

Chris Matthews, Co-Leader of Digital X

#2 edmunn

edmunn

    GMC Member

  • New Member
  • 1298 posts

Posted 29 August 2007 - 08:42 PM

Can't complain, sweet DLL!
10/10.

Have a karma add too ;D

Edited by edmunn, 29 August 2007 - 08:46 PM.

  • 0

Posted Image
Please PM / Email your suggestions!

15.4" Apple MacBook Pro Late 08', 2.8 GHz Intel Core 2 Duo, 4GB RAM, SSD
Mac OS X Lion


:)

#3 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 29 August 2007 - 09:34 PM

thanks :P
  • 0

Chris Matthews, Co-Leader of Digital X

#4 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 08 September 2007 - 09:21 PM

Thanks. I am always ready for suggestions for more functions :P
  • 0

Chris Matthews, Co-Leader of Digital X

#5 Dark Sigma

Dark Sigma

    GMC Member

  • New Member
  • 48 posts

Posted 09 September 2007 - 12:15 AM

Yea great dll 10/10, good for checking if a game can run on a computer.
  • 0

#6 necrotic

necrotic

    GMC Member

  • New Member
  • 238 posts

Posted 09 September 2007 - 03:25 AM

Looks nice, may have to use it in some of my projects :medieval:
  • 0

#7 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 09 September 2007 - 05:33 PM

Glad everyone likes it, but does anyone have any suggestions for more features?
  • 0

Chris Matthews, Co-Leader of Digital X

#8 necrotic

necrotic

    GMC Member

  • New Member
  • 238 posts

Posted 17 September 2007 - 12:09 AM

Some function to get the local IP may be useful.... though I think GM has it built in somewhere....
  • 0

#9 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 17 September 2007 - 04:19 PM

mplay_ip_address();
is the GM function. Thats really why I didn't add it. Any other suggestions?

Edited by cdm319, 17 September 2007 - 04:20 PM.

  • 0

Chris Matthews, Co-Leader of Digital X

#10 gamestar-uk

gamestar-uk

    GMC Member

  • New Member
  • 27 posts

Posted 18 September 2007 - 06:43 PM

YAY! thanks!

i cant really think of anything else you cann add tbh, its all there, more or less
  • 0

#11 top hunter7

top hunter7

    GMC Member

  • New Member
  • 1043 posts

Posted 18 September 2007 - 08:33 PM

That was cool! It was funny cos i'm not on a laptop, and 'Unknown %' lol. Yea, i know, i'm easliy ammused. Great dll! :lol:
  • 0

Posted Image


#12 X3no

X3no

    GMC Member

  • New Member
  • 288 posts

Posted 19 September 2007 - 03:06 AM

looks nice.

You could add features to get upload/download speeds for online games to make sure the connection is fast enough.

Edited by X3no, 19 September 2007 - 03:07 AM.

  • 0

#13 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 24 September 2007 - 04:26 PM

Minor Update
Added a new function: get_default_drive
  • 0

Chris Matthews, Co-Leader of Digital X

#14 cephei

cephei

    GMC Member

  • GMC Member
  • 801 posts

Posted 24 September 2007 - 09:21 PM

If you really want to add something then have a look at Everest, it shows nearly everything...

http://lavalys.com/p...cts.php?lang=en
  • 0

#15 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 24 September 2007 - 09:41 PM

Thanks, but I was looking for more specific examples of functions wanted by people.
  • 0

Chris Matthews, Co-Leader of Digital X

#16 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 25 September 2007 - 11:20 AM

Some of those you can get with environment_get_variable:
environment_get_variable("COMPUTERNAME");
environment_get_variable("HOMEDRIVE");
environment_get_variable("PROCESSOR_ARCHITECTURE");
environment_get_variable("WINDIR");
environment_get_variable("TEMP");
environment_get_variable("USERNAME");

As for suggestions: Height of the taskbar and default browser would be nice.
  • 0

#17 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 25 September 2007 - 04:11 PM

celebraces
True, but still, I included them anyway. Ahah! A suggestion or two! Your wish is my command! Actually, it's not a command it's a function, because I'm using C++, but that's irrelevant :D

Edited by cdm319, 25 September 2007 - 04:14 PM.

  • 0

Chris Matthews, Co-Leader of Digital X

#18 tristiano77

tristiano77

    GMC Member

  • GMC Member
  • 349 posts
  • Version:Unknown

Posted 03 October 2007 - 05:08 AM

damn i need one more function to fill space :D

could you just add a pointless yes fancy looking one? lol

Edited by tristiano77, 03 October 2007 - 05:08 AM.

  • 0

#19 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 04 October 2007 - 07:14 PM

tristiano77
Sorry, but what do you mean?
  • 0

Chris Matthews, Co-Leader of Digital X

#20 Licht

Licht

    GMC Member

  • New Member
  • 23 posts

Posted 21 October 2007 - 11:55 PM

Thank you, very nice!
  • 0

#21 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 22 October 2007 - 05:40 PM

Licht
Thanks. Any suggestions for more functions?
  • 0

Chris Matthews, Co-Leader of Digital X

#22 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 30 November 2007 - 03:54 PM

Minor Update

Added 3 new functions:

get_drive_name
get_drive_filesystem
set_drive_name


Please note, that for drives such as floppies and CDs, a disk MUST be inserted for these functions to work.
  • 0

Chris Matthews, Co-Leader of Digital X

#23 top hunter7

top hunter7

    GMC Member

  • New Member
  • 1043 posts

Posted 03 December 2007 - 08:16 PM

Really nice DLL, laptop responces are pretty darn quick.

10/10

~TH7
  • 0

Posted Image


#24 Dark Sigma

Dark Sigma

    GMC Member

  • New Member
  • 48 posts

Posted 05 December 2007 - 06:44 AM

What about get DirectX version?
  • 0

#25 Malmsteen

Malmsteen

    box face

  • GMC Member
  • 538 posts

Posted 05 December 2007 - 09:08 AM

how about get_download_speed or something along those lines
  • 0

#26 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 05 December 2007 - 12:16 PM

Dark Sigma
Thanks, good idea. Shouldn't be too hard to implement.

Malmsteen
Again, thanks. Great idea. May be difficult to implement, but I'll give it a go.

EVERYONE
Please download again, there was an error which has now been fixed. Thank you.

Edited by cdm319, 05 December 2007 - 12:23 PM.

  • 0

Chris Matthews, Co-Leader of Digital X

#27 Dark Sigma

Dark Sigma

    GMC Member

  • New Member
  • 48 posts

Posted 09 December 2007 - 04:52 AM

This may be hard but a check to see if a sound card is supported would be awsome, Because if i try play my game on a computer without a sound card or a faulty sound card driver it just crashes. I want to Be able to check for sound support so i can disable ingame sfx so it can run with/without a sound card.
  • 0

#28 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 09 December 2007 - 03:33 PM

Dark Sigma
Actually, I had thought of that as an idea for the original release, but I could never find any information on how to do it. I'll look into it. Thanks for the suggestion.
  • 0

Chris Matthews, Co-Leader of Digital X

#29 Dark Sigma

Dark Sigma

    GMC Member

  • New Member
  • 48 posts

Posted 09 December 2007 - 11:23 PM

Well i was looking into it and i found somthing for Visual Basic.
Might be helpful, dunno.

If you are developing a game in VB or an application that plays sounds, you probably want to check that a sound card actually exists. There is an API function that does this, and returns the number of sound cards installed in the system. Therefore, a return value of zero means that no devices are present or that an error occurred. This is an example:

Private Declare Function waveOutGetNumDevs Lib "winmm.dll" () As Long

If waveOutGetNumDevs() >= 1 Then
    MsgBox "Your system supports a sound card."
Else
    MsgBox "Your system can't play sounds."
End If


  • 0

#30 desolatorXT

desolatorXT

    GMC Member

  • GMC Member
  • 355 posts
  • Version:GM:Studio

Posted 10 December 2007 - 03:36 PM

The dll is very useful, but i i'd propose:

1) Give more detailed information, for example, if i use get_computer_architecture function, i'd like to see something like this (for example my cpu):

Cpu Name: AMD Athlon 64 x2 6000+
Manufacturer: Advanced Microsystem Devices
Cores: 2
Speed: 3,00Ghz
BUS speed: 2Ghz
Architecture: x86 , 64bit
Socket: AM2
Cache Size: L1: 256Kb L2: 2Mb L3: N/A
Capabilities: MMX,SSE,SSE2,SSE3,3DNOW! ...


2) Add also information about the VGA, PCI installed devices, CD/DVD drives...

That's all :lol:
  • 0

- Random Retro Space Shooter: http://gmc.yoyogames...howtopic=605687

 

- Nameless TDS game: http://gmc.yoyogames...howtopic=453982 (Project is on hold)
 


#31 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 10 December 2007 - 06:58 PM

Dark Sigma
Thanks, I'll look into it.

desolatorXT
CPU Name is already in the DLL.
Number of cores is already in the DLL.

Thanks for your other suggestions, I'll look into them.
  • 0

Chris Matthews, Co-Leader of Digital X

#32 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 11 December 2007 - 10:52 PM

Very Useful Dll,
Get Video Memory would be another great function!!
It will allow me to make the game use different memorys wen possible,
and if youre ale to get Video Core clock speed and Video memory speed thatll will be useful to me :)

1) Get Video Memory
2) Video Core Clock speed
3) Video Memory Clock speed

P.S. I have 1193046 hours of battery life remaining i think ill make it karma :medieval:

Edited by Krisando, 11 December 2007 - 10:58 PM.

  • 0

Posted Image


#33 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 12 December 2007 - 05:48 PM

Krisando
Thanks for your reply, good ideas.
  • 0

Chris Matthews, Co-Leader of Digital X

#34 Krisando

Krisando

    GMC Member

  • New Member
  • 1351 posts

Posted 13 December 2007 - 03:13 AM

Thankyou will be looking forward to your progress!! Im 100% going to use this in my game.. Ull like :P
  • 0

Posted Image


#35 DtD

DtD

    Owner of DtD Software

  • New Member
  • 207 posts

Posted 14 December 2007 - 12:58 AM

Thanks! This is exactly what I needed for my project, plus it inspired some other features I could add to my application.

Can't see much room for expansion.
Unless there's some function in Windows to detect if you are running on a laptop (besides checking the AC outlet or Battery)

~DtD
  • 0

#36 C.Zorg

C.Zorg

    GMC Member

  • New Member
  • 381 posts

Posted 14 December 2007 - 01:30 AM

There's something strange with this DLL :) ...
Look at this screenshot

Posted Image

I'm pretty sure I got an x64 processor... Maby the DLL isn't fully compatible with AMD processors?...

Edited by C.Zorg, 15 December 2007 - 01:55 AM.

  • 0

#37 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 14 December 2007 - 06:32 PM

C.Zorg
Hey, just tested it on my AMD Dual Core upstairs and it works fine. Strange...
  • 0

Chris Matthews, Co-Leader of Digital X

#38 Kurama_Youko

Kurama_Youko

    GMC Member

  • New Member
  • 5 posts

Posted 21 December 2007 - 04:00 AM

Very useful, not only to verify requirements but also for optimization and better user interaction (I just remembered Psycho Mantis saying "do you like Castlevania, eh?" to solid snake when you got a Castlevania saved game in the memory card =P). Any other function that could identify more of the player's personality would be interesting, although I can't think of anything now...
  • 0

#39 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 21 December 2007 - 02:40 PM

Kurama Youko
Thanks for your reply. I am currently working on a number of new features. The next version of the DLL will hopefully be released after Christmas!
  • 0

Chris Matthews, Co-Leader of Digital X

#40 BusterBot858

BusterBot858

    Human Antivirus

  • GMC Member
  • 235 posts

Posted 28 January 2008 - 08:09 PM

Very nice DLL. Much better than using some of the environment_get_variable functions.
  • 0

#41 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 29 January 2008 - 05:42 PM

BusterBot858
Thank you.

Everyone
The next version is being worked on, look out for an update soon.
  • 0

Chris Matthews, Co-Leader of Digital X

#42 BusterBot858

BusterBot858

    Human Antivirus

  • GMC Member
  • 235 posts

Posted 31 January 2008 - 07:52 PM

Can you add some file functions? Things like:

file_date_created
file_date_modified
file_date_accessed
file_size

I could really use the second one.
  • 0

#43 necrotic

necrotic

    GMC Member

  • New Member
  • 238 posts

Posted 31 January 2008 - 09:55 PM

You can already find the filesize with GM, but I'm not sure about the others.
  • 0

#44 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 31 January 2008 - 10:21 PM

BusterBot858
Cool suggestions, I'll work on them.
  • 0

Chris Matthews, Co-Leader of Digital X

#45 SerMSYS

SerMSYS

    GMC Member

  • New Member
  • 180 posts

Posted 01 February 2008 - 12:35 AM

What about get DirectX version?

<{POST_SNAPBACK}>


There's a source code for that in DirectX SDK

btw, GREAT DLL!
  • 0
Battlefield 2/CoD 4/Fallout 3/GTA IV player | Quad-Core owner

#46 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 01 February 2008 - 10:43 PM

SerMSYS
Thanks, yeah I found the DX SDK helpful, still working on the next version though!
  • 0

Chris Matthews, Co-Leader of Digital X

#47 kake_fisk

kake_fisk

    GMC Member

  • GMC Member
  • 2392 posts
  • Version:GM7

Posted 15 February 2008 - 09:41 PM

hmm, maybe you could add hard disk temperature if thats possible.
  • 0

#48 cbrad24

cbrad24

    GMC Member

  • New Member
  • 96 posts

Posted 14 March 2008 - 11:58 AM

Thanks for the dll man... i might use it to help with lagg in future laggish games (eg cut off special effects). Also do any of u know any more of the envirnment_get_varibles??? they were pretty useful and (not dissing ur dll but is true) can save the hassle of dlls eg keeping em with the game.
  • 0

#49 Grix

Grix

    GMC Member

  • New Member
  • 78 posts

Posted 23 March 2008 - 11:24 PM

I love this dll, but I really need more hardware info, especially:

Graphic Card Type/Name
Graphic Card Memory (and other specs)
Monitor Width/Height
Monitor Type/Name
Monitor Refresh Rate (and other specs)
Processor Frequenzy
  • 0

#50 MrJackSparrow2

MrJackSparrow2

    GMC Member

  • GMC Member
  • 632 posts
  • Version:GM:Studio

Posted 18 May 2008 - 06:46 PM

I think there is an error with the RAM functions.
Click Here for Image
  • 0