Go to the source code of this file.
◆ FreeSMBiosData()
◆ GetSMBiosStringW()
Definition at line 145 of file udmihelp.c.
150{
152
153 if (!DmiString)
154 {
155 if (cchBuf >= 1)
156 {
157 *pBuf = 0;
158 }
159 return 0;
160 }
161
163
164
166
167 if (bTrim)
168 {
170 }
171
173}
#define MultiByteToWideChar
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static SCRIPT_CACHE SCRIPT_ANALYSIS OPENTYPE_TAG OPENTYPE_TAG int TEXTRANGE_PROPERTIES int const WCHAR int cChars
VOID TrimDmiStringW(_Inout_ PWSTR pStr)
Referenced by AllSysInfo(), GetBIOSValue(), and GetSystemName().
◆ LoadSMBiosData()
Definition at line 30 of file udmihelp.c.
32{
35 DWORD dwType, dwCheck, dwBytes = 0;
36
38 {
41 }
42
43
44 if (pGetSystemFirmwareTable)
45 {
46 dwBytes = pGetSystemFirmwareTable(
'RSMB', 0,
NULL, 0);
47 if (dwBytes > 0)
48 {
51 {
53 }
54 dwCheck = pGetSystemFirmwareTable(
'RSMB', 0,
pBuffer, dwBytes);
55 if (dwCheck != dwBytes)
56 {
59 }
60 }
61 }
62 if (dwBytes == 0)
63 {
64
66 L"SYSTEM\\CurrentControlSet\\Services\\mssmbios\\Data",
68 {
70 }
71
75 &dwType,
78 {
81 }
82
85 {
88 }
89
93 &dwType,
96 {
100 }
101
103 }
106}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
static const WCHAR Strings[]
VOID ParseSMBiosTables(_In_reads_bytes_(TableSize) PVOID SMBiosTables, _In_ ULONG TableSize, _Inout_updates_(ID_STRINGS_MAX) PCHAR *Strings)
static VOID InitializeAPI()
#define HKEY_LOCAL_MACHINE
Referenced by AllSysInfo(), GetSystemName(), InitializeSystemPage(), and PrintSystemInfo().
◆ TrimDmiStringW()
Definition at line 110 of file udmihelp.c.
112{
115
116 if (!pStr)
117 return;
118
121 return;
122
123
125 {
127 }
128
130 {
133 }
134
135
137 {
140 }
141}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memmove(s1, s2, n)
_In_ ULONG _In_ ULONG _In_ ULONG Length
Referenced by GetSMBiosStringW(), InitializeSystemPage(), and wcsrep().