The HrCreateGatewayProfile function installs a MAPI profile for a gateway.
| Header file: | EXCHINST.H | 
| Library: | EXCHINST.LIB | 
HRESULT HrCreateGatewayProfile(
  LPSTR lpszServiceName, 
  LPSTR lpszProfileName  
);
 See Return Values.
You should be aware that a service does not require administrator privileges unless it is doing something that specifically requires those privileges.
HrMAPIProfileExists, HrRemoveProfile