Method and device for muting WMP assembly and player
A player and mute technology, applied in the field of players, can solve the problem of mute failure of WMP components, and achieve the effect of solving mute failure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Benefits of technology
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 The implementation flow of the WMP component mute method provided by Embodiment 1 of the present invention is shown, and the method process is described in detail as follows:
[0026] In step S101, the function of creating an instance object of WMP is called to create an object.
[0027] In this embodiment, the concrete process of calling WMP to create an instance object function to create an object includes:
[0028] Create a create instance object function (eg CreateInstance function), the created instance object function and the WMP create instance object function contain the same parameters;
[0029] The pointer to the function of creating an instance object of WMP is replaced with the pointer of the function of creating an instance object to complete the HooK of the function of creating an instance object in WMP.
[0030] The purpose of creating an instance object function in the HooK WMP in this embodiment is to make subsequent calls to the instance object
Embodiment 2
[0045] figure 2 The specific flow of the WMP component mute method provided by the second embodiment of the present invention is shown, and the method process is described in detail as follows:
[0046] In step S201, HooK DllGetClassObject function.
[0047] In this embodiment, the DllGetClassObject function is the derived function of the com component program. After receiving the object creation instruction, the com component library calls the DllGetClassObject function of the com component in the process to create the class factory object and returns the class factory pointer.
[0048] In step S202, it is judged whether the class factory object created by the DllGetClassObject function after the HooK is WMP, if the judgment result is "yes", then step S203 is executed, otherwise, the process ends.
[0049] In this embodiment, the parameters of the DllGetClassObject function are (REFCLSID, REFIID, void**). According to the REFCLSID, it is judged whether the currently created c
Embodiment 3
[0075] image 3 The composition structure of the device for muting the WMP component provided by the third embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0076] The WMP component mute device may be a software unit, a hardware unit or a combination of software and hardware running in each player, or it may be integrated into the player or the application system of the player as an independent pendant.
[0077] The WMP component muting device includes a calling unit 31 , a judging unit 32 and a muting unit 33 . Among them, the specific functions of each unit are as follows:
[0078] The calling unit 31 is used to call the function of creating an instance object of WMP to create an object;
[0079] A judging unit 32, configured to judge whether the object created by the function of creating an instance object called by the calling unit 31 is the first object;
[0
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap