#include "serenum.h"
#include <debug.h>
Go to the source code of this file.
◆ DuplicateUnicodeString()
Definition at line 141 of file misc.c.
145{
150 {
152 }
153
154
158 {
162 }
163 else
164 {
166
169
173
177
180 }
181
183}
#define ExAllocatePoolWithTag(hernya, size, tag)
#define RTL_DUPLICATE_UNICODE_STRING_ALLOCATE_NULL_STRING
#define RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE
_Out_ _Inout_ POEM_STRING _In_ PCUNICODE_STRING SourceString
_Out_ _Inout_ POEM_STRING DestinationString
unsigned short MaximumLength
#define RtlCopyMemory(Destination, Source, Length)
#define STATUS_INVALID_PARAMETER
_Must_inspect_result_ _In_ ULONG Flags
◆ ForwardIrpAndForget()
Definition at line 126 of file misc.c.
129{
131
135
138}
struct _FDO_DEVICE_EXTENSION * PFDO_DEVICE_EXTENSION
#define IoSkipCurrentIrpStackLocation(Irp)
_In_ PDEVICE_OBJECT DeviceObject
◆ ForwardIrpToAttachedFdoAndForget()
Definition at line 108 of file misc.c.
111{
114
117
120 TRACE_(SERENUM,
"Calling attached Fdo 0x%p\n",
Fdo);
123}
struct _PDO_DEVICE_EXTENSION * PPDO_DEVICE_EXTENSION
COMMON_DEVICE_EXTENSION Common
PDEVICE_OBJECT AttachedFdo
_Must_inspect_result_ _In_ WDFDEVICE Fdo
Referenced by IrpStub(), and SerenumPdoPnp().
◆ ForwardIrpToLowerDeviceAndForget()
Definition at line 90 of file misc.c.
93{
96
99
102 TRACE_(SERENUM,
"Calling lower device 0x%p\n", LowerDevice);
105}
PDEVICE_OBJECT LowerDevice
COMMON_DEVICE_EXTENSION Common
Referenced by IrpStub().
◆ SerenumInitMultiSzString()
Definition at line 18 of file misc.c.
21{
26 ULONG DestinationSize = 0;
28
30
31
35 {
40 }
42 if (DestinationSize == 0)
43 {
46 }
47
48
49 DestinationSize +=
sizeof(
WCHAR);
55
56
57
58
65 {
69 {
71 break;
72 }
78 }
81 {
82
85 }
87}
#define NT_SUCCESS(StatCode)
#define ExFreePoolWithTag(_P, _T)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ PUNICODE_STRING _Inout_ PUNICODE_STRING Destination
NTSYSAPI NTSTATUS NTAPI RtlAnsiStringToUnicodeString(PUNICODE_STRING DestinationString, PANSI_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
#define RtlAnsiStringToUnicodeSize(STRING)
#define STATUS_INSUFFICIENT_RESOURCES
Referenced by SerenumDetectLegacyDevice().