Skip to content

Commit

Permalink
More markdown fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Aug 18, 2023
1 parent bdbdf18 commit f1daa6d
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 130 deletions.
44 changes: 4 additions & 40 deletions descriptions/file_information_class.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,71 +3,57 @@ Enumeration type `FILE_INFORMATION_CLASS` defines informational classes for File
### FileDirectoryInformation=1

* Action: `Query`

* Buffer size: *0x48*
* Structure: `FILE_DIRECTORY_INFORMATION`

* Function: `NtQueryDirectoryFile`

### FileFullDirectoryInformation

* Action: `Query`

* Buffer size: *0x48*
* Structure: `FILE_FULL_DIR_INFORMATION`

* Function: `NtQueryDirectoryFile`

### FileBothDirectoryInformation

* Action: `Query`

* Buffer size: *0x48*
* Structure: `FILE_BOTH_DIR_INFORMATION`

* Function: `NtQueryDirectoryFile`

### FileBasicInformation

* Action: `Query`

* Buffer size: *0x28*
* Structure: `FILE_BASIC_INFORMATION`

* Function: `NtQueryInformationFile`

* Action: `Set`
<!-- -->

* Action: `Set`
* Buffer size: *0x28*
* Structure: `FILE_BASIC_INFORMATION`

* Function: `NtSetInformationFile`

### FileStandardInformation

* Action: `Query`

* Buffer size: *0x18*
* Structure: `FILE_STANDARD_INFORMATION`

* Function: `NtQueryInformationFile`

### FileInternalInformation

* Action: `Query`

* Buffer size: *0x08*
* Structure: `FILE_INTERNAL_INFORMATION`

* Function: `NtQueryInformationFile`

### FileEaInformation

* Action: `Query`

* Buffer size: *0x04*
* Structure: `FILE_EA_INFORMATION`

* Function: `NtQueryInformationFile`

### FileAccessInformation
Expand All @@ -77,62 +63,50 @@ Enumeration type `FILE_INFORMATION_CLASS` defines informational classes for File
### FileNameInformation

* Action: `Query`

* Buffer size: *0x08+*
* Structure: `FILE_NAME_INFORMATION`

* Function: `NtQueryInformationFile`

### FileRenameInformation

* Action: `Set`

* Buffer size: *0x10*
* Structure: `FILE_RENAME_INFORMATION`

* Function: `NtSetInformationFile`

### FileLinkInformation

* Action: `Set`

* Buffer size: *0x10*
* Structure: `FILE_LINK_INFORMATION`

* Function: `NtSetInformationFile`

### FileNamesInformation

* Action: `Query`

* Buffer size: *0x10*
* Structure: `FILE_NAMES_INFORMATION`

* Function: `NtQueryDirectoryFile`

### FileDispositionInformation

* Action: `Set`

* Buffer size: *0x01*
* Structure: `FILE_DISPOSITION_INFORMATION`

* Function: `NtSetInformationFile`

### FilePositionInformation

* Action: `Query`

* Buffer size: *0x08*
* Structure: `FILE_POSITION_INFORMATION`

* Function: `NtQueryInformationFile`

* Action: `Set`
<!-- -->

* Action: `Set`
* Buffer size: *0x08*
* Structure: `FILE_POSITION_INFORMATION`

* Function: `NtSetInformationFile`

### FileFullEaInformation
Expand All @@ -150,10 +124,8 @@ Enumeration type `FILE_INFORMATION_CLASS` defines informational classes for File
### FileAllInformation

* Action: `Query`

* Buffer size: *0x68*
* Structure: `FILE_ALL_INFORMATION`

* Function: `NtQueryInformationFile`

### FileAllocationInformation
Expand All @@ -163,19 +135,15 @@ Enumeration type `FILE_INFORMATION_CLASS` defines informational classes for File
### FileEndOfFileInformation

* Action: `Set`

* Buffer size: *0x08*
* Structure: `FILE_END_OF_FILE_INFORMATION`

* Function: `NtSetInformationFile`

### FileAlternateNameInformation

* Action: `Query`

* Buffer size: *0x08+*
* Structure: `FILE_NAME_INFORMATION`

* Function: `NtQueryInformationFile`

### FileStreamInformation
Expand Down Expand Up @@ -213,10 +181,8 @@ Enumeration type `FILE_INFORMATION_CLASS` defines informational classes for File
### FileCompletionInformation

* Action: `Set`

* Buffer size: *0x08*
* Structure: `FILE_COMPLETION_INFORMATION`

* Function: `NtSetInformationFile`

### FileMoveClusterInformation
Expand All @@ -234,10 +200,8 @@ Enumeration type `FILE_INFORMATION_CLASS` defines informational classes for File
### FileNetworkOpenInformation

* Action: `Query`

* Buffer size: *0x38*
* Structure: `FILE_NETWORK_OPEN_INFORMATION`

* Function: `NtQueryInformationFile`

### FileObjectIdInformation
Expand Down
8 changes: 0 additions & 8 deletions descriptions/fs_information_class.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,48 @@
### FileFsVolumeInformation

* Action: `Query`

* Buffer size: *0x18*
* Structure: `FILE_FS_VOLUME_INFORMATION`

### FileFsLabelInformation

* Action: `Set`

* Buffer size: *0x08*
* Structure: `FILE_FS_LABEL_INFORMATION`

### FileFsSizeInformation

* Action: `Query`

* Buffer size: *0x18*
* Structure: `FILE_FS_SIZE_INFORMATION`

### FileFsDeviceInformation

* Action: `Query`

* Buffer size: *0x08*
* Structure: `FILE_FS_DEVICE_INFORMATION`

### FileFsAttributeInformation

* Action: `Query`

* Buffer size: *0x10*
* Structure: `FILE_FS_ATTRIBUTE_INFORMATION`

### FileFsControlInformation

* Action: `Query, Set`

* Buffer size: *0x30, 0x30*
* Structure: `FILE_FS_CONTROL_INFORMATION`

### FileFsFullSizeInformation

* Action: `Query`

* Buffer size: *0x38*
* Structure: ???

### FileFsObjectIdInformation

* Action: `Set`

* Buffer size: *0x38*
* Structure: ???

Expand Down
11 changes: 0 additions & 11 deletions descriptions/ntcreatefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ Name of file to create (or open), optionally path in name string. You can also d
Pointer to `IO_STATUS_BLOCK` structure, that receive final status of function call. Can be one of:

* `FILE_CREATED`

* `FILE_OPENED`
* `FILE_OVERWRITTEN`

* `FILE_SUPERSEDED`
* `FILE_EXISTS`

* `FILE_DOES_NOT_EXIST`

### AllocationSize
Expand All @@ -39,24 +36,19 @@ File size after creation.
Attributes for newly created file, as follows:

* `FILE_ATTRIBUTE_READONLY`

* `FILE_ATTRIBUTE_HIDDEN`
* `FILE_ATTRIBUTE_SYSTEM`

* `FILE_ATTRIBUTE_ARCHIVE`
* `FILE_ATTRIBUTE_NORMAL`

* `FILE_ATTRIBUTE_TEMPORARY`
* `FILE_ATTRIBUTE_OFFLINE`

* `FILE_ATTRIBUTE_NOT_CONTENT_INDEXED`

### ShareAccess

Specifies share method for opened object. Can be set to zero or any combination of flags:

* `FILE_SHARE_READ`

* `FILE_SHARE_WRITE`
* `FILE_SHARE_DELETE`

Expand All @@ -65,13 +57,10 @@ Specifies share method for opened object. Can be set to zero or any combination
Specifies disposition how to create or open object and can be one of:

* `FILE_SUPERSEDE` - If file exists, deletes it before creation of new one.

* `FILE_OPEN` - Fails, if file not exists.
* `FILE_CREATE` - Fails, if file exists.

* `FILE_OPEN_IF` - If file exists, opens it. If not, creates new one and then open it.
* `FILE_OVERWRITE` - If file not exists, create and open it. If exists, open them and reset content.

* `FILE_OVERWRITE_IF` - As `FILE_OVERWRITE`, but fails if file not exists.

### CreateOptions
Expand Down
1 change: 0 additions & 1 deletion descriptions/ntcreateiocompletion.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Result of call - `HANDLE` to newly created IO Completion Object.
Access mask for created `HANDLE`. Can be combination of:

* `IO_COMPLETION_QUERY_STATE`

* `IO_COMPLETION_MODIFY_STATE`
* `IO_COMPLETION_ALL_ACCESS`

Expand Down
1 change: 0 additions & 1 deletion descriptions/ntcreatemailslotfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ IO result of call.
Can be combination of:

* `FILE_WRITE_THROUGH`

* `FILE_SYNCHRONOUS_IO_ALERT`
* `FILE_SYNCHRONOUS_IO_NONALERT`

Expand Down
6 changes: 0 additions & 6 deletions descriptions/ntcreatenamedpipefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ Result of call - pointer to `HANDLE` to Named Pipe.
Access rights for object's handle. Can be one or combination of:

* `FILE_READ_DATA`

* `FILE_WRITE_DATA`
* `FILE_CREATE_PIPE_INSTANCE`

* `FILE_READ_ATTRIBUTES`
* `FILE_WRITE_ATTRIBUTES`

* `SYNCHRONIZE`
* `READ_CONTROL`

* `WRITE_OWNER`
* `WRITE_DAC`

* `ACCESS_SYSTEM_SECURITY`
Also combination of Generic rights are supported.

Expand All @@ -39,7 +34,6 @@ IO result of call.
Can be combination of following:

* `FILE_SHARE_READ`

* `FILE_SHARE_WRITE`
* `FILE_SHARE_DELETE`

Expand Down
10 changes: 0 additions & 10 deletions descriptions/ntcreatesection.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ Result of call - `HANDLE` to Section Object.
Access mask. Can be combination of:

* `SECTION_QUERY`

* `SECTION_MAP_WRITE`
* `SECTION_MAP_READ`

* `SECTION_MAP_EXECUTE`
* `SECTION_EXTEND_SIZE`

* `SECTION_ALL_ACCESS`

### ObjectAttributes
Expand All @@ -35,19 +32,14 @@ Optionally define maximum size of section. Must be defined when caller create se
Can be one or combination of:

* `PAGE_NOACCESS`

* `PAGE_READONLY`
* `PAGE_READWRITE`

* `PAGE_WRITECOPY`
* `PAGE_EXECUTE`

* `PAGE_EXECUTE_READ`
* `PAGE_EXECUTE_READWRITE`

* `PAGE_EXECUTE_WRITECOPY`
* `PAGE_GUARD`

* `PAGE_NOCACHE`
* `PAGE_WRITECOMBINE`

Expand All @@ -56,10 +48,8 @@ Can be one or combination of:
Can be one or combination of:

* `SEC_FILE`

* `SEC_IMAGE`
* `SEC_RESERVE`

* `SEC_COMMIT`
* `SEC_NOCACHE`

Expand Down
1 change: 0 additions & 1 deletion descriptions/ntcreatesemaphore.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Result of call - pointer to `HANDLE` to Semaphore Object.
Access rights to Semaphore Object. Can be one of:

* `SEMAPHORE_QUERY_STATE`

* `SEMAPHORE_MODIFY_STATE`
* `SEMAPHORE_ALL_ACCESS`

Expand Down
Loading

0 comments on commit f1daa6d

Please sign in to comment.