In message #4 of this thread: http://www.powerbasic.com/support/pb...ad.php?t=39228
Dave Biggs posted the following code (and more). (I added the Bold Underline for emphasis and focus in this message.)
My question pertains specifically to the GUID number in the IF:
How did Dave know that this GUID would get him the IE entries? If I had to create a similar routine, how would I know what GUID would return a specific entry?
Dave Biggs posted the following code (and more). (I added the Bold Underline for emphasis and focus in this message.)
Code:
Function FindIEinReg()As String Local hKey As Dword Local zData1 As Asciiz * %MAX_PATH Local zData2 As Asciiz * %MAX_PATH Local sTest, sTest2 As String 'Test Registry entry for IExplore.. If RegOpenKeyEx(%HKEY_CLASSES_ROOT,"CLSID\[B][U]{0002DF01-0000-0000-C000-000000000046}[/U][/B]\LocalServer32", _ ByVal %Null, %KEY_READ, hKey) = %ERROR_SUCCESS Then RegQueryValueEx hKey, "", ByVal %Null, ByVal %Null, ByVal VarPtr(zData1), %MAX_PATH RegCloseKey hKey ExpandEnvironmentStrings ByVal VarPtr(zData1), ByVal VarPtr(zData2), %MAX_PATH End If Function = zData2 End Function '------------------/FindIEinReg
How did Dave know that this GUID would get him the IE entries? If I had to create a similar routine, how would I know what GUID would return a specific entry?
Comment