Home
last modified time | relevance | path

Searched refs:cch (Results 1 – 25 of 123) sorted by relevance

12345

/reactos/modules/rostests/apitests/shlwapi/
H A DAssocQueryString.c60 DWORD cch; in TEST_AssocQueryStringA() local
64 cch = _countof(szPath); in TEST_AssocQueryStringA()
76 ok_int(cch, _countof(szPath)); in TEST_AssocQueryStringA()
84 cch = _countof(szPath); in TEST_AssocQueryStringA()
96 ok_int(cch, _countof(szPath)); in TEST_AssocQueryStringA()
104 cch = _countof(szPath); in TEST_AssocQueryStringA()
116 ok_int(cch, _countof(szPath)); in TEST_AssocQueryStringA()
128 DWORD cch; in TEST_AssocQueryStringW() local
132 cch = _countof(szPath); in TEST_AssocQueryStringW()
143 cch = _countof(szPath); in TEST_AssocQueryStringW()
[all …]
/reactos/win32ss/printing/base/winspool/
H A Dprinters.c534 DWORD cch; in DeviceCapabilitiesA() local
541 cch = strlen(pDevice); in DeviceCapabilitiesA()
672 DWORD cch; in DocumentPropertiesA() local
679 cch = strlen(pDeviceName); in DocumentPropertiesA()
1418 DWORD cch; in EnumPrintersA() local
1456 cch = strlen(Name); in EnumPrintersA()
2077 DWORD cch; in GetPrinterA() local
2585 DWORD cch; in OpenPrinterA() local
3008 DWORD cch; in SetDefaultPrinterA() local
3016 cch = strlen(pszPrinter); in SetDefaultPrinterA()
[all …]
H A Dprinterdata.c336 DWORD cch; in GetPrinterDataExA() local
350 cch = strlen(pKeyName); in GetPrinterDataExA()
352 pwszKeyName = HeapAlloc(hProcessHeap, 0, (cch + 1) * sizeof(WCHAR)); in GetPrinterDataExA()
360 MultiByteToWideChar(CP_ACP, 0, pKeyName, -1, pwszKeyName, cch + 1); in GetPrinterDataExA()
366 cch = strlen(pValueName); in GetPrinterDataExA()
368 pwszValueName = HeapAlloc(hProcessHeap, 0, (cch + 1) * sizeof(WCHAR)); in GetPrinterDataExA()
553 DWORD cch; in SetPrinterDataExA() local
564 cch = strlen(pKeyName); in SetPrinterDataExA()
566 pwszKeyName = HeapAlloc(hProcessHeap, 0, (cch + 1) * sizeof(WCHAR)); in SetPrinterDataExA()
574 MultiByteToWideChar(CP_ACP, 0, pKeyName, -1, pwszKeyName, cch + 1); in SetPrinterDataExA()
[all …]
H A Dutils.c31 DWORD cch; in UnicodeToAnsiInPlace() local
45 cch = wcslen(pwszField); in UnicodeToAnsiInPlace()
46 if (cch == 0) in UnicodeToAnsiInPlace()
51 pszTemp = HeapAlloc(hProcessHeap, 0, (cch + 1) * sizeof(CHAR)); in UnicodeToAnsiInPlace()
58 WideCharToMultiByte(CP_ACP, 0, pwszField, -1, pszTemp, cch + 1, NULL, NULL); in UnicodeToAnsiInPlace()
59 StringCchCopyA(pszField, cch + 1, pszTemp); in UnicodeToAnsiInPlace()
H A Dprintprocessors.c295 DWORD cch; in GetPrintProcessorDirectoryA() local
305 cch = strlen(pName); in GetPrintProcessorDirectoryA()
307 pwszName = HeapAlloc(hProcessHeap, 0, (cch + 1) * sizeof(WCHAR)); in GetPrintProcessorDirectoryA()
315 MultiByteToWideChar(CP_ACP, 0, pName, -1, pwszName, cch + 1); in GetPrintProcessorDirectoryA()
321 cch = strlen(pEnvironment); in GetPrintProcessorDirectoryA()
323 pwszEnvironment = HeapAlloc(hProcessHeap, 0, (cch + 1) * sizeof(WCHAR)); in GetPrintProcessorDirectoryA()
331 MultiByteToWideChar(CP_ACP, 0, pEnvironment, -1, pwszEnvironment, cch + 1); in GetPrintProcessorDirectoryA()
/reactos/base/applications/clipbrd/
H A Dcliputils.c35 UINT cch) in GetPredefinedClipboardFormatName() argument
99 UINT cch) in RetrieveClipboardFormatName() argument
101 ZeroMemory(lpszFormat, cch * (Unicode ? sizeof(WCHAR) : sizeof(CHAR))); in RetrieveClipboardFormatName()
104 if (GetPredefinedClipboardFormatName(hInstance, uFormat, Unicode, lpszFormat, cch) != 0) in RetrieveClipboardFormatName()
111 (WPARAM)cch, (LPARAM)lpszFormat) != 0) in RetrieveClipboardFormatName()
114 LoadStringW(hInstance, STRING_CF_UNKNOWN, (LPWSTR)lpszFormat, cch); in RetrieveClipboardFormatName()
116 LoadStringA(hInstance, STRING_CF_UNKNOWN, (LPSTR)lpszFormat, cch); in RetrieveClipboardFormatName()
124 if (!GetClipboardFormatNameW(uFormat, (LPWSTR)lpszFormat, cch)) in RetrieveClipboardFormatName()
125 LoadStringW(hInstance, STRING_CF_UNKNOWN, (LPWSTR)lpszFormat, cch); in RetrieveClipboardFormatName()
129 if (!GetClipboardFormatNameA(uFormat, (LPSTR)lpszFormat, cch)) in RetrieveClipboardFormatName()
[all …]
/reactos/sdk/lib/atl/
H A Datltrace.h157 size_t cch = 0; in AtlTraceV() local
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()
191 size_t cch = 0; in AtlTraceV() local
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()
209 _vsnwprintf(&szBuff[cch], _countof(szBuff) - cch, format, va); in AtlTraceV()
/reactos/base/applications/cmdutils/where/
H A Dwhere.c55 size_t cch; in WhereSearchGeneric() local
64 cch = path_len - (pch - path); in WhereSearchGeneric()
129 size_t cch; in WhereSearchFiles() local
134 cch = wcslen(szPath); in WhereSearchFiles()
138 szPath[cch] = 0; // cut off extension in WhereSearchFiles()
183 DWORD cch = GetEnvironmentVariableW(name, NULL, 0); in WhereGetVariable() local
184 if (cch == 0) // variable not found in WhereGetVariable()
192 *value = malloc(cch * sizeof(WCHAR)); in WhereGetVariable()
312 size_t cch; in WhereFindByDirs() local
333 cch = wcslen(dir); in WhereFindByDirs()
[all …]
/reactos/modules/rostests/winetests/userenv/
H A Duserenv.c234 DWORD cch, profiles_len; in test_get_profiles_dir() local
248 buf = HeapAlloc(GetProcessHeap(), 0, cch); in test_get_profiles_dir()
261 r = GetProfilesDirectoryA(NULL, &cch); in test_get_profiles_dir()
265 cch = 1; in test_get_profiles_dir()
266 r = GetProfilesDirectoryA(small_buf, &cch); in test_get_profiles_dir()
272 ok(cch == profiles_len - 1, "expected %d, got %d\n", profiles_len - 1, cch); in test_get_profiles_dir()
277 r = GetProfilesDirectoryA(buf, &cch); in test_get_profiles_dir()
292 cch = 0; in test_get_profiles_dir()
294 r = GetProfilesDirectoryW(NULL, &cch); in test_get_profiles_dir()
297 ok(cch, "expected cch > 0\n"); in test_get_profiles_dir()
[all …]
/reactos/base/applications/cmdutils/fc/
H A Dtext.h22 static LPTSTR AllocLine(LPCTSTR pch, DWORD cch) in AllocLine() argument
27 memcpy(pszNew, pch, cch * sizeof(TCHAR)); in AllocLine()
28 pszNew[cch] = 0; in AllocLine()
130 INT cch = 0; in ExpandTabLength() local
134 cch += TAB_WIDTH - (cch % TAB_WIDTH); in ExpandTabLength()
136 ++cch; in ExpandTabLength()
138 return cch; in ExpandTabLength()
243 while (ich < cch) in FindNextLine()
252 *pich = cch; in FindNextLine()
283 cch = cbView / sizeof(TCHAR); in ParseLines()
[all …]
/reactos/base/applications/rapps/
H A Dmisc.cpp401 ULONG cb = 0, cch; in GetRegString() local
405 cch = cb / sizeof(WCHAR); in GetRegString()
406 LPWSTR p = Value.GetBuffer(cch + 1); in GetRegString()
407 p[cch] = UNICODE_NULL; in GetRegString()
423 DWORD cch = ExpandEnvironmentStringsW(Str, NULL, 0); in ExpandEnvStrings() local
424 if (cch) in ExpandEnvStrings()
426 if (ExpandEnvironmentStringsW(Str, buf.GetBuffer(cch), cch) == cch) in ExpandEnvStrings()
428 buf.ReleaseBuffer(cch - 1); in ExpandEnvStrings()
449 UINT cch = from.GetLength(); in DeleteDirectoryTree() local
452 p[cch] = p[cch + 1] = L'\0'; // Double null-terminate in DeleteDirectoryTree()
/reactos/dll/win32/imm32/
H A Dime.c1085 size_t cch; in ImmGetDescriptionA() local
1106 return (UINT)cch; in ImmGetDescriptionA()
1115 size_t cch; in ImmGetDescriptionW() local
1135 return (UINT)cch; in ImmGetDescriptionW()
1145 size_t cch; in ImmGetIMEFileNameA() local
1167 cch = WideCharToMultiByte(CP_ACP, 0, info.wszImeFile, (INT)cch, in ImmGetIMEFileNameA()
1185 size_t cch; in ImmGetIMEFileNameW() local
1281 INT cch; in ImmEscapeA() local
1303 cch = 0; in ImmEscapeA()
1369 INT cch; in ImmEscapeW() local
[all …]
H A Dutils.c229 INT cch = lstrlenA(pszA); in Imm32WideFromAnsi() local
233 cch = MultiByteToWideChar(uCodePage, MB_PRECOMPOSED, pszA, cch, pszW, cch + 1); in Imm32WideFromAnsi()
234 pszW[cch] = 0; in Imm32WideFromAnsi()
301 size_t cch; in LogFontAnsiToWide() local
304 cch = MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, plfA->lfFaceName, (INT)cch, in LogFontAnsiToWide()
306 if (cch > _countof(plfW->lfFaceName) - 1) in LogFontAnsiToWide()
307 cch = _countof(plfW->lfFaceName) - 1; in LogFontAnsiToWide()
308 plfW->lfFaceName[cch] = 0; in LogFontAnsiToWide()
314 size_t cch; in LogFontWideToAnsi() local
317 cch = WideCharToMultiByte(CP_ACP, 0, plfW->lfFaceName, (INT)cch, in LogFontWideToAnsi()
[all …]
/reactos/modules/rostests/apitests/wscript/
H A Dwsf.c28 UINT cch = GetTempPathW(cchpath, path); in makestringfile() local
30 if (!cch || cch > cchpath) in makestringfile()
35 … if (_snwprintf(path + cch, cchpath - cch, L"~%u.%hs", i, ext ? ext : "tmp") >= cchpath - cch) in makestringfile()
/reactos/base/shell/cmd/
H A Dtrace.c18 int cch; in CmdTrace() local
31 cch = lstrlenA(szTextA); in CmdTrace()
32 StringCchVPrintfA(&szTextA[cch], _countof(szTextA) - cch, fmt, va); in CmdTrace()
/reactos/win32ss/user/user32/windows/
H A Dmenu.c199 lpmii->cch = 0; in GetMenuItemInfo_common()
205 lpmii->cch = 0; in GetMenuItemInfo_common()
221 lpmii->cch = 0; in GetMenuItemInfo_common()
242 if(lpmii->dwTypeData && lpmii->cch) in GetMenuItemInfo_common()
243 if (lpmii->cch <= len + 1) in GetMenuItemInfo_common()
244 lpmii->cch--; in GetMenuItemInfo_common()
246 lpmii->cch = len; in GetMenuItemInfo_common()
251 lpmii->cch = len; in GetMenuItemInfo_common()
475 mii.cch = strlenW(mii.dwTypeData); in MENUEX_ParseResource()
732 mii.cch = MenuText.Length / sizeof(WCHAR); in AppendMenuW()
[all …]
/reactos/sdk/include/asm/
H A Dmacamd64.inc80 // db 6 dup (0cch)
91 // db 6 dup (0cch)
102 // db 6 dup (0cch)
113 // db 6 dup (0cch)
135 db 6 dup (0cch)
/reactos/dll/win32/propsys/
H A Dpropsys_main.c284 HRESULT WINAPI PSStringFromPropertyKey(REFPROPERTYKEY pkey, LPWSTR psz, UINT cch) in PSStringFromPropertyKey() argument
296 TRACE("(%p, %p, %u)\n", pkey, psz, cch); in PSStringFromPropertyKey()
302 if (cch <= GUIDSTRING_MAX + 1) in PSStringFromPropertyKey()
319 cch -= GUIDSTRING_MAX - 1 + 1; in PSStringFromPropertyKey()
323 if (cch >= len + 1) in PSStringFromPropertyKey()
334 cch--; in PSStringFromPropertyKey()
339 if (cch) in PSStringFromPropertyKey()
342 while (cch--) in PSStringFromPropertyKey()
/reactos/dll/win32/winmm/
H A Dmmio.c738 TRACE("(%p, %p, %d);\n", hmmio, pch, cch); in mmioRead()
750 if (count > cch || count < 0) count = cch; in mmioRead()
754 cch -= count; in mmioRead()
758 if (cch && (wm->info.fccIOProc != FOURCC_MEM)) { in mmioRead()
761 while (cch) { in mmioRead()
766 if (size > cch) size = cch; in mmioRead()
770 cch -= size; in mmioRead()
787 TRACE("(%p, %p, %d);\n", hmmio, pch, cch); in mmioWrite()
796 while (cch) { in mmioWrite()
799 if (count > cch || count < 0) count = cch; in mmioWrite()
[all …]
/reactos/modules/rostests/winetests/user32/
H A Dmenu.c3966 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
3982 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4000 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4033 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4051 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4070 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4105 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4124 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4157 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
4181 ok(mii.cch == 6, "expected 6, got %u\n", mii.cch); in test_AppendMenu()
[all …]
/reactos/sdk/lib/ucrt/locale/
H A Dwsetlocale.cpp661 size_t cch = 0; in _wsetlocale_set_cat() local
678 cch = wcslen(lctemp) + 1; in _wsetlocale_set_cat()
690 _ERRCHECK(wcscpy_s(pch_cat_locale, cch, lctemp)); in _wsetlocale_set_cat()
807 size_t cch = 0; in _wsetlocale_get_all() local
817 cch = (refcountSize - sizeof(int)) / sizeof(wchar_t); in _wsetlocale_get_all()
822 _wcscats(pch, cch, 3, __lc_category[i].catname, L"=", ploci->lc_category[i].wlocale); in _wsetlocale_get_all()
825 _ERRCHECK(wcscat_s(pch, cch, L";")); in _wsetlocale_get_all()
1413 size_t cch; in __acrt_copy_locale_name() local
1419 cch = wcsnlen(localeName, LOCALE_NAME_MAX_LENGTH); in __acrt_copy_locale_name()
1423 if ((localeNameCopy = (wchar_t *) _malloc_crt((cch + 1) * sizeof(wchar_t))) == nullptr) in __acrt_copy_locale_name()
[all …]
/reactos/dll/ime/msctfime/
H A Dprofile.cpp102 INT cch = ::GetLocaleInfoW(LangID, LOCALE_IDEFAULTANSICODEPAGE, szBuff, _countof(szBuff)); in GetCodePageA() local
103 if (cch) in GetCodePageA()
105 szBuff[cch] = 0; in GetCodePageA()
/reactos/base/applications/cmdutils/more/
H A Dmore.c77 static BOOL IsBlankLine(IN PCWCH line, IN DWORD cch) in IsBlankLine() argument
81 for (ich = 0; ich < cch; ++ich) in IsBlankLine()
109 IN DWORD cch) in MorePagerLine() argument
123 if (IsBlankLine(line, cch)) in MorePagerLine()
913 DWORD cch; in ParseMoreVariable() local
915 cch = GetEnvironmentVariableW(L"MORE", NULL, 0); in ParseMoreVariable()
916 if (cch == 0) in ParseMoreVariable()
919 psz = (PWSTR)malloc((cch + 1) * sizeof(WCHAR)); in ParseMoreVariable()
923 if (!GetEnvironmentVariableW(L"MORE", psz, cch + 1)) in ParseMoreVariable()
/reactos/dll/win32/lpk/
H A Dbidi.c154 static int resolveParagraphs(WORD *types, int cch) in resolveParagraphs() argument
158 for(; ich < cch && types[ich] != B; ich++); in resolveParagraphs()
160 if (ich < cch && types[ich] == B) in resolveParagraphs()
182 static int resolveLines(LPCWSTR pszInput, const BOOL * pbrk, int cch) in resolveLines() argument
186 for(; ich < cch; ich++) in resolveLines()
215 static void resolveWhitespace(int baselevel, const WORD *pcls, BYTE *plevel, int cch) in resolveWhitespace() argument
221 for (; ich < cch; ich++) in resolveWhitespace()
/reactos/sdk/lib/conutils/
H A Dpager.c71 IN SIZE_T cch) in GetNextLine() argument
102 if (ich >= cch) in GetNextLine()
117 for (; ich < cch; ++ich) in GetNextLine()
144 (ich >= cch) && (TextBuff[ich - 1] != TEXT('\n'))); in GetNextLine()
222 IN DWORD cch) in ConPagerWorker() argument
273 if (!GetNextLine(Pager, TextBuff, cch)) in ConPagerWorker()

12345