libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
FILE_NETWORK_OPEN_INFORMATION.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include "FILE_INFORMATION.hh"
19
21
22namespace introvirt {
23namespace windows {
24namespace nt {
25
27 public:
28 /* Getters */
29 virtual WindowsTime CreationTime() const = 0;
30 virtual WindowsTime LastAccessTime() const = 0;
31 virtual WindowsTime LastWriteTime() const = 0;
32 virtual WindowsTime ChangeTime() const = 0;
33 virtual uint64_t EndOfFile() const = 0;
34 virtual FILE_ATTRIBUTES FileAttributes() const = 0;
35
36 /* Setters - These change the values in the guest! */
37 virtual void CreationTime(WindowsTime time) = 0;
38 virtual void LastAccessTime(WindowsTime time) = 0;
39 virtual void LastWriteTime(WindowsTime time) = 0;
40 virtual void ChangeTime(WindowsTime time) = 0;
41 virtual void EndOfFile(uint64_t eof) = 0;
42 virtual void FileAttributes(FILE_ATTRIBUTES atts) = 0;
43
44 static std::unique_ptr<FILE_NETWORK_OPEN_INFORMATION> make_unique(const guest_ptr<void>& ptr);
45};
46
47} /* namespace nt */
48} /* namespace windows */
49} /* namespace introvirt */
Definition guest_ptr.hh:88
Helper class for the Windows time format.
Definition WindowsTime.hh:33
Definition FILE_ATTRIBUTES.hh:46
An abstract class reprseneting a more specific file information buffer.
Definition FILE_INFORMATION.hh:38
virtual guest_ptr< void > ptr() const =0
Get the address that the buffer is at.
Definition FILE_NETWORK_OPEN_INFORMATION.hh:26
virtual void LastWriteTime(WindowsTime time)=0
virtual void CreationTime(WindowsTime time)=0
static std::unique_ptr< FILE_NETWORK_OPEN_INFORMATION > make_unique(const guest_ptr< void > &ptr)
virtual void FileAttributes(FILE_ATTRIBUTES atts)=0
virtual void LastAccessTime(WindowsTime time)=0
virtual FILE_ATTRIBUTES FileAttributes() const =0
Core IntroVirt classes.
Definition Cr0.hh:20