38 return (chr <=
L' ' || chr ==
L'.' || chr ==
L',');
51 if (*
c >=
'0' && *
c <=
'9')
185 PWSTR pwsStr, pwsFind, pwsReplace, pwsBuf =
NULL;
190 if (!pwStr || !pwFind || !pwReplace ||
197 lenStr =
wcslen(pwStr) + 2 + 1;
198 lenFind =
wcslen(pwFind) + 2 + 1;
199 lenReplace =
wcslen(pwReplace) + 2 + 1;
223 if (!bReplaceFirstWord && pwsBuf - pwsStr < 2)
240 memmove(pwsBuf, pwsReplace, (lenReplace - 1) *
sizeof(
WCHAR));
242 memmove(pwsBuf + lenReplace - (
wcslen(pwReplace) > 0 ? 1 : 2), pwsBuf + lenFind - 1, (lenStr - lenFind - (pwsBuf - pwsStr) + 1) *
sizeof(
WCHAR));
270 {
L"Type2 - Board Manufacturer",
TRUE,
TRUE },
271 {
L"Type2 - Board Vendor Name1",
TRUE,
TRUE },
272 {
L"BASE_BOARD_MANUFACTURER",
TRUE,
TRUE },
297 {
L"Please change product name",
TRUE,
TRUE },
309 {
L"Base Board Product Name",
TRUE,
TRUE },
311 {
L"Type2 - Board Product Name1",
TRUE,
TRUE },
312 {
L"Type2 - Board Product Name",
TRUE,
TRUE },
313 {
L"Type2 - Board Version",
TRUE,
TRUE },
340 {
L"Aquarius Pro, Std, Elt Series",
TRUE,
FALSE },
364 bMatch = !
wcscmp(ven, Vendors[
i].pwName);
368 bMatch = !
_wcsicmp(ven, Vendors[
i].pwName);
409 static const PCSTR KnownFamilies[] =
416 static const PCWSTR Aliases[] =
454 if (*
c >= 0x20 && *
c <= 0x7e)
481 c =
strstr(DmiString,
"(\xFF\xFF");
494 {
L"ASUSTeK",
L"ASUS" },
495 {
L"First International Computer",
L"FIC" },
496 {
L"Hewlett-Packard",
L"HP" },
497 {
L"MICRO-STAR",
L"MSI" },
498 {
L"SGI.COM",
L"SGI" },
499 {
L"Silicon Graphics International",
L"SGI" },
500 {
L"Intel(R) Client Systems",
L"Intel" },
501 {
L"InformationComputerSystems",
L"ICS" },
502 {
L"Bernecker + Rainer Industrie-Elektronik",
L"Bernecker & Rainer" },
503 {
L"CHUWI INNOVATION AND TECHNOLOGY",
L"CHUWI" },
504 {
L"CHUWI INNOVATION LIMITED",
L"CHUWI" },
505 {
L"CHUWI INNOVATION LIMITED",
L"CHUWI" },
506 {
L"http://www.abit.com.tw/",
L"ABIT" },
507 {
L"http:\\\\www.abit.com.tw",
L"ABIT" },
508 {
L"www.abit.com.tw",
L"ABIT" },
509 {
L"CASPER BILGISAYAR SISTEMLERI A.S",
L"Casper" },
510 {
L"Colorful Technology And Development",
L"Colorful" },
511 {
L"Colorful Yu Gong Technology And Development",
L"Colorful Yu Gong" },
512 {
L"HaierComputer",
L"Haier" },
513 {
L"Haier Information Technology (Shen Zhen)",
L"Haier" },
514 {
L"HASEECOMPUTERS",
L"Hasee" },
515 {
L"HELIOS BUSINESS COMPUTER",
L"HELIOS" },
516 {
L"Shanghai Zongzhi InfoTech",
L"Zongzhi" },
517 {
L"TSING HUA TONGFANG CO.,LTD",
L"TSINGHUA TONGFANG" },
518 {
L"Yeston Digital Technology Co.,LTD",
L"Yeston" },
522 {
L"Corporation",
FALSE },
523 {
L"Communication",
FALSE },
530 {
L"Microsystems",
FALSE },
531 {
L"Infosystems",
FALSE },
533 {
L"Electronics",
FALSE },
538 {
L"International",
FALSE },
539 {
L"Interantonal",
FALSE },
540 {
L"INTERANTIONAL",
FALSE },
543 {
L"Information",
FALSE },
544 {
L"Informatica",
FALSE },
547 {
L"Tecohnology",
FALSE },
548 {
L"Technologies",
FALSE },
579 BOOL bTrimProduct, bTrimFamily, bGenericName, bRemove;
602 bTrimProduct =
FALSE;
623 bRemoveVen = bRemove;
649 if (bGenericVen && !bRemoveVen)
739 wcsrep(ven, RedundantWords[
i].pwStr,
L"", RedundantWords[
i].bReplaceFirstWord);
745 wcsrep(ven, pBuf,
L"", RedundantWords[
i].bReplaceFirstWord);
775 strcmp(tmpstr,
"LENOVO") &&
882 return (
wcslen(pBuf) > 0);
PWSTR LongNames[LONG_NAMES_COUNT]
int strcmp(const char *String1, const char *String2)
char * strstr(char *String1, char *String2)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
static BOOL TrimNonPrintableProd(PCHAR DmiString)
static VOID wcsrep(_Inout_ PWSTR pwStr, _In_ PCWSTR pwFind, _In_ PCWSTR pwReplace, _In_ BOOL bReplaceFirstWord)
static wchar_t * wcsistr(const wchar_t *s, const wchar_t *b)
static BOOL IsPunctuation(_In_ WCHAR chr)
static void AppendSystemFamily(PWSTR pBuf, SIZE_T cchBuf, PCHAR *DmiStrings, PWSTR dev)
static BOOL TrimNonPrintable(PCHAR DmiString)
static wchar_t * wcsistr_plus(const wchar_t *s, wchar_t *b)
BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf)
static VOID TrimPunctuation(_Inout_ PWSTR pStr)
static BOOL IsDigitStrA(PCHAR DmiString)
static BOOL IsGenericSystemName(PCWSTR ven, PCWSTR dev, BOOL *bRemove)
#define HeapFree(x, y, z)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLboolean GLboolean GLboolean b
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
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 GLint GLint j
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
#define memmove(s1, s2, n)
_In_ ULONG _In_ ULONG _In_ ULONG Length
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
_CRTIMP char *__cdecl _strupr(_Inout_z_ char *_String)
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
STRSAFEAPI StringCchCatW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCchCopyA(STRSAFE_LPSTR pszDest, size_t cchDest, STRSAFE_LPCSTR pszSrc)
static BOOL bCaseSensitive
SIZE_T GetSMBiosStringW(_In_ PCSTR DmiString, _Out_ PWSTR pBuf, _In_ DWORD cchBuf, _In_ BOOL bTrim)
PVOID LoadSMBiosData(_Inout_updates_(ID_STRINGS_MAX) PCHAR *Strings)
VOID FreeSMBiosData(_In_ PVOID Buffer)
VOID TrimDmiStringW(_Inout_ PWSTR pStr)