1 // 2 // Copyright (C) Microsoft. All rights reserved. 3 // 4 #ifndef _STRINGUTIL_H_ 5 #define _STRINGUTIL_H_ 6 7 size_t 8 FxCalculateTotalStringSize( 9 __in FxCollectionInternal *StringCollection, 10 __in BOOLEAN Verify = FALSE, 11 __out_opt PBOOLEAN ContainsOnlyStrings = NULL 12 ); 13 14 size_t 15 FxCalculateTotalMultiSzStringSize( 16 __in __nullnullterminated PCWSTR MultiSz 17 ); 18 19 PWSTR 20 FxCopyMultiSz( 21 __out LPWSTR Buffer, 22 __in FxCollectionInternal* StringCollection 23 ); 24 25 _Must_inspect_result_ 26 NTSTATUS 27 FxDuplicateUnicodeString( 28 __in PFX_DRIVER_GLOBALS FxDriverGlobals, 29 __in const UNICODE_STRING* Source, 30 __out PUNICODE_STRING Destination 31 ); 32 33 _Must_inspect_result_ 34 PWCHAR 35 FxDuplicateUnicodeStringToString( 36 __in PFX_DRIVER_GLOBALS FxDriverGlobals, 37 __in const UNICODE_STRING* Source 38 ); 39 40 41 #endif // _STRINGUTIL_H_ 42