MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / DeleteFile

Method DeleteFile

Kernel-Bridge/API/FilesAPI.cpp:105–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105NTSTATUS FilesAPI::DeleteFile(LPCWSTR FilePath) {
106 UNICODE_STRING Path;
107 RtlInitUnicodeString(&Path, FilePath);
108
109 OBJECT_ATTRIBUTES ObjectAttributes;
110 InitializeObjectAttributes(
111 &ObjectAttributes,
112 &Path,
113 OBJ_CASE_INSENSITIVE,
114 NULL,
115 NULL
116 );
117
118 return ZwDeleteFile(&ObjectAttributes);
119}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected