Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for mapping logical device name to drive letter

A technology of logical device names and mapping methods, which is applied in the fields of instruments, electrical digital data processing, platform integrity maintenance, etc.

Inactive Publication Date: 2011-08-17
北京思创银联科技股份有限公司
View PDF1 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

So we need a conversion to convert the logical device name into a drive letter, but unfortunately, there is no such API (Application Program Interface, application programming interface) that can be called
Many security vendors do not use drive letters but use logical device names such as \Device\HarddiskVolume1, which brings great inconvenience to users

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for mapping logical device name to drive letter
  • Method for mapping logical device name to drive letter

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0023] figure 1 It is a flowchart of a mapping method from a logical device name to a drive letter in an embodiment of the present invention. Such as figure 1 As shown, the method includes the following steps:

[0024] S010: Initialize a character array variable, and assign the character array variable as the i-th symbolic link name. The i is an integer.

[0025] S020: Determine whether the symbolic link name corresponding to the character array variable is the n+1th symbolic link name, if so, exit; otherwise, execute the next step. Said n is an integer.

[0026] S100: Using the name of the symbolic link as a parameter, use the function InitializeObjectattributes to ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for mapping a logical device name to a drive letter, and mainly relates to the field of progress safety protection and file screening. The method comprises the following steps of: adopting symbolic link names as parameters, using a function, i.e. Initialize Object attributes, to carry out initialization to obtain OBJECT_ATTRIBUTES corresponding to the symbolic link names, and extracting the corresponding drive letter from the symbolic link names; using a function, i.e. Zw Open Symbolic Link Object, to adopt the OBJECT_ATTRIBUTES as parameters, to obtain a handle of the corresponding object; and inquiring the handle by using a function, i.e. Zw Query Symbolic Link Object, so as to obtain the logical device name corresponding to the symbolic link name, and preserving the corresponding relation between the logical device name and the drive letter. The method establishes the corresponding relation between the logical device name and the drive letter, thus being convenient for users.

Description

technical field [0001] The invention relates to the field of process safety protection and file filtering, in particular to a mapping method from a logical device name to a drive letter. Background technique [0002] In the process of process anti-killing (preventing the process to be protected from being closed by some malicious software), the ID (identity) of the process is obtained according to the process handle, and then the path of the process is obtained. When obtaining the process path, the PEB (Process Environment block, process environment block information) structure cannot be used to obtain the process path, because the process path obtained according to the PEB is sometimes empty when the task manager kills the process, so ZwQueryInformationProcess must be used to obtain the process path . The crux of the problem is that in the process path obtained through ZwQueryInformationProcess, the Dos device name with the drive letter "X:" (the symbolic link name is "\Do...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F21/00G06F21/50
Inventor 于晓军万雪松赵辰清
Owner 北京思创银联科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products