CN1790263B - Mobile memory device and its icon changing method - Google Patents

Mobile memory device and its icon changing method Download PDF

Info

Publication number
CN1790263B
CN1790263B CN 200410077498 CN200410077498A CN1790263B CN 1790263 B CN1790263 B CN 1790263B CN 200410077498 CN200410077498 CN 200410077498 CN 200410077498 A CN200410077498 A CN 200410077498A CN 1790263 B CN1790263 B CN 1790263B
Authority
CN
China
Prior art keywords
storage device
icon
movable storage
application program
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 200410077498
Other languages
Chinese (zh)
Other versions
CN1790263A (en
Inventor
刘宇峰
向锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netac Technology Co Ltd
Original Assignee
Netac Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netac Technology Co Ltd filed Critical Netac Technology Co Ltd
Priority to CN 200410077498 priority Critical patent/CN1790263B/en
Publication of CN1790263A publication Critical patent/CN1790263A/en
Application granted granted Critical
Publication of CN1790263B publication Critical patent/CN1790263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a mobile storage equipment of mark self-changing, which is characterized by the following: building self-execution program according to its root catalog; depositing the mark file under the route; supplying power for the mobile storage equipment; modifying the relative button value of host system register graph as image file deposit path pattern through self-execution program; setting mark for mobile storage equipment display. The invention is easy to identify on the operational table, which solves the problem of simple mark and difficult identification and operation.

Description

Movable storage device and icon changing method thereof
Technical field
The present invention is about the mobile storage field, particularly about the demonstration and the change of drive icon.
Background technology
Development along with technology, the kind of consumption electronic products increases gradually, as personal digital camera, digital camera head, USB interface network interface card, movable storage device, MP3 player etc., the individual is more and more to the demand of computer plug-in device, the external interface that computer provides is also more and more, and former PC only provides single USB interface, is increased to two USB interface gradually, four USB interface also have the trend that continues increase.
Another aspect, development along with memory technology, the capacity of hard disk also more and more adds, from 1G, 10G, tens G, until G up to a hundred, still have the trend that continues increase, the hard disk of PC is along with the increase subregion of capacity also increases gradually, under this situation, after External memory equipment inserts computer, if it is single that operating system is distributed to the icon kind of movable storage device, particularly after inserting a plurality of movable storage devices, because of the icon of different movable storage devices identical, there is not significant difference, the user is easy to the drive that will show in the operating system platform and gets wrong with the actual memory device that inserts in use, produces maloperation.
In view of this, the movable storage device that provides a kind of icon independently to change is necessary in fact.
Summary of the invention
In order to solve the unicity problem of existing movable storage device, bring the be difficult to identification of operation, thereby be easy to cause the error of data manipulation, the movable storage device and the method that provide a kind of icon independently to change picture because of drive icon display in host computer system.
Movable storage device icon changing method provided by the invention, the root directory of movable storage device is created the program that automatically performs down, said method comprising the steps of: set up applications is in host side, this application program is described self or second executive routine that automatically performs program copy, and it is provided with the window that receives operation system information; Described window receives the message of the movable storage device access of operating system transmission, by the private information that reads, judge whether this equipment is the movable storage device of described application program correspondence, be in this way, then application program shows corresponding icon by function call on system tray, initiatively revise the relevant key assignments of the registration table of host operating system and deposit path and refresh operation system for what set icon.
Described method also comprises: described application program is after receiving the message that movable storage device removes, with the relevant key assignments deletion in the registration table.
Preferably, described application program is self or second executive routine that automatically perform program copy in the movable storage device.
Compared with prior art, movable storage device provided by the invention, its icon in host computer system can be selected or change by the user, mode by the setting individual icon, make movable storage device more easy to identify on the operating platform of host computer system, more convenient use, more personalized.
Description of drawings
Fig. 1 is the process flow diagram of movable storage device icon display of the present invention.
Embodiment
The movable storage device that icon provided by the invention can independently change, the user can define the icon of movable storage device in the host computer system platform voluntarily.By the mode of setting individual icon, as cartoon figure, animal figures, make this movable storage device of flash disk more easy to identify on the operating platform of host computer system, more convenient use more has personalized sex character.
The marker method of the icon of movable storage device provided by the invention is mainly by the installation one application program realization in host side, for example the Windows OS series of Microsoft.By the application program of this resident Windows system, this application program has a window that can receive the Windows system information.
On the Windows of Microsoft operating system, when operating system detects new movable storage device, or other storage medium, during insertion, operating system can send the message that a mobile device inserts to the window of each application program, the application program of the resident Windows system that the present invention realizes can detect this message too, application program is after receiving this message, just can obtain the equipment handle of corresponding access device, and can carry out the physics read-write to equipment, by reading the private information that the device data that defines the address obtains equipment.By the private information that reads, judge whether this equipment is the movable storage device of software correspondence, if the movable storage device of software correspondence, then call the path of depositing of related setting icon, on system tray, show corresponding icon, described icon can be defined voluntarily by the user, so that the convenience of identification.
The method of user definition movable storage device icon realizes by the way of revising windows registry, KEY_LOCAL_MACHINE on the Windows operating system SOFTWARE Microsoft Windows CurrentVersion Explorer content under this key assignments of DriveIcons be to come some corresponding drive characteristics values with drive, if some characteristic is arranged such as the C dish, then can under this key assignments, find this corresponding key assignments of C, and under this corresponding key assignments of C, also have some to define the key assignments of characteristic, just defined the acquiescence label value of disk such as DefaultLabel, DefaultIcon has then defined the default icon of disk, and the content of this key assignments is the path of depositing of icon file.The application program that the present invention realizes can be when receiving the message that movable storage device inserts and being judged to be corresponding movable storage device, creating or revise corresponding key assignments in registration table is user-defined icon, realize the change of drive icon, and after change, call the API of this system of SHChangeNotify and come instant updating system, change is come into force.Application program with the deletion of the corresponding key assignments in the registration table, has also been used the situation of the icon of software definition to prevent the user under the identical situation of the drive that is assigned to when inserting other movable storage device when receiving that movable storage device removes.
The sign process of the icon of movable storage device can realize that the technical scheme of relevant operation automatically is referring to the patented claim of number of patent application 03146090.9 by automatic running technology.
By under the root directory of movable storage device, creating the Autorun.inf file, and insert [AUTORUN] Icon=<Icon file path therein 〉, wherein<and Icon file path〉be the path of the icon file of movable storage device, when movable storage device inserts host computer system, be installed in the program start that automatically performs in the memory device.
In automatically performing running program running process, can eject a dialog box points out the user to select the icon that shows, and set a time restriction, for example 3 seconds, if in the time restriction that limits, the user does not select, and then uses the icon set of preserving before or uses default icon (first situation about using).Certainly, also can open dialog box, change and preserve, select by the user and needn't only after movable storage device inserts main frame, eject dialog box by the mode that the user clicks the small icon that occurs on the system tray to the change of icon.
See also the icon change process flow diagram of movable storage device shown in Figure 1, at first, movable storage device powers on 10, just movable storage device is inserted host computer system; That secondly, preserves in the movable storage device automatically performs program run 20; Then, automatically perform program and be used for being implemented in system tray place demonstration one acquiescence or user-defined small icon by Shell_NotifyIcon () function call; Then, revise registration table key assignments 40, just the content of DefaultIcon key assignments is changed to the path of the icon file of user's appointment, the icon under this path can be the icon that default icon or user select; At last, automatically perform routine call function S HChangeNotify () refresh operation system window, new icon manifests.
See also Fig. 1 again, implementation according to autorun, this automatically performs program also can be by copying to another working procedure a certain position in the host computer system, step 22 as shown in Figure 1, abbreviate the operation of second working procedure as, by the operation of second working procedure, revise the DefaultIcon key assignments in the registration table then.The detailed operational process of second working procedure is described below.
After second working procedure starts, at first determine memory device 24, promptly be which memory device has started oneself (how starting this working procedure), the process of searching is to show to realize by reading memory device I IR, obtaining after to be which disk startup own, also just obtain simultaneously the drive and the handle of this dish, at this moment program is at first passed through the path of the icon file in Shell_NotifyIcon () the function call movable storage device, show a small icon at the system tray place, the icon that this icon can be default icon or selected by the user, and icon file still leaves in the movable storage device, can can pop-up window after the user by clicking this icon, change icon; And then program is changed the icon of movable storage device by the method for revising registration table; Final program calls SHChangeNotify () function and refreshes the Windows window, and new icon is manifested.
After finishing these operations, second working procedure is in sleep state always, up to the message of receiving that flash disk removes.Receive remove message after, the content of the second running modification registration table removes the icon setting of corresponding drive, and then the small icon of coming removal system pallet place by Shell_NotifyIcon (), final program is closed oneself, has finished whole flow process.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; to some improvements and modifications that the present invention did, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (2)

1. a movable storage device icon changing method is created under the root directory of described movable storage device and is automatically performed program, it is characterized in that, may further comprise the steps:
Set up applications is in host side, and this application program is described self or second executive routine that automatically performs program copy, and it is provided with the window that receives operation system information;
Described window receives the message that movable storage device that operating system sends inserts, and by the private information that reads, judges whether this equipment is the movable storage device of described application program correspondence, if, application program then
On system tray, show corresponding icon by function call;
The relevant key assignments of initiatively revising the registration table of host operating system is the path of depositing of setting icon; The refresh operation system.
2. movable storage device icon changing method according to claim 1 is characterized in that, described method also comprises: described application program is after receiving the message that movable storage device removes, with the relevant key assignments deletion in the registration table.
CN 200410077498 2004-12-13 2004-12-13 Mobile memory device and its icon changing method Active CN1790263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410077498 CN1790263B (en) 2004-12-13 2004-12-13 Mobile memory device and its icon changing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410077498 CN1790263B (en) 2004-12-13 2004-12-13 Mobile memory device and its icon changing method

Publications (2)

Publication Number Publication Date
CN1790263A CN1790263A (en) 2006-06-21
CN1790263B true CN1790263B (en) 2010-05-26

Family

ID=36788157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410077498 Active CN1790263B (en) 2004-12-13 2004-12-13 Mobile memory device and its icon changing method

Country Status (1)

Country Link
CN (1) CN1790263B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4912214B2 (en) * 2006-07-25 2012-04-11 キヤノン株式会社 Information processing apparatus and object display method
US7966039B2 (en) * 2007-02-02 2011-06-21 Microsoft Corporation Bidirectional dynamic offloading of tasks between a host and a mobile device
CN101706724B (en) * 2009-09-29 2012-11-14 宇龙计算机通信科技(深圳)有限公司 Icon generation method and icon processing device
CN103677716A (en) * 2013-12-13 2014-03-26 广州金山网络科技有限公司 Disk signature display method and device
CN111198830B (en) * 2019-11-22 2021-08-10 广州视源电子科技股份有限公司 Identification method and device of mobile storage equipment, electronic equipment and storage medium
CN114327729A (en) * 2021-12-30 2022-04-12 珠海豹趣科技有限公司 Stable system icon replacement method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1485787A (en) * 2002-09-24 2004-03-31 联想(北京)有限公司 Memory card identification method and marking equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1485787A (en) * 2002-09-24 2004-03-31 联想(北京)有限公司 Memory card identification method and marking equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢勇.电脑图标常用常新.软件世界.2004,36-37. *

Also Published As

Publication number Publication date
CN1790263A (en) 2006-06-21

Similar Documents

Publication Publication Date Title
WO2005086365A1 (en) Portable universal data storage device
TW200529004A (en) Method and apparatus for operating a host computer from a portable apparatus
JP2007514217A (en) Data exchange method between data processing apparatus and computer
CN102521289B (en) File synchronization method, device and system
CN107870769A (en) The installation method and device of operating system
CN104679540A (en) Computer system and computer system starting method
CN107463345A (en) Control method and storage medium
CN101105754A (en) Method for modifying computer system boot-strap picture
CN107908340A (en) Method, mobile terminal and the device with store function of factory reset
CN1790263B (en) Mobile memory device and its icon changing method
JPH11154137A (en) Individual work environment setting system
CN102122248B (en) Method for managing wire clip software of communication equipment
CN108345477A (en) A kind of double-mirror shares the design method and device of conf partitioned files
CN101873217A (en) Ethernet power supply equipment restart control method and device thereof
US20100211699A1 (en) Wireless access apparatus with firmware upgrading function and the method thereof
CN106371879A (en) Method and system for shielding non-deletable application of mobile terminal
US6708229B2 (en) Configuring computer components
TW201032048A (en) Network adapter, method & computer program product
JP6233027B2 (en) Library device and storage medium initialization program
CN104834549B (en) The application file update method and device of mobile terminal
CN111782474A (en) Log processing method and device, electronic equipment and medium
CN101187882A (en) Computer system for supporting multi-operation system and method for supporting multi-operation system
CN108093393A (en) A kind of Universal Integrated Circuit Card and the management method applied thereon
US20080004857A1 (en) Restoring base configuration on software testing computer
US8898421B2 (en) Electronic device for providing self-adapting services depending on the platform of the host equipment with which it is connected

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant