ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE,IBBUS_SERV_KEY,0,KEY_SET_VALUE | KEY_QUERY_VALUE ,reg_handle);\r
if (ERROR_SUCCESS != ret)\r
{\r
- printf("reg_ibbus_pkey_show error = %d\n",GetLastError());\r
return 0;\r
} \r
\r
ret = RegQueryValueEx(*reg_handle,"PartitionKey",NULL,NULL,(LPBYTE)partKey,&read_length);\r
if (ERROR_MORE_DATA == ret)\r
{\r
- printf("reg_ibbus_pkey_show : more buffer space required\n");\r
retval = 0;\r
break;\r
}\r
\r
if (ERROR_SUCCESS != ret)\r
{\r
- printf("RegQueryValueEx : Error %d\n",ret);\r
retval = 0;\r
break;\r
}\r
if(! pkey->pkey_num)\r
{\r
/* nothing to delete */\r
- printf("No pkey found to remove\n");\r
+ printf("Nothing to remove\n");\r
retval = 1;\r
break;\r
}\r
ret = RegSetValueEx(reg_handle,"PartitionKey",0,REG_SZ,(BYTE*)newKey, (DWORD)strlen(newKey));\r
if (ERROR_SUCCESS != ret)\r
{\r
- printf("reg_ibbus_pkey_add RegSetValueEx error = %d\n",GetLastError());\r
+ printf("registry operation failed error = %d\n",GetLastError());\r
retval = 1;\r
break;\r
}\r
LONG ret;\r
if(!input)\r
{\r
- printf("create_ipoib_pdo : invalid input parameter\n");\r
+ printf("invalid input parameter\n");\r
return FALSE;\r
}\r
\r
else if(input->u.guid_pkey.action == pkey_rem)\r
result = reg_ibbus_pkey_rem((unsigned __int16*)input->u.guid_pkey.pkeys, input->u.guid_pkey.pkey_num, &pkeys);\r
else if(input->u.guid_pkey.action == pkey_show)\r
- result = reg_ibbus_print_pkey();\r
+ { \r
+ reg_ibbus_print_pkey();\r
+ return TRUE;\r
+ }\r
else\r
printf("Invalid command to part_man.exe\n");\r
\r
}\r
else\r
{\r
- printf("reg_ibbus_pkey_add RegSetValueEx error = %d\n",GetLastError());\r
+ printf("registry operation failed = %d\n",GetLastError());\r
}\r
}\r
}\r