ReactOS 0.4.15-dev-7889-g76290a6
fxstring.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxString.cpp
8
9Abstract:
10
11 This module implements a simple string class to operate on
12 unicode strings.
13
14Author:
15
16
17
18Environment:
19
20 Both kernel and user mode
21
22Revision History:
23
24--*/
25
26#include "fxsupportpch.hpp"
27
29 __in PFX_DRIVER_GLOBALS FxDriverGlobals
30 ) :
31 FxObject(FX_TYPE_STRING, sizeof(FxString), FxDriverGlobals)
32{
35}
36
38{
41 }
42}
43
48 )
49{
53}
54
59 )
60
61{
63
65
66 return Assign(&string);
67}
LONG NTSTATUS
Definition: precomp.h:26
VOID MarkPassiveDispose(__in FxObjectLockState State=ObjectLock)
Definition: fxobject.hpp:944
__inline PFX_DRIVER_GLOBALS GetDriverGlobals(VOID)
Definition: fxobject.hpp:734
UNICODE_STRING m_UnicodeString
Definition: fxstring.hpp:36
~FxString()
Definition: fxstring.cpp:37
FxString(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
Definition: fxstring.cpp:28
_Must_inspect_result_ NTSTATUS Assign(__in PCWSTR SourceString)
Definition: fxstring.cpp:57
#define __in
Definition: dbghelp.h:35
#define NULL
Definition: types.h:112
@ ObjectDoNotLock
Definition: fxobject.hpp:128
void FxPoolFree(__in_xcount(ptr is at an offset from AllocationStart) PVOID ptr)
Definition: wdfpool.cpp:361
@ FX_TYPE_STRING
Definition: fxtypes.h:52
char string[160]
Definition: util.h:11
#define _Must_inspect_result_
Definition: ms_sal.h:558
_Out_ _Inout_ POEM_STRING _In_ PCUNICODE_STRING SourceString
Definition: rtlfuncs.h:1910
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
_Must_inspect_result_ NTSTATUS FxDuplicateUnicodeString(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in const UNICODE_STRING *Source, __out PUNICODE_STRING Destination)
Definition: stringutil.cpp:180
const uint16_t * PCWSTR
Definition: typedefs.h:57
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList