Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo, mein Problem ist es heraus zu bekommen welches Betreibssystem gerade verwendet wird. So was wie eine kleine Funktion als Beispiel wäre toll.

Benutze MS Visual Studio6.0

:confused:

So muß man das abfragen:


	OSVERSIONINFOEX osvi;

	static PlatformID;

	osvi.dwOSVersionInfoSize=sizeof(osvi);

	GetVersionEx ((OSVERSIONINFO*)&osvi);

	switch (PlatformID=osvi.dwPlatformId&3)

		{

		case VER_PLATFORM_WIN32s: TRACE("Win31"); break;

		case VER_PLATFORM_WIN32_WINDOWS: TRACE("Win95/98");break;

		case VER_PLATFORM_WIN32_NT: TRACE("2000/NT");break;

		default: TRACE("Keine Ahnung");

		}

Oder vielleicht ist es je nach Version noch detaillierter, wenn man die Registry ausliest. Ich weiß allerdings nicht sicher, ob der Key wirklich bei jeder Version auch an der selben Stelle steht - ich gehe einfach mal davon aus. Ansonsten kann man mit Hilfe der Vorgängerfunktion ja den Pfad umlenken.


	HKEY hKey;

	unsigned long type,size=100;

	LPCTSTR path={"Software\\Microsoft\\Windows\\CurrentVersion"};

	unsigned char WinVersion[101];

	long check;

	check = RegOpenKeyEx(HKEY_LOCAL_MACHINE,path,0,KEY_QUERY_VALUE,&hKey);

	if (check==ERROR_SUCCESS)

		{

		RegQueryValueEx(hKey,"Productname", NULL,&type,WinVersion,&size);

		RegCloseKey(hKey);

		}

	else MessageBox("Key konnte nicht geöffnet werden!");

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.