Let Media Player under Wince support multi-instance playback

xiaoxiao2021-03-05  26

Due to the need for the test, you must modify the media player CEPLAYER under WinCe to support the running multiple program instances.

CEPLAYER source code in% Winceroot% / Public / DirectX / SDK / Samples / WMP / CEPLAYER / below

CEPLAYER.CPP file is the main file of the application, the startup function WinMain is here

Variable BopenmultiPle Control Multi-instance

This line of code indicates RegQueryValueex (HKRESULT, L "Openmultiple", NULL, NULL, (LPBYTE) & BopenmultiPle, & DWSize); Query OpenMultiPle's key value in the registry, if 0, CEPLAYER will only run an instance, 1 can be Run multiple instances.

Solution:

Adding the following registry key by modifying the registry of the project in PB, add the following registry key in Project.REG

CEPLAYER OPEN MULTIPLE [HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / CePlayer] "OpenMultiple" = DWORD: 1

After Rebuild, CEPLAYER can support multiple instances.

ganrong

2005.4.19

转载请注明原文地址:https://www.9cbs.com/read-34261.html

New Post(0)