mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:02:59 +00:00

partially 0.4.11-dev-797-gc1195f5300
[DXDIAG][SYSTEMINFO] Include only one user-mode DMI library (#1054) partially 0.4.11-dev-796-gbaf2c0cc2d
[DMILIB][UDMIHELP] Allow functions to be linked with C++ code. The [SYSDM]- and [DRWTSN32]-parts are not needed to be ported back, because those did not have the dependency yet in 0.4.10, but only in 0.4.11 And the commit is also not needed to be ported back further than releases/0.4.10, because both: dmilib and udmihelp have only been introduced during 0.4.10-dev'ing. They do not exist in 0.4.9 yet. Also no such users therefore.
37 lines
645 B
C
37 lines
645 B
C
/*
|
|
* PROJECT: ReactOS User-mode DMI/SMBIOS Helper Functions
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: SMBIOS table parsing functions
|
|
* COPYRIGHT: Copyright 2018 Stanislav Motylkov
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <../dmilib/dmilib.h>
|
|
|
|
PVOID
|
|
LoadSMBiosData(
|
|
_Inout_updates_(ID_STRINGS_MAX) PCHAR * Strings);
|
|
|
|
VOID
|
|
TrimDmiStringW(
|
|
_Inout_ PWSTR pStr);
|
|
|
|
SIZE_T
|
|
GetSMBiosStringW(
|
|
_In_ PCSTR DmiString,
|
|
_Out_ PWSTR pBuf,
|
|
_In_ DWORD cchBuf,
|
|
_In_ BOOL bTrim);
|
|
|
|
VOID
|
|
FreeSMBiosData(
|
|
_In_ PVOID Buffer);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|