ReactOS 0.4.15-dev-8434-g155a7c7
lstring.c File Reference
#include <k32.h>
Include dependency graph for lstring.c:

Go to the source code of this file.

Functions

int WINAPI lstrcmpA (LPCSTR lpString1, LPCSTR lpString2)
 
int WINAPI lstrcmpiA (LPCSTR lpString1, LPCSTR lpString2)
 
LPSTR WINAPI lstrcpynA (LPSTR lpString1, LPCSTR lpString2, int iMaxLength)
 
LPSTR WINAPI lstrcpyA (LPSTR lpString1, LPCSTR lpString2)
 
LPSTR WINAPI lstrcatA (LPSTR lpString1, LPCSTR lpString2)
 
int WINAPI lstrlenA (LPCSTR lpString)
 
int WINAPI lstrcmpW (LPCWSTR lpString1, LPCWSTR lpString2)
 
int WINAPI lstrcmpiW (LPCWSTR lpString1, LPCWSTR lpString2)
 
LPWSTR WINAPI lstrcpynW (LPWSTR lpString1, LPCWSTR lpString2, int iMaxLength)
 
LPWSTR WINAPI lstrcpyW (LPWSTR lpString1, LPCWSTR lpString2)
 
LPWSTR WINAPI lstrcatW (LPWSTR lpString1, LPCWSTR lpString2)
 
int WINAPI lstrlenW (LPCWSTR lpString)
 

Function Documentation

◆ lstrcatA()

LPSTR WINAPI lstrcatA ( LPSTR  lpString1,
LPCSTR  lpString2 
)

Definition at line 123 of file lstring.c.

124{
125 LPSTR Ret = NULL;
126
128 {
129 Ret = strcat(lpString1, lpString2);
130 }
132 {
133 }
134 _SEH2_END;
135
136 return Ret;
137}
char * strcat(char *DstString, const char *SrcString)
Definition: utclib.c:568
#define NULL
Definition: types.h:112
#define _SEH2_END
Definition: filesup.c:22
#define _SEH2_TRY
Definition: filesup.c:19
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:66
char * LPSTR
Definition: xmlstorage.h:182

Referenced by add_file(), cleanup_eventlog(), compare_pf_data(), copy_dll_file(), create_avi_file(), create_cache_file(), create_file(), create_file_with_version(), create_pf_data(), delete_cab_files(), delete_cf(), delete_pf(), delete_pf_native(), delete_pfmsitest_files(), delete_win_ini(), delnode_test(), DllMain(), enum_datetime_procA(), EnumColorProfilesA(), fdi_notify_extract(), full_file_path_name_in_a_CWD(), get_pf_file_size(), get_progfiles_dir(), GetFileNamePreview(), GetNlsSectionName(), getNotepadPath(), GetPathA(), have_profile(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), pf_exists(), register_server(), run_js_script(), search_absolute_directory(), set_cab_parameters(), set_component_path(), set_file_url(), SHAddToRecentDocs(), START_TEST(), test_AddDelBackupEntry(), test_AdvInstallFile(), test_AssociateColorProfileWithDeviceA(), test_autocreation(), test_BindToObject(), test_cdf_parsing(), test_complocator(), test_concurrentinstall(), test_context(), test_CreateDirectoryA(), test_CryptCATAdminAddRemoveCatalog(), test_currentworkingdir(), test_driver_install(), test_drvGetDefaultCommConfigA(), test_drvGetDefaultCommConfigW(), test_enumerate(), test_enumerate_name(), test_EnumObjects_and_CompareIDs(), test_ExtractFiles(), test_FDICopy(), test_ffcn_directory_overlap(), test_ffcnMultipleThreads(), test_file_in_use(), test_file_in_use_cab(), test_FindFirstChangeNotification(), test_formatrecord_tables(), test_GetAcceptLanguagesA(), test_GetAttributesOf(), test_GetDisplayName(), test_GetLongPathNameA(), test_icon_table(), test_info_size(), test_ini_values(), test_InstallColorProfileA(), test_installprops(), test_lastusedsource(), test_LaunchINFSection(), test_LaunchINFSectionEx(), test_load_save(), test_MoveFileA(), test_MsiConfigureProductEx(), test_MsiEnumClients(), test_MsiEnumPatches(), test_MsiEnumPatchesEx_machine(), test_MsiEnumPatchesEx_usermanaged(), test_MsiEnumPatchesEx_userunmanaged(), test_msiexport(), test_MsiGetComponentPath(), test_MsiGetComponentPathEx(), test_MsiGetFileVersion(), test_MsiGetPatchInfo(), test_MsiGetPatchInfoEx(), test_MsiGetProductCode(), test_MsiGetProductInfoEx(), test_MsiGetProductProperty(), test_MsiGetSourcePath(), test_MsiGetUserInfo(), test_MsiOpenProduct(), test_MsiProvideQualifiedComponentEx(), test_MsiQueryComponentState(), test_MsiQueryFeatureState(), test_MsiQueryProductState(), test_MsiSetComponentState(), test_MsiSourceListAddMediaDisk(), test_MsiSourceListAddSource(), test_MsiSourceListAddSourceEx(), test_MsiSourceListEnumMediaDisks(), test_MsiSourceListEnumSources(), test_MsiSourceListGetInfo(), test_MsiSourceListSetInfo(), test_OpenFile(), test_packagecoltypes(), test_process_components(), test_profile_directory_readonly(), test_publish_product(), test_publish_sourcelist(), test_QueryAssemblyInfo(), test_readonlyfile(), test_readonlyfile_cab(), test_RemoveDirectoryA(), test_RunSetupCommand(), test_settargetpath(), test_SetupGetInfInformation(), test_SetupGetSourceFileLocation(), test_SetupGetSourceInfo(), test_SetupGetTargetPath(), test_SHCreateStreamOnFileA(), test_SHCreateStreamOnFileEx(), test_SHCreateStreamOnFileW(), test_shortlongsource(), test_sourcedir(), test_UninstallColorProfileA(), testLoadLibraryEx(), tmpdir(), and uniquecontainer().

◆ lstrcatW()

LPWSTR WINAPI lstrcatW ( LPWSTR  lpString1,
LPCWSTR  lpString2 
)

Definition at line 274 of file lstring.c.

275{
276 LPWSTR Ret = NULL;
277
279 {
280 Ret = wcscat(lpString1, lpString2);
281 }
283 {
284 }
285 _SEH2_END;
286
287 return Ret;
288}
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by __wcserror_s(), ACTION_PublishFeatures(), ACTION_RegisterClassInfo(), ACTION_RegisterExtensionInfo(), ACTION_RegisterMIMEInfo(), ACTION_UnregisterClassInfo(), ACTION_UnregisterExtensionInfo(), ACTION_UnregisterMIMEInfo(), add_wildcard(), AddDelBackupEntryW(), alloc_element(), AllocStrCat(), apd_copyfile(), append_current_units(), append_productcode(), AVIBuildFilterW(), AVISaveOptionsUpdate(), build_default_format(), build_full_keypath(), build_manifest_filename(), build_policy_filename(), build_query_string(), cache_container_open_index(), CATIDEnumGUID_Construct(), CLRRuntimeInfo_GetRuntimeDirectory(), clsid_from_string_reg(), CM_Open_Class_Key_ExW(), COM_OpenKeyForAppIdFromCLSID(), COMDLG32_GetCanonicalPath(), CompositeMonikerImpl_GetDisplayName(), create_EnumMoniker(), create_file_test(), create_manifest_file(), create_monodata(), create_package(), create_PropertyBag(), create_server(), create_system_ports_list(), create_testfontfile(), CRYPT_OpenSIPFunctionKey(), CRYPT_SIPDeleteFunction(), CRYPT_SIPWriteFunction(), CryptCATAdminAcquireContext(), CryptCATAdminAddCatalog(), CryptCATAdminEnumCatalogFromHash(), CryptCATAdminRemoveCatalog(), CryptCATAdminResolveCatalogPath(), CryptSIPRetrieveSubjectGuid(), custom_start_server(), DATETIME_GetText(), decode_string(), delete_file_test(), DEVENUM_IMediaCatMoniker_GetDisplayName(), Display_SetTypeFace(), DoEntry(), driver_load(), enum_datetime_procW(), EnumColorProfilesW(), EnumThemes(), export_append_extension(), ExtCabCallback(), FD31_DirListDblClick(), FD31_TestPath(), fetch_user_component(), fetch_user_product(), filecoll_get_Count(), FILEDLG95_InitControls(), FILEDLG95_OnOpen(), FILEDLG95_OnOpenMultipleFiles(), FileMonikerImpl_CommonPrefixWith(), FileMonikerImpl_ComposeWith(), FileMonikerImpl_Construct(), FileMonikerImpl_RelativePathTo(), filesys_BuildPath(), fill_file_description(), find_and_map_dsym(), find_published_source(), FindHTMLHelpSetting(), foldercoll_get_Count(), font_name_from_file(), format_filelist_filename(), get_assembly_display_name(), get_cabinet_filename(), get_engine_clsid(), get_full_path(), get_fusion_filename(), get_lcid_subkey(), get_mono_path_from_registry(), get_path_with_extension(), get_stream_name(), get_temp_filepath(), get_unique_folder_name(), get_wine_loader_name(), get_working_dir(), GetColorDirectoryW(), GetComputerObjectNameW(), GetPathW(), GetStandardColorSpaceProfileW(), GetSystemFontDirectory(), GetSystemFontPath(), HCR_GetExecuteCommandW(), HCR_GetIconW(), HDropFromClipboard(), header_from_file(), HTTP_build_req(), HTTP_DealWithProxy(), IAssemblyNameImpl_GetDisplayName(), init_paths(), install_assembly(), install_init(), InstallColorProfileW(), is_wine_loader(), ItemMonikerImpl_GetDisplayName(), ITERATE_InstallService(), ITERATE_MoveFiles(), ITERATE_PublishComponent(), ITERATE_RemoveFiles(), ITERATE_RemoveRegistryValuesOnInstall(), ITERATE_RemoveRegistryValuesOnUninstall(), ITERATE_UnpublishComponent(), ITERATE_WriteRegistryValues(), ITSS_IStorageImpl_OpenStorage(), ITSS_IStorageImpl_OpenStream(), load_driver(), load_mapi_providers(), load_resource(), LoadThemes(), LocalGetPrinterDriverDirectory(), MCIWND_UpdateState(), MCIWndProc(), MMDevEnum_GetDefaultAudioEndpoint(), mqr_GetMetadataByName(), msi_add_table_to_db(), msi_build_createsql_columns(), msi_build_directory_name(), msi_create_empty_local_file(), MSI_DatabaseExport(), MSI_DatabaseImport(), msi_dialog_dirlist_handler(), msi_dialog_update_directory_list(), MSI_InstallPackage(), MSI_OpenDatabaseW(), MSI_ProcessMessage(), MsiConfigureFeatureW(), MsiConfigureProductExW(), MsiCreateAndVerifyInstallerDirectory(), MSIREG_DeleteUserFeaturesKey(), MSIREG_DeleteUserProductKey(), MSIREG_DeleteUserUpgradeCodesKey(), MSIREG_OpenClassesUpgradeCodesKey(), MSIREG_OpenFeaturesKey(), MSIREG_OpenInstallerFeaturesKey(), MSIREG_OpenPatchesKey(), MSIREG_OpenProductKey(), MSIREG_OpenUninstallKey(), MSIREG_OpenUpgradeCodesKey(), MSIREG_OpenUserComponentsKey(), MSIREG_OpenUserPatchesKey(), MSIREG_OpenUserUpgradeCodesKey(), MsiReinstallFeatureW(), MsiSourceListAddMediaDiskW(), MsiSourceListAddSourceExW(), myAddPrinterDriverEx(), NdrDllRegisterProxy(), NdrDllUnregisterProxy(), notif_thread_proc(), on_command_filetype(), on_default_action(), open_package(), PathAllocCombine(), PdhMakeCounterPathW(), PNP_GetClassName(), PRINTDLG_UpdatePrinterInfoTextsW(), query_from_path(), ready_media(), recurse_search_directory(), RegInstallW(), register_codec(), register_dsound_devices(), register_legacy_filters(), register_verb(), registry_get_handle(), resolve_filename(), rpcrt4_ncacn_http_open(), run_winemenubuilder(), search_components(), search_dr(), search_for_inf(), set_firewall(), set_installer_properties(), set_up_attribute_test(), SETUP_CreateClassKey(), SetupDiInstallClassExW(), SetupDiInstallDriverFiles(), SetupDiRegisterCoDeviceInstallers(), SetupOpenLog(), SetupQuerySpaceRequiredOnDriveW(), SHFormatDateTimeW(), start_enumeration(), START_TEST(), strdupWW(), StrFormatKBSizeW(), tear_down_attribute_test(), test_AtlAxCreateControl(), test_ax_win(), test_codec(), test_CompleteLocalURL(), test_create(), test_create_effect_from_file(), test_CreateDirectoryW(), test_Data(), test_DeleteFileW(), test_directshow_filter(), test_dmo(), test_drvGetDefaultCommConfigW(), test_dsound(), test_ExtractIcon(), test_ffcn(), test_file_link_information(), test_file_protocol(), test_file_rename_information(), test_FileCollection(), test_find_window_class(), test_FolderCollection(), test_FolderShortcut(), test_GetCachePath(), test_GetFile(), test_GetFileVersion(), test_GetFinalPathNameByHandleW(), test_GetLongPathNameW(), test_GetShortPathNameW(), test_GetUIObject(), test_InstallColorProfileW(), test_int_widths(), test_interfaces(), test_junction_points(), test_knownFolders(), test_legacy_filter(), test_legacy_filter_registration(), test_Load(), test_MatchApplicationsEx(), test_midiout(), test_msidatabase(), test_namespace(), test_navigation(), test_ntncdf(), test_ntncdf_async(), test_ParseDisplayName(), test_ParseName(), test_PathSearchAndQualify(), test_PathUnExpandEnvStrings(), test_PathYetAnotherMakeUniqueName(), test_QueryAssemblyInfo(), test_Read(), test_ReadAll(), test_readdirectorychanges(), test_readdirectorychanges_cr(), test_readdirectorychanges_filedir(), test_readdirectorychanges_null(), test_registry(), test_RemoveDirectoryW(), test_SHCreateDefaultContextMenu(), test_SHCreateShellItem(), test_SHCreateShellItemArray(), test_ShellItemArrayEnumItems(), test_ShellItemArrayGetAttributes(), test_ShellItemGetAttributes(), test_SHFormatDateTimeW(), test_SHGetPathFromIDList(), test_SHGetSetFolderCustomSettings(), test_TransformWithLoadingLocalFile(), test_UninstallColorProfileW(), test_vfw(), test_wavein(), test_waveout(), test_Win32_ComputerSystem(), test_WriteLine(), test_wshshell(), testSystemStore(), truncate_path(), uninstall_assembly(), wildcard_to_file(), WININET_GetSetPassword(), WINTRUST_ReadProviderFromReg(), WINTRUST_RemoveProviderFromReg(), WINTRUST_WriteProviderToReg(), WINTRUST_WriteSingleUsageEntry(), write_predefined_strings(), write_registry_values(), wWinMain(), XCOPY_DoCopy(), XCOPY_ProcessDestParm(), and XCOPY_ProcessSourceParm().

◆ lstrcmpA()

int WINAPI lstrcmpA ( LPCSTR  lpString1,
LPCSTR  lpString2 
)

Definition at line 18 of file lstring.c.

19{
20 int Result;
21
22 if (lpString1 == lpString2)
23 return 0;
24 if (lpString1 == NULL)
25 return -1;
26 if (lpString2 == NULL)
27 return 1;
28
29 Result = CompareStringA(GetThreadLocale(), 0, lpString1, -1, lpString2, -1);
30 if (Result)
31 Result -= 2;
32
33 return Result;
34}
LCID WINAPI GetThreadLocale(void)
Definition: locale.c:2800
INT WINAPI CompareStringA(LCID lcid, DWORD flags, LPCSTR str1, INT len1, LPCSTR str2, INT len2)
Definition: locale.c:4082
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409

◆ lstrcmpiA()

int WINAPI lstrcmpiA ( LPCSTR  lpString1,
LPCSTR  lpString2 
)

Definition at line 42 of file lstring.c.

43{
44 int Result;
45
46 if (lpString1 == lpString2)
47 return 0;
48 if (lpString1 == NULL)
49 return -1;
50 if (lpString2 == NULL)
51 return 1;
52
53 Result = CompareStringA(GetThreadLocale(), NORM_IGNORECASE, lpString1, -1, lpString2, -1);
54 if (Result)
55 Result -= 2;
56
57 return Result;
58}
#define NORM_IGNORECASE
Definition: winnls.h:176

◆ lstrcmpiW()

int WINAPI lstrcmpiW ( LPCWSTR  lpString1,
LPCWSTR  lpString2 
)

Definition at line 194 of file lstring.c.

195{
196 int Result;
197
198 if (lpString1 == lpString2)
199 return 0;
200 if (lpString1 == NULL)
201 return -1;
202 if (lpString2 == NULL)
203 return 1;
204
205 Result = CompareStringW(GetThreadLocale(), NORM_IGNORECASE, lpString1, -1, lpString2, -1);
206 if (Result)
207 Result -= 2;
208
209 return Result;
210}
INT WINAPI CompareStringW(LCID lcid, DWORD flags, LPCWSTR str1, INT len1, LPCWSTR str2, INT len2)
Definition: locale.c:4013

◆ lstrcmpW()

int WINAPI lstrcmpW ( LPCWSTR  lpString1,
LPCWSTR  lpString2 
)

Definition at line 170 of file lstring.c.

171{
172 int Result;
173
174 if (lpString1 == lpString2)
175 return 0;
176 if (lpString1 == NULL)
177 return -1;
178 if (lpString2 == NULL)
179 return 1;
180
181 Result = CompareStringW(GetThreadLocale(), 0, lpString1, -1, lpString2, -1);
182 if (Result)
183 Result -= 2;
184
185 return Result;
186}

◆ lstrcpyA()

LPSTR WINAPI lstrcpyA ( LPSTR  lpString1,
LPCSTR  lpString2 
)

Definition at line 100 of file lstring.c.

101{
102 LPSTR Ret = NULL;
103
105 {
106 memmove(lpString1, lpString2, strlen(lpString2) + 1);
107 Ret = lpString1;
108 }
110 {
111 }
112 _SEH2_END;
113
114 return Ret;
115}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define memmove(s1, s2, n)
Definition: mkisofs.h:881

Referenced by _find_font_for_range(), _ILCreateDrive(), _RTFGetToken(), add_file(), CertGetValidUsages(), cleanup_eventlog(), compare_pf_data(), create_execute(), create_full_path(), create_pf_data(), create_poke(), CRYPT_ExportPublicKeyInfoEx(), D3DXCreateFontA(), dde_server_wndproc(), delete_cab_files(), delete_cf(), delete_component_path(), delete_pf(), delete_pf_native(), delete_pfmsitest_files(), dns_strdup_a(), DoTestEntry(), DP_CopySessionDesc(), enum_gac_assembly_dirs(), EnumColorProfilesA(), Extract(), ExtractFilesA(), fdi_notify_extract(), fill_file_node(), get_glyph_indices(), get_pf_file_size(), get_progfiles_dir(), get_temp_file(), get_temp_filename(), GetFileNamePreview(), GetNlsSectionName(), GetPathA(), heap_strdup(), init_strings(), make_tmp_file(), node_to_string(), notify_system_change(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), parent_wnd_proc(), PathGetShortPathA(), pf_exists(), process_pending_renames(), ReadFontTbl(), register_server(), RTFStrSave(), RTFUngetToken(), run_js_script(), search_absolute_directory(), server_ddeml_callback(), set_cab_parameters(), set_component_path(), set_file_url(), set_prop(), setperusersecvalues_test(), SetupGetFileCompressionInfoExA(), SHADD_create_add_mru_data(), SHAddToRecentDocs(), SHQueryValueExA(), SHRegSetPathA(), SQLGetPrivateProfileString(), START_TEST(), test_AddDelBackupEntry(), test_AdvInstallFile(), test_appsearch_inilocator(), test_appsearch_reglocator(), test_autocreation(), test_bcm_get_ideal_size(), test_BindToObject(), test_cdf_parsing(), test_complocator(), test_concurrentinstall(), test_context(), test_copy(), test_CreateFontIndirect(), test_CreateFontIndirectEx(), test_CryptCATAdminAddRemoveCatalog(), test_CurrentDirectoryA(), test_currentworkingdir(), test_dbtopackage(), test_ddeml_client(), test_DoEnvironmentSubst(), test_DrawTextCalcRect(), test_driver_install(), test_dtm_get_ideal_size(), test_EM_GETHANDLE(), test_emf_ExtTextOut_on_path(), test_enumdisplaydevices(), test_enumdisplaydevices_monitor(), test_enumerate_name(), test_Extract(), test_ExtractFiles(), test_ExtTextOut(), test_FDICopy(), test_ffcn_directory_overlap(), test_fieldzero(), test_file_disposition_information(), test_file_in_use(), test_file_in_use_cab(), test_FindFirstChangeNotification(), test_font_substitution(), test_font_transform(), test_formatrecord_tables(), test_fstype_fixup(), test_fullname(), test_fullname2_helper(), test_GdiGetCodePage(), test_GetCachePath(), test_GetDisplayName(), test_getfolderpath(), test_GetFontUnicodeRanges(), test_GetGlyphOutline(), test_GetGlyphOutline_empty_contour(), test_GetGlyphOutline_metric_clipping(), test_GetLongPathNameA(), test_GetPrivateProfileString(), test_GetSetEnvironmentVariableA(), test_GetSystemDirectoryA(), test_GetTempPathA(), test_GetWindowsDirectoryA(), test_icon_table(), test_ini_values(), test_InitPathA(), test_installprops(), test_lastusedsource(), test_LaunchINFSection(), test_LaunchINFSectionEx(), test_LCMapStringA(), test_logfont(), test_mf_SaveDC(), test_MoveFileA(), test_MsiConfigureProductEx(), test_MsiEnumClients(), test_MsiEnumPatches(), test_MsiEnumPatchesEx(), test_MsiEnumPatchesEx_machine(), test_MsiEnumPatchesEx_usermanaged(), test_MsiEnumPatchesEx_userunmanaged(), test_MsiGetComponentPath(), test_MsiGetComponentPathEx(), test_MsiGetFileVersion(), test_MsiGetPatchInfo(), test_MsiGetPatchInfoEx(), test_MsiGetProductCode(), test_MsiGetProductInfoEx(), test_MsiGetProductProperty(), test_MsiGetSourcePath(), test_MsiGetUserInfo(), test_MsiOpenProduct(), test_MsiProvideQualifiedComponentEx(), test_MsiQueryComponentState(), test_MsiQueryFeatureState(), test_MsiQueryProductState(), test_MsiRecordGetString(), test_MsiSetComponentState(), test_MsiSourceListAddMediaDisk(), test_MsiSourceListAddSource(), test_MsiSourceListAddSourceEx(), test_MsiSourceListEnumMediaDisks(), test_MsiSourceListEnumSources(), test_MsiSourceListGetInfo(), test_MsiSourceListSetInfo(), test_oemcharset(), test_orientation(), test_packagecoltypes(), test_PathAddBackslash(), test_PathAppendA(), test_PathBuildRootA(), test_PathCanonicalizeA(), test_PathCombineA(), test_PathCommonPrefixA(), test_PathFindExtensionA(), test_process_components(), test_property_table(), test_publish_product(), test_publish_sourcelist(), test_readonlyfile(), test_readonlyfile_cab(), test_regconnectregistry(), test_RegisterClipboardFormatA(), test_RunSetupCommand(), test_SaveDC(), test_script_cache_reuse(), test_ScriptCacheGetHeight(), test_ScriptGetFontProperties(), test_ScriptShape(), test_SetTextJustification(), test_SetupDecompressOrCopyFile(), test_SetupGetInfInformation(), test_SetupGetSourceFileLocation(), test_SetupGetSourceInfo(), test_SetupGetTargetPath(), test_shortlongsource(), test_size(), test_sourcedir(), test_SplitShortPathA(), test_status_control(), test_storages_table(), test_StrRetToBSTR(), test_StrRetToStringNW(), test_UrlApplyScheme(), test_ValidPathA(), translateinfstringex_test(), twain_add_onedriver(), uniquecontainer(), and WNetGetUniversalNameA().

◆ lstrcpynA()

LPSTR WINAPI lstrcpynA ( LPSTR  lpString1,
LPCSTR  lpString2,
int  iMaxLength 
)

Definition at line 66 of file lstring.c.

67{
68 LPSTR d = lpString1;
69 LPCSTR s = lpString2;
70 UINT count = iMaxLength;
71 LPSTR Ret = NULL;
72
74 {
75 while ((count > 1) && *s)
76 {
77 count--;
78 *d++ = *s++;
79 }
80
81 if (count)
82 *d = 0;
83
84 Ret = lpString1;
85 }
87 {
88 }
90
91 return Ret;
92}
GLdouble s
Definition: gl.h:2039
GLuint GLuint GLsizei count
Definition: gl.h:1545
#define d
Definition: ke_i.h:81
unsigned int UINT
Definition: ndis.h:50
const char * LPCSTR
Definition: xmlstorage.h:183

◆ lstrcpynW()

LPWSTR WINAPI lstrcpynW ( LPWSTR  lpString1,
LPCWSTR  lpString2,
int  iMaxLength 
)

Definition at line 218 of file lstring.c.

219{
220 LPWSTR d = lpString1;
221 LPCWSTR s = lpString2;
222 UINT count = iMaxLength;
223 LPWSTR Ret = NULL;
224
226 {
227 while ((count > 1) && *s)
228 {
229 count--;
230 *d++ = *s++;
231 }
232
233 if (count)
234 *d = 0;
235
236 Ret = lpString1;
237 }
239 {
240 }
241 _SEH2_END;
242
243 return Ret;
244}
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

◆ lstrcpyW()

LPWSTR WINAPI lstrcpyW ( LPWSTR  lpString1,
LPCWSTR  lpString2 
)

Definition at line 252 of file lstring.c.

253{
254 LPWSTR Ret = NULL;
255
257 {
258 Ret = wcscpy(lpString1, lpString2);
259 }
261 {
262 }
263 _SEH2_END;
264
265 return Ret;
266}
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)

◆ lstrlenA()

int WINAPI lstrlenA ( LPCSTR  lpString)

Definition at line 145 of file lstring.c.

146{
147 INT Ret = 0;
148
149 if (lpString == NULL)
150 return 0;
151
153 {
154 Ret = strlen(lpString);
155 }
157 {
158 }
159 _SEH2_END;
160
161 return Ret;
162}
int32_t INT
Definition: typedefs.h:58

Referenced by _ConvertAtoW(), _RTFGetToken(), _RunRemoteTest(), _SHStrDupAA(), _test_hkey_main_Value_A(), add_table_to_db(), ansi_to_unicode_list(), AVIFILE_CLSIDFromString(), basic_tests(), CertGetValidUsages(), check_file_data(), check_prop(), CM_Enumerate_Enumerators_ExA(), CM_Get_Class_Key_Name_ExA(), CM_Get_Class_Name_ExA(), CmdTrace(), compare_metadata(), convert_input_data(), ConvertINetMultiByteToUnicode(), copy_dll_file(), create_cab_file(), create_cdf_file(), create_execute(), create_file(), create_full_path(), create_inf_file(), create_test_files(), CRYPT_AddPrefixA(), CRYPT_AddPrefixAToW(), CRYPT_ExportPublicKeyInfoEx(), CRYPT_GetKeyName(), CryptRegisterOIDFunction(), dde_server_wndproc(), decodeAndCompareBase64_A(), dns_strdup_a(), DnsHostnameToComputerNameA(), DP_CalcSessionDescSize(), DP_CopySessionDesc(), dprintf(), EnumColorProfilesA(), Extract(), fdi_notify_extract(), file_in_list(), FILEDLG95_OnOpen(), find_prop_in_property(), FPropContainsProp(), get_directories(), get_progfiles_dir(), get_prop(), get_version_info(), GetHostnameFromCommand(), GetRequestAndWait(), heap_strdup(), HEAP_strdupA2W(), Imm32WideFromAnsi(), ATL::CA2AEX< t_nBufferLength >::Init(), ATL::CA2WEX< t_nBufferLength >::Init(), init_shfo_tests(), init_TCPIP_provider(), IntDrawState(), InternetCreateUrlA_test(), IntGetModuleInformation(), IntGrayString(), is_prefix_wa(), LISTVIEW_GetStringWidthT(), main(), MSI_RecordGetStringA(), msi_scrolltext_add_text(), multi_sz_lenA(), MultiByteToWideChar(), ntlm_AcceptSecurityContext(), ntlm_InitializeSecurityContextW(), ODBC_ReplicateODBCInstToRegistry(), ODBC_ReplicateODBCToRegistry(), parse_clr_metadata(), path_hook_proc(), PersistFile_Save(), PropCopyMore(), PropertyStorage_WritePropertyToStream(), PropVariantCopy(), register_coclasses(), register_key_defvalueA(), register_mediatypes_parsing(), RTFStrSave(), run_helper(), run_js_script(), s_str_struct_len(), scan_subkeys(), ScCopyProps(), ScRelocProps(), search_absolute_directory(), SECUR32_CalcNTLM2Subkey(), send_msg(), server_ddeml_callback(), set_component_path(), set_prop(), SetupDiGetDriverInfoDetailA(), SetupLogErrorA(), SHADD_create_add_mru_data(), SHAddToRecentDocs(), ShimLib_StringDuplicateA(), SHLWAPI_StrRChrHelperA(), SHOpenRegStream2A(), SHQueryValueExA(), SHRegSetPathA(), SQLInstall_strdup_multi(), SQLInstallTranslatorEx(), START_TEST(), StrRChrA(), StrRChrIA(), StrRStrIA(), test__hread(), test__lcreat(), test__lread(), test__snprintf(), test_appsearch(), test_appsearch_reglocator(), TEST_AssocQueryStringA(), test_authentication(), test_autocreation(), test_CertRDNValueToStrA(), test_cf_dataobject(), test_CoInternetParseIUri(), test_complicated_cookie(), test_copy(), test_CreateDirectoryA(), test_CreateThread_basic(), test_currentworkingdir(), test_dde_aw_transaction(), test_DdeCreateDataHandle(), test_DdeCreateStringHandleW(), test_ddeml_client(), test_decodeInt(), test_DoEnvironmentSubst(), test_DrawTextCalcRect(), test_edit_control_3(), test_edit_control_5(), test_editbox(), test_EM_GETHANDLE(), test_EM_GETTEXTLENGTHEX(), test_EnumObjects_and_CompareIDs(), test_ExpandEnvironmentStringsA(), test_ExtTextOut(), test_FDICopy(), test_fgetwc(), test_file_disposition_information(), test_file_write_read(), test_fileops(), test_find_file(), test_FoldStringA(), test_get_user_profile_dir(), test_get_value(), test_GetAcceptLanguagesA(), test_GetAttributesOf(), test_GetFinalPathNameByHandleA(), test_GetLongPathNameA(), test_GetPrinterData(), test_GetPrinterDataEx(), test_GetPrinterDriverDirectory(), test_GetPrivateProfileString(), test_GetProcessImageFileNameA(), test_GetRfc1766FromLcid(), test_getroletext(), test_GetSetEnvironmentVariableA(), test_getstring(), test_getstring_no_extra(), test_inffilelistA(), test_InitPathA(), test_InternetCanonicalizeUrlA(), test_InternetGetConnectedStateExA(), test_InternetQueryOptionA(), test_interthread_messages(), test_invariant(), test_IUri_GetPropertyLength(), test_lastusedsource(), test_LcidToRfc1766(), test_LCMapStringA(), test_load(), test_LocalizedNames(), test_longtextA(), test_LookupAccountName(), test_lookupPrivilegeName(), test_MRUListA(), test_MsiConfigureProductEx(), test_MsiEnumPatches(), test_MsiEnumPatchesEx_machine(), test_MsiEnumPatchesEx_usermanaged(), test_MsiEnumPatchesEx_userunmanaged(), test_MsiGetProductProperty(), test_MsiGetSourcePath(), test_MsiOpenProduct(), test_MsiProvideComponent(), test_MsiProvideQualifiedComponentEx(), test_MsiSourceListGetInfo(), test_multibyte_to_unicode_translations(), test_NameToStrConversionA(), test_OpenFile(), test_ParseURL(), test_PathAddBackslash(), test_PathAppendA(), test_PathCanonicalizeA(), test_PathCombineA(), test_PathCommonPrefixA(), test_PathFindExtensionA(), test_PathNameA(), test_pSetupGetField(), test_publish_sourcelist(), test_QueryFullProcessImageNameA(), test_readmode(), test_readwrite(), test_reg_delete_tree(), test_RegisterClipboardFormatA(), test_registerDefaultOIDFunction(), test_RemoveDirectoryA(), test_RpcServerUseProtseq(), test_RtlIsNameLegalDOS8Dot3(), test_RtlUnicodeToUTF8N(), test_set_provider_ex(), test_setdir(), test_SetupCopyOEMInf(), test_SetupGetFileCompressionInfoEx(), test_SetupGetTargetPath(), test_sh_new_link_info(), test_SHFormatDateTimeA(), test_shortlongsource(), test_simpleroundtrip(), test_sourcedir(), test_SplitShortPathA(), test_SQLGetInstalledDrivers(), test_UDS_SETBUDDYINT(), test_updown_create(), test_url_combine(), test_UrlApplyScheme(), test_UrlCanonicalizeA(), test_URLSubRegQueryA(), test_ValidPathA(), test_VerQueryValueA(), test_WM_GETTEXT(), test_WM_GETTEXTLENGTH(), test_WM_SETTEXT(), test_word_wrap(), Test_WSARecv(), test_XcvDataPort_ConfigureLPTPortCommandOK(), test_XcvDataPort_GetTransmissionRetryTimeout(), testAuth(), testGetModuleFileName(), testLoadLibraryEx(), testScreenBuffer(), testSignSeal(), textlenT(), threadFunc1(), thunk_PSecPkgInfoWToA(), translateinfstringex_test(), UlPropSize(), Utf8Convert_(), wine_dbgstr_propvariant(), WNetGetUniversalNameA(), write_string(), and WriteRegistryValue().

◆ lstrlenW()

int WINAPI lstrlenW ( LPCWSTR  lpString)

Definition at line 296 of file lstring.c.

297{
298 INT Ret = 0;
299
300 if (lpString == NULL)
301 return 0;
302
304 {
305 Ret = wcslen(lpString);
306 }
308 {
309 }
310 _SEH2_END;
311
312 return Ret;
313}
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)