This commit is contained in:
@@ -173,16 +173,16 @@ public class HostElement
|
||||
int profCount=0;
|
||||
String defaultProfileName=null;
|
||||
|
||||
Console.WriteLine("FireFox:Invoking FPM_GetProfileList:");
|
||||
//Console.WriteLine("FireFox:Invoking FPM_GetProfileList:");
|
||||
profCount=FPM_GetProfileList(out profileListIntPtr,out profileFlagsIntPtr);
|
||||
Console.WriteLine("FireFox:No of Profiles found= "+profCount);
|
||||
//Console.WriteLine("FireFox:No of Profiles found= "+profCount);
|
||||
|
||||
for(int i=0; i< profCount; i++)
|
||||
{
|
||||
profileName=Marshal.PtrToStringAnsi(profileListIntPtr[i]);
|
||||
profileFlag=(int)profileFlagsIntPtr[i];
|
||||
Console.WriteLine("FireFox:Iter="+i+"profileName="+profileName);
|
||||
Console.WriteLine("FireFox:Iter="+i+"profileFlag="+profileFlag);
|
||||
//Console.WriteLine("FireFox:Iter="+i+"profileName="+profileName);
|
||||
//Console.WriteLine("FireFox:Iter="+i+"profileFlag="+profileFlag);
|
||||
if(profileFlag==1)
|
||||
defaultProfileName=profileName; //Get the default profile name to init later
|
||||
}
|
||||
@@ -230,12 +230,12 @@ public class HostElement
|
||||
IntPtr hostListIntPtr = new IntPtr();
|
||||
try
|
||||
{
|
||||
Console.WriteLine("FireFox:Getting Data for profile "+profileName);
|
||||
//Console.WriteLine("FireFox:Getting Data for profile "+profileName);
|
||||
methodStatusCode=-1;
|
||||
methodStatusCode = FPM_GetSignonData(profileName,out hostListIntPtr,LOAD_PROFILE_ALWAYSFROM_FILE);
|
||||
if( 1 != methodStatusCode )
|
||||
{
|
||||
Console.WriteLine("FireFox:Getting Data for profile Failed with error "+methodStatusCode);
|
||||
//Console.WriteLine("FireFox:Getting Data for profile Failed with error "+methodStatusCode);
|
||||
hostList = null;
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ public class HostElement
|
||||
catch(Exception e)
|
||||
{
|
||||
Console.WriteLine("FireFox:Exception during invokation of FPM_GetSignonData");
|
||||
Console.WriteLine(e.ToString());
|
||||
//Console.WriteLine(e.ToString());
|
||||
hostList = null;
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ public class HostElement
|
||||
if (((String)Marshal.PtrToStringAnsi(hostList.hostName)) == null )
|
||||
{
|
||||
//TBD: Log that there are no secrets to aggregate
|
||||
Console.WriteLine("FireFox:no secrets to aggregate");
|
||||
//Console.WriteLine("FireFox:no secrets to aggregate");
|
||||
hostList = null;
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ public class HostElement
|
||||
{
|
||||
int methodStatusCode=-1;
|
||||
|
||||
Console.WriteLine("FireFox:UninitProfile for "+profileName);
|
||||
//Console.WriteLine("FireFox:UninitProfile for "+profileName);
|
||||
methodStatusCode=-1;
|
||||
methodStatusCode = FPM_FirefoxProfileExit(profileName);
|
||||
if( 1 != methodStatusCode )
|
||||
@@ -317,7 +317,7 @@ public class HostElement
|
||||
{
|
||||
int methodStatusCode=0;
|
||||
|
||||
Console.WriteLine("FireFox:isMasterPasswordSetFor "+profileName);
|
||||
//Console.WriteLine("FireFox:isMasterPasswordSetFor "+profileName);
|
||||
methodStatusCode = FPM_IsMasterPasswordSet(profileName);
|
||||
|
||||
return methodStatusCode;
|
||||
@@ -340,7 +340,7 @@ public class HostElement
|
||||
{
|
||||
int methodStatusCode=0;
|
||||
|
||||
Console.WriteLine("FireFox:checking MasterPassword for "+profileName);
|
||||
//Console.WriteLine("FireFox:checking MasterPassword for "+profileName);
|
||||
methodStatusCode = FPM_CheckMasterPassword(profileName,masterPassword);
|
||||
|
||||
return methodStatusCode;
|
||||
|
||||
Reference in New Issue
Block a user