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