Files
djhackersdev_bemanitools/src/main/util/os.h
T
icex2 7733912ae2 util: Add OS module to get version information of Windows
Data we always need when things go wrong, log it on boot.
2020-09-02 22:04:53 +02:00

25 lines
515 B
C

#pragma once
#include <stdint.h>
struct os_version {
char name[128];
uint32_t major;
uint32_t minor;
uint32_t build;
uint32_t platform_id;
char extension[256];
};
/**
* Get the (real) version information of the Windows OS.
*
* @param verison Pointer to version structure. This will be filled in.
* @return true on success, false on failure.
*/
bool os_version_get(struct os_version* version);
/**
* Log the version information of the current Windows OS.
*/
void os_version_log();