Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. XP versions ...

XP versions ...

Scheduled Pinned Locked Moved C / C++ / MFC
questionbeta-testingannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    smack_2k2
    wrote on last edited by
    #1

    Hi guys ... I have two questions for you: 1. How can i detect if SP1, or SP2 is installed on a machine(and if is the final release, not beta) and is there any way to know if the OS is in "Safe Mode" ? 2. I have to install some files from my app, but they are protected by Windows File Protection. Is there any way to install them? [w/o copying them from safe mode] Thanks ...

    T 1 Reply Last reply
    0
    • S smack_2k2

      Hi guys ... I have two questions for you: 1. How can i detect if SP1, or SP2 is installed on a machine(and if is the final release, not beta) and is there any way to know if the OS is in "Safe Mode" ? 2. I have to install some files from my app, but they are protected by Windows File Protection. Is there any way to install them? [w/o copying them from safe mode] Thanks ...

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      I this Can help you out OSVERSIONINFO The OSVERSIONINFO data structure contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and descriptive text about the operating system. This structure is used with the GetVersionEx function. typedef struct _OSVERSIONINFO{ DWORD dwOSVersionInfoSize; DWORD dwMajorVersion; DWORD dwMinorVersion; DWORD dwBuildNumber; DWORD dwPlatformId; TCHAR szCSDVersion[ 128 ]; } OSVERSIONINFO; AND lAST pARAMETER szCSDVersion Windows NT/2000/XP: Contains a null-terminated string, such as "Service Pack 3", that indicates the latest Service Pack installed on the system. If no Service Pack has been installed, the string is empty. Windows 95/98/Me: Contains a null-terminated string that indicates additional version information. For example, " C" indicates Windows 95 OSR2 and " A" indicates Windows 98 Second Edition ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups