MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2GetProcessNameOffset

Function Ext2GetProcessNameOffset

Ext4Fsd/debug.c:190–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188} // Ext2NiPrintf()
189
190ULONG
191Ext2GetProcessNameOffset ( VOID )
192{
193 PEPROCESS Process;
194 ULONG i;
195
196 Process = PsGetCurrentProcess();
197
198 for (i = 0; i < PAGE_SIZE; i++) {
199 if (!strncmp(
200 SYSTEM_PROCESS_NAME,
201 (PCHAR) Process + i,
202 strlen(SYSTEM_PROCESS_NAME)
203 )) {
204
205 return i;
206 }
207 }
208
209 DEBUG(DL_ERR, ( ": *** FsdGetProcessNameOffset failed ***\n"));
210
211 return 0;
212}
213
214
215VOID

Callers 1

DriverEntryFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected