Dear all,
I am developing a remote tool using WINCE Platform Manager API and face
the following problem.
Scenario:
-VB code from samplesreg.vbs
Set platman = CreateObject("PlatformManager.PlatformManager.1")
Set package = platman.AddPackage (pkgName, pkgId)
-My equivalent VC++ code
CoInitializeEx(NULL, COINIT_MULTITHREADED);
IPMPlatformManager *PlatMan = NULL;
HRESULT hRes = CoCreateInstance(CLSID_PlatformManager,
NULL,
CLSCTX_LOCAL_SERVER,
IID_IPMPlatformManager,
(void**)&PlatMan);
IPMPackage* ppiPackage;
hRes = PlatMan->AddPackage( pPackageName,
NULL,
&ppiPackage);
-The above call to AddPackage() returns error
-Error code is 0xc0000005 which is not documented in winerror.h
-However, i can successfully call other fuctions of IPMPlatformManager
like
CreateGUID() and EnumPackages()
Questions:
1. Can anybody tell what is wrong with my implementation? Or, anything
more to be done?
2. I find two interfaces, IPlatformManager and IPMPlatformManager in
cemgr.h and all samples seem to be using IPlatformManager and not
IPMPlatformManager. What is the difference between the two interfaces?
3. Is it possible to add packages to Platform manager using
IPlatformManager interface?
Any help would be welcome.
Thanks in advance,
Aiswarya