| 103 | } |
| 104 | |
| 105 | NTSTATUS 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected