Home
last modified time | relevance | path

Searched refs:szBuff (Results 1 – 24 of 24) sorted by relevance

/reactos/modules/rostests/apitests/shell32/
H A DInt64ToString.cpp68 WCHAR szBuff[64]; in DoTestEntry() local
69 lstrcpynW(szBuff, L"#####", _countof(szBuff)); in DoTestEntry()
85 lstrcpynW(szBuff, L"#####", _countof(szBuff)); in DoTestEntry()
114 WCHAR szBuff[64]; in Test_Int64ToString() local
117 ret = Int64ToString(0, szBuff, _countof(szBuff), FALSE, NULL, 0); in Test_Int64ToString()
121 ret = Int64ToString(1, szBuff, _countof(szBuff), FALSE, NULL, 0); in Test_Int64ToString()
125 ret = Int64ToString(-9999, szBuff, _countof(szBuff), FALSE, NULL, 0); in Test_Int64ToString()
137 ret = Int64ToString(10000, szBuff, _countof(szBuff), FALSE, NULL, 0); in Test_Int64ToString()
149 WCHAR szBuff[64]; in Test_LargeIntegerToString() local
153 ret = LargeIntegerToString(&LInt, szBuff, _countof(szBuff), FALSE, NULL, 0); in Test_LargeIntegerToString()
[all …]
/reactos/modules/rostests/winetests/shlwapi/
H A Dclsid.c105 char szBuff[256]; in test_ClassIDs() local
117 dwLen = pSHLWAPI_23(*guids, szBuff, 256); in test_ClassIDs()
121 bRet = pSHLWAPI_269(szBuff, &guid); in test_ClassIDs()
136 "Endianness Broken, got '%s'\n", szBuff); in test_ClassIDs()
139 szBuff[0] = ':'; in test_ClassIDs()
140 dwLen = pSHLWAPI_23(&IID_Endianness, szBuff, 0); in test_ClassIDs()
144 szBuff[0] = ':'; in test_ClassIDs()
145 dwLen = pSHLWAPI_23(&IID_Endianness, szBuff, 38); in test_ClassIDs()
149 szBuff[0] = ':'; in test_ClassIDs()
155 strcpy(szBuff, "{xxx-"); in test_ClassIDs()
[all …]
H A Dstring.c409 WCHAR szBuff[256]; in test_StrCpyW() local
473 WCHAR szBuff[256]; in test_StrToIntW() local
479 MultiByteToWideChar(CP_ACP, 0, result->string, -1, szBuff, ARRAY_SIZE(szBuff)); in test_StrToIntW()
521 WCHAR szBuff[256]; in test_StrToIntExW() local
529 MultiByteToWideChar(CP_ACP, 0, result->string, -1, szBuff, ARRAY_SIZE(szBuff)); in test_StrToIntExW()
543 MultiByteToWideChar(CP_ACP, 0, result->string, -1, szBuff, ARRAY_SIZE(szBuff)); in test_StrToIntExW()
594 WCHAR szBuff[256]; in test_StrToInt64ExW() local
661 char szBuff[256]; in test_StrFormatByteSize64A() local
685 char szBuff[256]; in test_StrFormatKBSizeW() local
707 char szBuff[256]; in test_StrFormatKBSizeA() local
[all …]
/reactos/modules/rostests/apitests/win32nt/ntuser/
H A DNtUserGetKeyboardLayoutName.c17 WCHAR szBuff[MAX_PATH]; in START_TEST() local
25 RtlZeroMemory(szBuff, sizeof(szBuff)); in START_TEST()
28 ret = fn(szBuff); in START_TEST()
38 ok(szBuff[0] == 0, "szBuff[0] was %d\n", szBuff[0]); in START_TEST()
41 RtlZeroMemory(szBuff, sizeof(szBuff)); in START_TEST()
42 ustr.Buffer = szBuff; in START_TEST()
44 ustr.MaximumLength = RTL_NUMBER_OF(szBuff) * sizeof(WCHAR); in START_TEST()
58 ok(szBuff[0] != 0, "szBuff[0] was %d\n", szBuff[0]); in START_TEST()
59 trace("szBuff: %S\n", szBuff); in START_TEST()
/reactos/modules/rostests/apitests/shlwapi/
H A DSHLoadRegUIString.c20 CHAR szBuff[MAX_PATH]; in test_SHLoadRegUIStringA() local
22 hr = pSHLoadRegUIStringA(hKey, "TestValue1", szBuff, _countof(szBuff)); in test_SHLoadRegUIStringA()
24 ok_str(szBuff, "%WINDIR%\\TEST"); in test_SHLoadRegUIStringA()
26 hr = pSHLoadRegUIStringA(hKey, "TestValue2", szBuff, _countof(szBuff)); in test_SHLoadRegUIStringA()
28 ok_str(szBuff, "Test string one."); in test_SHLoadRegUIStringA()
34 WCHAR szBuff[MAX_PATH]; in test_SHLoadRegUIStringW() local
36 hr = pSHLoadRegUIStringW(hKey, L"TestValue1", szBuff, _countof(szBuff)); in test_SHLoadRegUIStringW()
38 ok_wstr(szBuff, L"%WINDIR%\\TEST"); in test_SHLoadRegUIStringW()
40 hr = pSHLoadRegUIStringW(hKey, L"TestValue2", szBuff, _countof(szBuff)); in test_SHLoadRegUIStringW()
42 ok_wstr(szBuff, L"Test string one."); in test_SHLoadRegUIStringW()
/reactos/sdk/lib/atl/
H A Datltrace.h156 char szBuff[1024], szFile[MAX_PATH]; in AtlTraceV() local
167 StringCchPrintfA(szBuff, _countof(szBuff), (bUnicode ? "%ls - " : "%hs - "), cat.m_name); in AtlTraceV()
168 StringCchLengthA(szBuff, _countof(szBuff), &cch); in AtlTraceV()
170 StringCchVPrintfA(&szBuff[cch], _countof(szBuff) - cch, format, va); in AtlTraceV()
174 cch = _snprintf(szBuff, _countof(szBuff), (bUnicode ? "%ls - " : "%hs - "), cat.m_name); in AtlTraceV()
175 _vsnprintf(&szBuff[cch], _countof(szBuff) - cch, format, va); in AtlTraceV()
201 StringCchPrintfW(szBuff, _countof(szBuff), (bUnicode ? L"%ls - " : L"%hs - "), cat.m_name); in AtlTraceV()
202 StringCchLengthW(szBuff, _countof(szBuff), &cch); in AtlTraceV()
204 StringCchVPrintfW(&szBuff[cch], _countof(szBuff) - cch, format, va); in AtlTraceV()
208 cch = _snwprintf(szBuff, _countof(szBuff), (bUnicode ? L"%ls - " : L"%hs - "), cat.m_name); in AtlTraceV()
[all …]
/reactos/dll/win32/shlwapi/
H A Dthread.c493 WCHAR szBuff[MAX_PATH]; in SHGlobalCounterCreateNamedW() local
494 const int iBuffLen = sizeof(szBuff)/sizeof(WCHAR); in SHGlobalCounterCreateNamedW()
502 memcpy(szBuff, szPrefix, (iPrefixLen + 1) * sizeof(WCHAR)); in SHGlobalCounterCreateNamedW()
504 StrCpyNW(szBuff + iPrefixLen, lpszName, iBuffLen - iPrefixLen); in SHGlobalCounterCreateNamedW()
509 if (!(hRet = CreateSemaphoreW(pSecAttr , iInitial, MAXLONG, szBuff))) in SHGlobalCounterCreateNamedW()
510 hRet = OpenSemaphoreW(SYNCHRONIZE|SEMAPHORE_MODIFY_STATE, 0, szBuff); in SHGlobalCounterCreateNamedW()
528 WCHAR szBuff[MAX_PATH]; in SHGlobalCounterCreateNamedA() local
533 MultiByteToWideChar(CP_ACP, 0, lpszName, -1, szBuff, MAX_PATH); in SHGlobalCounterCreateNamedA()
534 return SHGlobalCounterCreateNamedW(lpszName ? szBuff : NULL, iInitial); in SHGlobalCounterCreateNamedA()
H A Dordinal.c5736 StrCpyNW(szBuff, pszPropName, _countof(szBuff)); in SHPropertyBag_ReadPOINTL()
5738 cch = lstrlenW(szBuff); in SHPropertyBag_ReadPOINTL()
5746 pch = &szBuff[cch]; in SHPropertyBag_ReadPOINTL()
5803 StrCpyNW(szBuff, pszPropName, _countof(szBuff)); in SHPropertyBag_ReadRECTL()
5813 pch = &szBuff[cch]; in SHPropertyBag_ReadRECTL()
6055 WCHAR szBuff[64]; in SHPropertyBag_WriteGUID() local
6065 SHStringFromGUIDW(pguid, szBuff, _countof(szBuff)); in SHPropertyBag_WriteGUID()
6110 StrCpyNW(szBuff, pszPropName, _countof(szBuff)); in SHPropertyBag_WritePOINTL()
6120 pch = &szBuff[cch]; in SHPropertyBag_WritePOINTL()
6179 StrCpyNW(szBuff, pszPropName, _countof(szBuff)); in SHPropertyBag_WriteRECTL()
[all …]
H A Dpropbag.cpp974 WCHAR szBuff[MAX_PATH]; in SHCreatePropertyBagOnProfileSection() local
985 StrCpyNW(szBuff, lpFileName, _countof(szBuff)); in SHCreatePropertyBagOnProfileSection()
986 if (PathRemoveFileSpecW(szBuff)) in SHCreatePropertyBagOnProfileSection()
987 PathMakeSystemFolderW(szBuff); in SHCreatePropertyBagOnProfileSection()
1546 WCHAR szBuff[64]; in _CreateBag() local
1571 hr = _GetRegKey(pidl, pszPath, dwVspbFlags, dwMode, hKey, szBuff, _countof(szBuff)); in _CreateBag()
1598 WCHAR szBuff[64]; in _FindNearestInheritBag() local
1601 StringCchPrintfW(szBuff, _countof(szBuff), L"Bags\\%d\\%s\\Inherit", anSlots[iSlot], in _FindNearestInheritBag()
1842 WCHAR szBuff[MAX_PATH]; in SHIsRemovableDrive() local
1855 hr = StrRetToBufW(&strret, ppidlLast, szBuff, _countof(szBuff)); in SHIsRemovableDrive()
[all …]
H A Dstring.c2084 WCHAR szBuff[64], *szOut = szBuff + 32; in SHLWAPI_WriteTimeClass() local
2089 LoadStringW(shlwapi_hInstance, uClassStringId, szBuff + 32, 32); in SHLWAPI_WriteTimeClass()
2134 WCHAR szBuff[128]; in StrFromTimeIntervalA() local
2135 StrFromTimeIntervalW(szBuff, sizeof(szBuff)/sizeof(WCHAR), dwMS, iDigits); in StrFromTimeIntervalA()
2136 WideCharToMultiByte(CP_ACP,0,szBuff,-1,lpszStr,cchMax,0,0); in StrFromTimeIntervalA()
2435 WCHAR szBuff[40], wszFormat[40]; in StrFormatByteSizeW() local
2478 if (!FormatDouble(dBytes, bfFormats[i].nDecimals, szBuff, ARRAYSIZE(szBuff))) in StrFormatByteSizeW()
2481 snprintfW(lpszDest, cchMax, wszFormat, szBuff); in StrFormatByteSizeW()
2870 WCHAR szBuff[MAX_PATH]; in DoesStringRoundTripW() local
2873 SHAnsiToUnicode(lpDst, szBuff, MAX_PATH); in DoesStringRoundTripW()
[all …]
H A Dreg.c1156 char szBuff[MAX_PATH]; in SHRegSetPathA() local
1161 lstrcpyA(szBuff, lpszPath); in SHRegSetPathA()
1166 lstrlenA(szBuff)); in SHRegSetPathA()
1177 WCHAR szBuff[MAX_PATH]; in SHRegSetPathW() local
1182 lstrcpyW(szBuff, lpszPath); in SHRegSetPathW()
1187 lstrlenW(szBuff)); in SHRegSetPathW()
2380 WCHAR szBuff[32]; in SHRegGetIntW() local
2381 DWORD dwSize = sizeof(szBuff); in SHRegGetIntW()
2382 szBuff[0] = '\0'; in SHRegGetIntW()
2385 if(*szBuff >= '0' && *szBuff <= '9') in SHRegGetIntW()
[all …]
H A Dpath.c2062 char szBuff[MAX_PATH]; in PathIsContentTypeA() local
2068 REG_NONE, szBuff, &dwDummy) && in PathIsContentTypeA()
2069 !strcasecmp(lpszContentType, szBuff)) in PathIsContentTypeA()
2086 WCHAR szBuff[MAX_PATH]; in PathIsContentTypeW() local
2092 REG_NONE, szBuff, &dwDummy) && in PathIsContentTypeW()
2093 !strcmpiW(lpszContentType, szBuff)) in PathIsContentTypeW()
2427 WCHAR szBuff[MAX_PATH]; in PathCanonicalizeA() local
2434 bRet = PathCanonicalizeW(szBuff, szPath); in PathCanonicalizeA()
2435 WideCharToMultiByte(CP_ACP,0,szBuff,-1,lpszBuf,MAX_PATH,0,0); in PathCanonicalizeA()
H A Durl.c2607 WCHAR szBuff[MAX_PATH]; in MLBuildResURLW() local
2610 len = GetModuleFileNameW(hMod, szBuff, sizeof(szBuff)/sizeof(WCHAR)); in MLBuildResURLW()
2611 if (len && len < sizeof(szBuff)/sizeof(WCHAR)) in MLBuildResURLW()
2613 DWORD dwPathLen = strlenW(szBuff) + 1; in MLBuildResURLW()
2620 memcpy(lpszDest + szResLen, szBuff, dwPathLen * sizeof(WCHAR)); in MLBuildResURLW()
/reactos/dll/ime/msctfime/
H A Dprofile.cpp101 WCHAR szBuff[12]; in GetCodePageA() local
102 INT cch = ::GetLocaleInfoW(LangID, LOCALE_IDEFAULTANSICODEPAGE, szBuff, _countof(szBuff)); in GetCodePageA()
105 szBuff[cch] = 0; in GetCodePageA()
106 m_nCodePage = *puCodePage = wcstoul(szBuff, NULL, 10); in GetCodePageA()
/reactos/dll/win32/shell32/
H A Dutils.cpp781 WCHAR szBuff[40]; in Int64ToStr() local
800 if (bMinus && ich < _countof(szBuff)) in Int64ToStr()
801 szBuff[ich++] = '-'; in Int64ToStr()
807 pszValue[ichValue] = szBuff[ich]; in Int64ToStr()
830 WCHAR szBuff[20]; in Int64GetNumFormat() local
839 GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IDIGITS, szBuff, _countof(szBuff)); in Int64GetNumFormat()
840 pDest->NumDigits = StrToIntW(szBuff); in Int64GetNumFormat()
845 GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_ILZERO, szBuff, _countof(szBuff)); in Int64GetNumFormat()
851 GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_SGROUPING, szBuff, _countof(szBuff)); in Int64GetNumFormat()
852 pDest->Grouping = StrToIntW(szBuff); in Int64GetNumFormat()
[all …]
H A DCCopyMoveToMenu.cpp284 WCHAR szBuff[128]; in QueryContextMenuImpl() local
286 mii.dwTypeData = szBuff; in QueryContextMenuImpl()
287 mii.cch = _countof(szBuff); in QueryContextMenuImpl()
290 (IsCopyOp || !(mii.fType == MFT_STRING && !wcscmp(szBuff, strCopyTo.GetBuffer())))) in QueryContextMenuImpl()
/reactos/dll/win32/kernel32/winnls/string/
H A Dlcformat.c144 WCHAR szBuff[80]; in NLS_GetLocaleNumber() local
147 szBuff[0] = '\0'; in NLS_GetLocaleNumber()
148 GetLocaleInfoW(lcid, dwFlags, szBuff, ARRAY_SIZE(szBuff)); in NLS_GetLocaleNumber()
150 if (szBuff[0] && szBuff[1] == ';' && szBuff[2] != '0') in NLS_GetLocaleNumber()
151 dwVal = (szBuff[0] - '0') * 10 + (szBuff[2] - '0'); in NLS_GetLocaleNumber()
169 WCHAR szBuff[80], *str; in NLS_GetLocaleString() local
172 szBuff[0] = '\0'; in NLS_GetLocaleString()
173 GetLocaleInfoW(lcid, dwFlags, szBuff, ARRAY_SIZE(szBuff)); in NLS_GetLocaleString()
174 dwLen = strlenW(szBuff) + 1; in NLS_GetLocaleString()
1216 WCHAR szBuff[128], *szOut = szBuff + ARRAY_SIZE(szBuff) - 1; in GetNumberFormatW() local
[all …]
H A Dlocale.c1964 WCHAR szBuff[2]; in SetLocaleInfoW() local
1972 szBuff[0] = '1'; /* D-M-Y */ in SetLocaleInfoW()
1977 szBuff[0] = '2'; /* Y-M-D */ in SetLocaleInfoW()
1979 szBuff[0] = '0'; /* M-D-Y */ in SetLocaleInfoW()
1982 szBuff[1] = '\0'; in SetLocaleInfoW()
1991 WriteProfileStringW( intlW, value->name, szBuff ); in SetLocaleInfoW()
1994 status = NtSetValueKey( hkey, &valueW, 0, REG_SZ, szBuff, sizeof(szBuff) ); in SetLocaleInfoW()
/reactos/dll/win32/msctf/
H A Dutils.cpp257 TCHAR szBuff[MAX_PATH], szGUID[40]; in TF_RegisterLangBarAddIn() local
258 StringCchCopy(szBuff, _countof(szBuff), TEXT("SOFTWARE\\Microsoft\\CTF\\LangBarAddIn\\")); in TF_RegisterLangBarAddIn()
260 StringCchCat(szBuff, _countof(szBuff), szGUID); in TF_RegisterLangBarAddIn()
264 LSTATUS error = regKey.Create(hBaseKey, szBuff); in TF_RegisterLangBarAddIn()
/reactos/win32ss/user/ntuser/
H A Dmisc.c90 WCHAR szBuff[4]; in UserGetLanguageToggle() local
92 … Status = RegReadUserSetting(L"Keyboard Layout\\Toggle", pszType, REG_SZ, szBuff, sizeof(szBuff)); in UserGetLanguageToggle()
95 szBuff[RTL_NUMBER_OF(szBuff) - 1] = UNICODE_NULL; in UserGetLanguageToggle()
96 dwValue = _wtoi(szBuff); in UserGetLanguageToggle()
/reactos/base/setup/usetup/
H A Dpartlist.c723 CHAR szBuff[] = "(.)"; // "(up)" in DrawPartitionList() local
724 szBuff[1] = CharUpArrow; in DrawPartitionList()
727 szBuff, in DrawPartitionList()
796 CHAR szBuff[] = "(.)"; // "(down)" in DrawPartitionList() local
797 szBuff[1] = CharDownArrow; in DrawPartitionList()
800 szBuff, in DrawPartitionList()
/reactos/dll/win32/shdocvw/
H A Dmrulist.cpp231 WCHAR szBuff[12]; in _DeleteItem() local
233 _SlotString(iSlot, szBuff, _countof(szBuff)); in _DeleteItem()
234 _DeleteValue(szBuff); in _DeleteItem()
252 WCHAR szBuff[12]; in _AddItem() local
253 _SlotString(iSlot, szBuff, _countof(szBuff)); in _AddItem()
255 if (SHSetValueW(m_hKey, NULL, szBuff, REG_BINARY, pvData, cbData) != ERROR_SUCCESS) in _AddItem()
/reactos/dll/win32/mapi32/
H A Dutil.c716 WCHAR szBuff[MAX_PATH]; in OpenStreamOnFile() local
743 MultiByteToWideChar(CP_ACP, 0, (LPSTR)lpszPath, -1, szBuff, MAX_PATH); in OpenStreamOnFile()
744 hRet = SHCreateStreamOnFileEx(szBuff, dwMode, dwAttributes, TRUE, in OpenStreamOnFile()
/reactos/dll/win32/oleaut32/
H A Dvartype.c6119 WCHAR szBuff[64]; in VarBoolFromStr() local
6151 if (VARIANT_GetLocalisedText(langId, IDS_TRUE, szBuff)) in VarBoolFromStr()
6154 if (!wcsicmp(strIn, szBuff)) in VarBoolFromStr()
6159 VARIANT_GetLocalisedText(langId, IDS_FALSE, szBuff); in VarBoolFromStr()
6160 if (!wcsicmp(strIn, szBuff)) in VarBoolFromStr()
6366 WCHAR szBuff[64], *szOut = szBuff + ARRAY_SIZE(szBuff) - 1; in VARIANT_BstrFromUInt() local
6854 WCHAR szBuff[64]; in VarBstrFromBool() local
6888 if (VARIANT_GetLocalisedText(langId, dwResId, szBuff)) in VarBstrFromBool()
6890 *pbstrOut = SysAllocString(szBuff); in VarBstrFromBool()