version 1.7, 2001/06/16 17:30:38
|
version 1.15, 2002/01/17 05:33:49
|
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Sushma Fernandes (sushma_fernandes@hp.com) |
|
// |
|
// Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
return DynamicLibraryHandle(LoadLibrary(fileName)); | return DynamicLibraryHandle(LoadLibrary(fileName)); |
} | } |
| |
|
void System::unloadDynamicLibrary(DynamicLibraryHandle libraryHandle) |
|
{ |
|
FreeLibrary(HINSTANCE(libraryHandle)); |
|
} |
|
|
|
String System::dynamicLoadError(void) { |
|
return String(); |
|
} |
|
|
DynamicSymbolHandle System::loadDynamicSymbol( | DynamicSymbolHandle System::loadDynamicSymbol( |
DynamicLibraryHandle libraryHandle, | DynamicLibraryHandle libraryHandle, |
const char* symbolName) | const char* symbolName) |
|
|
(HINSTANCE)libraryHandle, symbolName)); | (HINSTANCE)libraryHandle, symbolName)); |
} | } |
| |
|
String System::getHostName() |
|
{ |
|
static char hostname[64]; |
|
|
|
if (!*hostname) |
|
gethostname(hostname, sizeof(hostname)); |
|
|
|
return hostname; |
|
} |
|
|
|
String System::getPassword(const char* prompt) |
|
{ |
|
//ATTN: Implement this method to get password from User with no echo |
|
// This is used in cimuser CLI |
|
String password("dummy"); |
|
|
|
return password; |
|
} |
|
|
|
String System::getCurrentLoginName() |
|
{ |
|
//ATTN: Implement this method to get the current login user name |
|
// This is used in local authentication. |
|
|
|
return String(); |
|
} |
|
|
|
String System::encryptPassword(const char* password, const char* salt) |
|
{ |
|
//ATTN: Implement this method to encrypt the password |
|
// This is used in User Manager |
|
return (String("dummy")); |
|
} |
|
|
|
Boolean System::isSystemUser(char* userName) |
|
{ |
|
//ATTN: Implement this method to verify if user is vaild on the local system |
|
// This is used in User Manager |
|
return true; |
|
} |
|
|
|
Boolean System::isPrivilegedUser() |
|
{ |
|
// ATTN: Implement this method to verify if user executing the current |
|
// command is a priviliged user |
|
// This is used in cimuser CLI |
|
return true; |
|
} |
|
|
|
Uint32 System::getPID() |
|
{ |
|
// ATTN: Implement this to get the process ID of the current process |
|
// This is used by the Tracer |
|
return 0; |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |