Discussion:
GetCurrentlyLoggedOnUser failed in remotesp.log
(too old to reply)
a***@googlemail.com
2015-02-23 21:52:36 UTC
Permalink
Hi all,
I'm using TAPI3 with julmar's itapi3 dll to do some Tapi things from c#. While calling tapi.initialize() I get an error in the trace of remotesp.log that GetCurrentlyLoggedOnUser failed. The tapi service runs as "local network service" (the only possible working option). I can create and answer calls and receive events but creating a conference or transfer a call fails.
I found out that the impersonation of the remotesp fails, error code 5 means there are user rights missing. I get the same errors if I start the application with admin rights and even if I use TB3x.

Can someone please give me a hint what's going wrong here? Thanks in advance!
André

[2832] 19:40:34:688: [TRACE] TSPI_providerEnumDevices: enter, prov ID: 0x6
[2832] 19:40:34:688: [INFO ] RpcServerUseProtseqEp(ncacn_ip_tcp) ret'd 1740
[2832] 19:40:34:688: [TRACE] TSPI_providerEnumDevices: calling CreateMailslot
[2832] 19:40:34:688: [TRACE] GetNextServer entered
[2832] 19:40:34:688: [INFO ] RegGetNextServer: Getting server 0 from reg
[2832] 19:40:34:688: [TRACE] GetNextServer exited
[2832] 19:40:34:688: [TRACE] GetNextServer entered
[2832] 19:40:34:688: [INFO ] RegGetNextServer: Getting server 1 from reg
[2832] 19:40:34:688: [INFO ] Got last server
[2832] 19:40:34:688: [TRACE] GetNextServer exited
[2832] 19:40:34:688: [INFO ] Closing directory lookup
[2832] 19:40:34:695: [TRACE] DsGetNextServer: ADsGetObject LDAP://xyz
[2832] 19:40:34:695: [TRACE] DsGetNextServer: GetObjectAttributes LDAP://CN=Telephony Service,CN=SERVER2012R2,OU=Domain Controllers,DC=xsigns,DC=local succeeded
[2832] 19:40:34:696: [INFO ] init: Server name='server2012r2'
[2832] 19:40:34:696: [INFO ] Creating binding...
[2832] 19:40:34:696: [INFO ] Calling ClientAttach...
[2832] 19:40:34:704: [INFO ] ClientAttach returned 0x0
[2832] 19:40:34:707: [INFO ] FinishEnumDevices: srv='server2012r2', lines=1, phones=0
[2412] 19:40:34:709: [INFO ] EventHandlerThread: enter
[2412] 19:40:34:709: [INFO ] ImpersonateCurrentlyLoggedInUser: shell is explorer.exe
[2412] 19:40:34:709: [INFO ] GetSystemProcesInfo: enlarging buffer to 73728
[2412] 19:40:34:710: [INFO ] GetSystemProcesInfo: enlarging buffer to 81920
[2412] 19:40:34:710: [INFO ] GetSystemProcesInfo: enlarging buffer to 90112
[2412] 19:40:34:710: [INFO ] GetSystemProcesInfo: enlarging buffer to 98304
[2412] 19:40:34:710: [INFO ] GetSystemProcesInfo: enlarging buffer to 106496
[2412] 19:40:34:711: [INFO ] GetSystemProcesInfo: enlarging buffer to 114688
[2412] 19:40:34:711: [INFO ] GetSystemProcesInfo: enlarging buffer to 122880
[2412] 19:40:34:711: [INFO ] GetSystemProcesInfo: enlarging buffer to 131072
[2412] 19:40:34:712: [INFO ] GetSystemProcesInfo: enlarging buffer to 139264
[2412] 19:40:34:712: [INFO ] GetSystemProcesInfo: enlarging buffer to 147456
[2412] 19:40:34:712: [ERROR] ImpersonateCurrentlyLoggedInUser: OpenProcess(x1370) failed (dwErr=5)
[2412] 19:40:34:712: [ERROR] GetCurrentlyLoggedOnUser failed
André Litfin
2015-02-23 22:19:30 UTC
Permalink
Sorry, forgot: OS Client: Win8.1 x64; OS Server: Win2012r2 x64

Loading...