Calls in Vista

Calls in Vista

Postby TimStone » Fri Oct 19, 2007 4:38 pm

In Windows XP I could call the computer address book with the command:

FUNCTION emswab( )
// Execute the program
SHELLEXECUTE( nil, "open", regEd("wab") )
RETURN nil

/* FUNCTION
FUNCTION
Description: Check registry for address book files
Date updated: 9/28/2007
Return Value: cVar2
*/
FUNCTION RegEd(cExt)

// Declare LOCAL variables
LOCAL nHandler := 0, cVar1, cVar2

// Find the registry values for an address book
cExt:=if(left(cExt,1)!=".","."+cExt,cExt)
RegOpenkey(HKEY_CLASSES_ROOT,"",@nHandler)
RegQueryValue(nHandler,cExt,@cVar1)
RegCloseKey(nHandler)
RegOpenKey(HKEY_CLASSES_ROOT,cVar1,@nHandler)
RegQueryValue(nHandler,"DefaultIcon",@cVar2)
RegCloseKey(nHandler)
cVar2 := SubStr(cVar2,1,LEN(cVar2)-3)

RETURN(cVar2)

This is no longer valid with Vista. Does anyone know what changes are necessary in Vista to call up the computer's address book ?

Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi, Willi Quintana and 112 guests