Creates a new credentials that will use the given credentials for resolution in the given domain. 
- Parameters
 - 
  
    | creds | The base credentials  | 
    | domainID | The domain. If unknown, use DOFOBJECTIDDOMAIN_BROADCAST. This should not be NULL. | 
  
   
- Returns
 - DOFCredentials A newly created DOFCredentials 
 
- Exceptions
 - 
  
    | NULL | is returned if an invalid parameter was detected, or the credentials could not be created.  | 
  
   
- Resource Management:
 - This function allocates resources that must later be freed by calling DOFCredentials_Destroy.