devInfo.cbSize = sizeof(SP_DEVINFO_DATA);\r
\r
OutputDebugString(\r
- TEXT("Checking for existance of IB Fabric Root device.\n") );\r
+ TEXT("[IbInstaller]Checking for existance of IB Fabric Root device.\n") );\r
\r
// Get all devices of the system class.\r
hDevList = SetupDiGetClassDevs( &GUID_CLASS_SYSTEM, 0, NULL, 0 );\r
bSuccess = SetupDiEnumDeviceInfo( hDevList, i++, &devInfo );\r
if( !bSuccess )\r
{\r
- OutputDebugString( TEXT("SetupDiEnumDeviceInfo failed.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]SetupDiEnumDeviceInfo failed.\n") );\r
break;\r
}\r
\r
{\r
// Device has no HW ID.\r
OutputDebugString(\r
- TEXT("SetupDiGetDeviceRegistryProperty failed.\n") );\r
+ TEXT("[IbInstaller]SetupDiGetDeviceRegistryProperty failed.\n") );\r
// Skip to the next.\r
bSuccess = TRUE;\r
continue;\r
\r
// The device is already installed.\r
SetupDiDestroyDeviceInfoList( hDevList );\r
- OutputDebugString( TEXT("IB Fabric Root device already exists.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]IB Fabric Root device already exists.\n") );\r
return ERROR_ALREADY_EXISTS;\r
\r
} while( bSuccess );\r
continue;\r
\r
// Found it!\r
- OutputDebugString( TEXT("Found our driver!\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]Found our driver!\n") );\r
return ERROR_SUCCESS;\r
\r
} while( bSuccess );\r
memset( &devInfo, 0, sizeof(SP_DEVINFO_DATA) );\r
devInfo.cbSize = sizeof(SP_DEVINFO_DATA);\r
\r
- OutputDebugString( TEXT("Creating IB Fabric Root device.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]Creating IB Fabric Root device.\n") );\r
\r
// Create a list for devices of the system class.\r
hDevList = SetupDiCreateDeviceInfoList( &GUID_CLASS_SYSTEM, NULL );\r
if( hDevList == INVALID_HANDLE_VALUE )\r
{\r
- OutputDebugString( TEXT("Failed to create dev info list.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]Failed to create dev info list.\n") );\r
return GetLastError();\r
}\r
\r
NULL, DICD_GENERATE_ID, &devInfo );\r
if( !bSuccess )\r
{\r
- OutputDebugString( TEXT("SetupDiCreateDeviceInfo failed.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]SetupDiCreateDeviceInfo failed.\n") );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return GetLastError();\r
}\r
if( !bSuccess )\r
{\r
OutputDebugString(\r
- TEXT("SetupDiSetDeviceRegistryProperty failed.\n") );\r
+ TEXT("[IbInstaller]SetupDiSetDeviceRegistryProperty failed.\n") );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return GetLastError();\r
}\r
SetupDiSetDeviceInstallParams( hDevList, &devInfo, &installParams );\r
if( !bSuccess )\r
{\r
- OutputDebugString( TEXT("SetupDiSetDeviceInstallParams failed.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]SetupDiSetDeviceInstallParams failed.\n") );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return GetLastError();\r
}\r
status = SelectDriver( hDevList, &devInfo, &drvInfo );\r
if( status != ERROR_SUCCESS )\r
{\r
- OutputDebugString( TEXT("Could not find driver.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]Could not find driver.\n") );\r
SetupDiDestroyDriverInfoList( hDevList, &devInfo, SPDIT_CLASSDRIVER );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return status;\r
bSuccess = SetupDiSetSelectedDevice( hDevList, &devInfo );\r
if( !bSuccess )\r
{\r
- OutputDebugString( TEXT("SetupDiSetSelectedDevice failed.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]SetupDiSetSelectedDevice failed.\n") );\r
SetupDiDestroyDriverInfoList( hDevList, &devInfo, SPDIT_CLASSDRIVER );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return GetLastError();\r
bSuccess = SetupDiSetSelectedDriver( hDevList, &devInfo, &drvInfo );\r
if( !bSuccess )\r
{\r
- OutputDebugString( TEXT("SetupDiSetSelectedDriver failed.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]SetupDiSetSelectedDriver failed.\n") );\r
SetupDiDestroyDriverInfoList( hDevList, &devInfo, SPDIT_CLASSDRIVER );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return GetLastError();\r
NULL, NULL, NULL );\r
if( !bSuccess )\r
{\r
- OutputDebugString( TEXT("SetupDiRegisterDeviceInfo failed.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]SetupDiRegisterDeviceInfo failed.\n") );\r
SetupDiDestroyDriverInfoList( hDevList, &devInfo, SPDIT_CLASSDRIVER );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return GetLastError();\r
bSuccess = SetupDiInstallDevice( hDevList, &devInfo );\r
if( !bSuccess )\r
{\r
- OutputDebugString( TEXT("SetupDiInstallDevice failed.\n") );\r
+ OutputDebugString( TEXT("[IbInstaller]SetupDiInstallDevice failed.\n") );\r
SetupDiDestroyDriverInfoList( hDevList, &devInfo, SPDIT_CLASSDRIVER );\r
SetupDiDestroyDeviceInfoList( hDevList );\r
return GetLastError();\r