Click here to Skip to main content
15,891,943 members
Home / Discussions / System Admin
   

System Admin

 
GeneralTCP/IP Printer Pin
Jamie Nordmeyer10-Jul-03 6:13
Jamie Nordmeyer10-Jul-03 6:13 
GeneralRe: TCP/IP Printer Pin
donreturns20-Jan-10 19:16
donreturns20-Jan-10 19:16 
GeneralWinXP: annoying MSN Messenger! Pin
BlackSmith10-Jul-03 1:39
BlackSmith10-Jul-03 1:39 
GeneralBatch files Pin
abhinarulkar9-Jul-03 22:45
abhinarulkar9-Jul-03 22:45 
GeneralRe: Batch files Pin
Garth J Lancaster13-Jul-03 15:59
professionalGarth J Lancaster13-Jul-03 15:59 
GeneralService pack Pin
Member 4242597-Jul-03 3:29
Member 4242597-Jul-03 3:29 
GeneralRe: Service pack Pin
abhinarulkar9-Jul-03 22:12
abhinarulkar9-Jul-03 22:12 
GeneralRe: Service pack Pin
Atlantys17-Jul-03 18:55
Atlantys17-Jul-03 18:55 
Something like this:

CString sOS;
OSVERSIONINFO OSversion = {0};
OSversion.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
::GetVersionEx(&OSversion);
switch (OSversion.dwPlatformId) {
    case VER_PLATFORM_WIN32s:
        sOS.Format(_T("Windows %d.%d"),OSversion.dwMajorVersion,OSversion.dwMinorVersion);
        break;
    case VER_PLATFORM_WIN32_WINDOWS:
        if (OSversion.dwMinorVersion == 0) {
            sOS=_T("Windows 95");
        } else {
            if (OSversion.dwMinorVersion == 10) {
                sOS=_T("Windows 98");
            } else {
                if (OSversion.dwMinorVersion == 90) {
                    sOS=_T("Windows ME");
                }
            }
        }
        break;
    case VER_PLATFORM_WIN32_NT:
        if (OSversion.dwMajorVersion == 5 && OSversion.dwMinorVersion == 0) {
            sOS.Format(_T("Windows 2000 with %s"),OSversion.szCSDVersion);
        } else {
            if (OSversion.dwMajorVersion == 5 && OSversion.dwMinorVersion == 1) {
                sOS.Format(_T("Windows XP %s"),OSversion.szCSDVersion);
            } else {
                if (OSversion.dwMajorVersion <= 4) {
                    sOS.Format(_T("Windows NT %d.%d with %s"),OSversion.dwMajorVersion, OSversion.dwMinorVersion,OSversion.szCSDVersion);
                } else { // for unknown windows/newest windows version
                    sOS.Format(_T(Windows NT Unknown %d.%d with %s)),OSversion.dwMajorVersion, OSversion.dwMinorVersion);
                }
            }
        }



I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]

GeneralProgrammatically using WMI to remotely run apps which access locally mapped drives relative to the remote machine. Pin
NullStream4-Jul-03 13:18
NullStream4-Jul-03 13:18 
GeneralRe: Programmatically using WMI to remotely run apps which access locally mapped drives relative to the remote machine. Pin
Venet5-Jul-03 7:22
Venet5-Jul-03 7:22 
GeneralWindows' Handle Pin
ladder3-Jul-03 23:23
ladder3-Jul-03 23:23 
GeneralRe: Windows' Handle Pin
Michael Dunn4-Jul-03 5:36
sitebuilderMichael Dunn4-Jul-03 5:36 
GeneralRe: Windows' Handle Pin
ladder5-Jul-03 6:00
ladder5-Jul-03 6:00 
GeneralRe: Windows' Handle Pin
Michael Dunn5-Jul-03 6:07
sitebuilderMichael Dunn5-Jul-03 6:07 
GeneralRe: Windows' Handle Pin
Alexander M.,22-Jul-03 9:40
Alexander M.,22-Jul-03 9:40 
GeneralEnvironment Vars - using Pin
john john mackey1-Jul-03 10:04
john john mackey1-Jul-03 10:04 
GeneralRe: Environment Vars - using Pin
John M. Drescher1-Jul-03 10:18
John M. Drescher1-Jul-03 10:18 
GeneralRe: Environment Vars - using Pin
jlb1-Jul-03 13:35
jlb1-Jul-03 13:35 
GeneralRe: Environment Vars - using Pin
john john mackey2-Jul-03 5:32
john john mackey2-Jul-03 5:32 
GeneralRe: Environment Vars - using Pin
Michael Dunn4-Jul-03 7:00
sitebuilderMichael Dunn4-Jul-03 7:00 
GeneralRe: Environment Vars - using Pin
john john mackey4-Jul-03 9:17
john john mackey4-Jul-03 9:17 
GeneralRe: Environment Vars - using Pin
Atlantys11-Jul-03 20:05
Atlantys11-Jul-03 20:05 
GeneralDNS Insert/Delete/Modify Pin
vss-130-Jun-03 13:55
vss-130-Jun-03 13:55 
GeneralIIS ASP.NET Rant/Question Pin
Matt Newman29-Jun-03 18:45
Matt Newman29-Jun-03 18:45 
GeneralRe: IIS ASP.NET Rant/Question Pin
Richard Deeming1-Jul-03 4:57
mveRichard Deeming1-Jul-03 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.