XP versions ...
-
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 ...
-
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 ...
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