accessing current profile

A

anujshailgupt

hi all,

i want to access the current profile of the handset using WM 5.0.

pls help me ....

thanx in advance...

Anuj
 
P

Peter Foot [MVP]

See the Microsoft.WindowsMobile.Status assembly, specifically SystemState
class PhoneProfile property.

Peter
 
A

anujshailgupt

See the Microsoft.WindowsMobile.Status assembly, specifically SystemState
class PhoneProfile property.

Peter

--
Peter Foot
Device Application Development MVPwww.peterfoot.net|www.inthehand.com










- Show quoted text -

hi peter,

below are my steps....
DWORD buf=0;
DWORD lp=1000;
LPDWORD dataType;
RegOpenKeyEx(HKEY_CURRENT_USER,_T("ControlPanel\\Profiles"),
0,0,&hkey);

RegQueryValueEx( hkey, TEXT("ActiveProfile"), 0, &dataType,
(LPBYTE)&buf, &lp);

m able to get the size of the profile value but not the name...

Anuj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top