# US 2014/0207833 A1 · File opening method, apparatus, and terminal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0207833 A1
- Document ID: US20140207833A1
- Status: Published application
- Kind: A1
- Application number: 14/342,482
- Filed: 2012-06-14
- Published: 2014-07-24
- Earliest claimed: 2011-09-05
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Inventors: Fei Xie; Xiaoming Gao; Jinsong Ma; Guize Liu
- Web page: https://patentgrep.com/patent/US20140207833A1

## CPC

- G06F 16/10: File systems; File servers
- G06F 16/11: File system administration, e.g. details of archiving or snapshots (error detection or correction of the data by redundancy in operations G06F11/14)
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure, pertaining to the field of data processing technologies, discloses a file opening method, apparatus, and terminal. The method includes: capturing a file opening action, and acquiring a corresponding original file system device object and a corresponding original file system distribution function address; and directly sending a file opening request to a file system where the original file system device object is located, transferring the file opening request over the file system to an original file system distribution function corresponding to the original file system distribution function address, and performing a file opening operation by using the original file system distribution function. According to the present disclosure, a file opening request is directly sent to a file system where an original file system device object is located, and a file opening operation is performed by using an original file system distribution function.

## Claims

### Claim 1

A file opening method, comprising:
capturing a file opening action, and acquiring a corresponding original file system device object and a corresponding original file system distribution function address; and
directly sending a file opening request to a file system where the original file system device object is located, transferring the file opening request over the file system to an original file system distribution function corresponding to the original file system distribution function address, and performing a file opening operation by using the original file system distribution function.

### Claim 2 (depends on 1)

The method according to claim 1, wherein prior to the capturing a file opening action, the method further comprises:
searching for an import table of 32-bit dynamic link library files and replacing a function address stored in the import table with a preset function address;
correspondingly, the performing a file opening operation by using the original file system distribution function specifically comprises:
performing the file opening operation by using the original file system distribution function according to the preset function address replacing the original one.

### Claim 3 (depends on 1)

The method according to claim 1, wherein after the capturing a file opening action, the method further comprises:
recording a parameter corresponding to the file opening action;
wherein correspondingly, the performing a file opening operation by using the original file system distribution function specifically comprises:
performing the file opening operation by using the original file system distribution function according to the recorded parameter.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the acquiring a corresponding original file system device object specifically comprises:
by using a pre-written driver program, searching for the corresponding original file system device object in a volume parameter block (VPB) structure recording file system device objects.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the acquiring a corresponding original file system distribution function address specifically comprises:
starting a pre-written driver program in a BOOT manner, and acquiring the corresponding original file system distribution function address by using the pre-written driver program.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the directly sending a file opening request to a file system where the original file system device object is located specifically comprises:
using function IoCreateFileSpecifyDeviceObjectHint, and by using the original file system device object as a parameter, directly sending the file opening request to the file system where the original file system device object is located.

### Claim 7

A file opening apparatus, comprising:
a capturing module, configured to capture a file opening action;
a first acquiring module, configured to acquire a corresponding original file system device object after the capturing module captures the file opening action;
a second acquiring module, configured to acquire a corresponding original file system distribution function address after the capturing module captures the file opening action;
a sending module, configured to directly send a file opening request to a file system where the original file system device object acquired by the first acquiring module is located, and transfer the file opening request over the file system to an original file system distribution function corresponding to the original file system distribution function address acquired by the second acquiring module; and
an opening module, configured to perform a file opening operation by using the original file system distribution function.

### Claim 8 (depends on 7)

The apparatus according to claim 7, further comprising:
a replacing module, configured to search for an import table of 32-bit dynamic link library files and replace a function address stored in the import table with a preset function address;
wherein correspondingly, the opening module is specifically configured to perform the file opening operation by using the original file system distribution function according to the preset function address replacing the original one by the replacing module.

### Claim 9 (depends on 7)

The apparatus according to claim 7, further comprising:
a recording module, configured to record a parameter corresponding to the file opening action captured by the capturing module; and
wherein correspondingly, the opening module is specifically configured to perform the file opening operation by using the original file system distribution function according to the parameter recorded by the recording module.

### Claim 10 (depends on 7)

The apparatus according to claim 7, wherein the first acquiring module is specifically configured to, by using a pre-written driver program, search for the corresponding original file system device object in a volume parameter block (VPB) structure recording file system device objects.

### Claim 11 (depends on 7)

The apparatus according to claim 7, wherein the second acquiring module is specifically configured to start a pre-written driver program in a BOOT manner, and acquire the corresponding original file system distribution function address by using the pre-written driver program.

### Claim 12 (depends on 7)

The apparatus according to claim 7, wherein the sending module is specifically configured to use function IoCreateFileSpecifyDeviceObjectHint, and by using the original file system device object as a parameter, directly send the file opening request to the file system where the original file system device object is located.

### Claim 13

(canceled)

### Claim 14

A terminal, comprising a file opening apparatus,
the file opening apparatus comprising:
a capturing module, configured to capture a file opening action;
a first acquiring module, configured to acquire a corresponding original file system device object after the capturing module captures the file opening action;
a second acquiring module, configured to acquire a corresponding original file system distribution function address after the capturing module captures the file opening action;
a sending module, configured to directly send a file opening request to a file system where the original file system device object acquired by the first acquiring module is located, and transfer the file opening request over the file system to an original file system distribution function corresponding to the original file system distribution function address acquired by the second acquiring module; and
an opening module, configured to perform a file opening operation by using the original file system distribution function.

### Claim 15 (depends on 14)

The terminal according to claim 14, the file opening apparatus further comprising:
a replacing module, configured to search for an import table of 32-bit dynamic link library files and replace a function address stored in the import table with a preset function address;
wherein correspondingly, the opening module is specifically configured to perform the file opening operation by using the original file system distribution function according to the preset function address replacing the original one by the replacing module.

### Claim 16 (depends on 14)

The terminal according to claim 14, the file opening apparatus further comprising:
a recording module, configured to record a parameter corresponding to the file opening action captured by the capturing module; and
wherein correspondingly, the opening module is specifically configured to perform the file opening operation by using the original file system distribution function according to the parameter recorded by the recording module.

### Claim 17 (depends on 14)

The terminal according to claim 14, wherein the first acquiring module is specifically configured to, by using a pre-written driver program, search for the corresponding original file system device object in a volume parameter block (VPB) structure recording file system device objects.

### Claim 18 (depends on 14)

The terminal according to claim 14, wherein the second acquiring module is specifically configured to start a pre-written driver program in a BOOT manner, and acquire the corresponding original file system distribution function address by using the pre-written driver program.

### Claim 19 (depends on 14)

The terminal according to claim 14, wherein the sending module is specifically configured to use function IoCreateFileSpecifyDeviceObjectHint, and by using the original file system device object as a parameter, directly send the file opening request to the file system where the original file system device object is located.
