MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / DeleteFile

Method DeleteFile

Source/Client/NM_Sys/API/FilesAPI.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78NTSTATUS FilesAPI::DeleteFile(LPCWSTR FilePath)
79{
80 UNICODE_STRING Path;
81 RtlInitUnicodeString(&Path, FilePath);
82
83 OBJECT_ATTRIBUTES ObjectAttributes;
84 InitializeObjectAttributes(&ObjectAttributes, &Path, OBJ_CASE_INSENSITIVE, NULL, NULL);
85
86 return ZwDeleteFile(&ObjectAttributes);
87}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected