Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to obtain system information to be used for support purpose?

Status
Not open for further replies.

pcwc66

IS-IT--Management
Dec 14, 2001
163
US
Hi,

For support purpose, it is necessary to know what OS and other system information such as platform, dlls version the application is running on. I know such information can be retrieved using some foxpro functions, API, and windows scripts. However, I only know how to obtain the information for the workstation but not if the application is located at a file server. For example, if I have a program with the following lines:

?OS()
?VERSION()
and run it in the local machine. I will get the OS and Foxpro version information of the local machine. However, if the program is located in a file server and I run the program from my local machine, I will still get the OS and Foxpro version information of the local machine instead of the file server. I will like to know how to get the OS and other system information of the file server in such scenario since some problems may be due to the environment of the file server instead of the local machine. Another scenario can be that running an application in my local machine and use ODBC to connect to a sql server on another machine. In this case, both machine's environment will have effect on the application. I hope this is clear enough.

Thank you for any help.
 
According to the value, then yes the computer is running those software. About the hex value, you can add/minus (any calculation) the same as decimal value. They are just in 16 base, that's all :)

Regards

-- AirCon --
 
Hi AirCon,

Thank you for the reply. I hope Microsoft can provide better information since MSDN only states that sv101_type can be one of the following values instead of it can be the sum of the following values. I wonder where I can find more info about API functions and constants.


 
pcwc66,

Ah..I get what you mean now. Yes, I agree.

For more info on API functions, as always MSDN is the best resources, who else? :) The example usually (mostly) in C/C++. But they also have for VB or VFP. For all VFP I think News2News.com is good

For the constants value you can get it from C++/VC++ include files. If you don't VC++ then you can get any free C++ compiler on the net. Usually they also has the include files.


-- AirCon --
 
Hi Rick,

I had installed Platform SDK February 2003. I don't see any additional information comparing to the information in msdn.microsoft.com. I searched the Platform SDK Documentation. I find the lmserver.h and it has this:

typedef struct _SERVER_INFO_101 {
DWORD sv101_platform_id;
LMSTR sv101_name;
DWORD sv101_version_major;
DWORD sv101_version_minor;
DWORD sv101_type;
LMSTR sv101_comment;
} SERVER_INFO_101, *PSERVER_INFO_101, *LPSERVER_INFO_101;

Am I suppose to look at other places in the SDK for more info?

Thank you for your help.
 
pcwc66,

All the constant that I posted earlier was from lmserver.h, try to search for "SV_TYPE" and you can also search from svrapi.h and lm.h

If you can't find it, maybe the header file from SDK is just part of C header files. If so, you should grab a C compiler :)

-- AirCon --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top