PC Review


Reply
Thread Tools Rate Thread

can't open socket in embedded that works on full XP

 
 
Michal Puczynski
Guest
Posts: n/a
 
      1st Jun 2005
I am trying to open a socket using winsock under limited account (non
admin, no power-user) with WSASocket. The protocol requirements are passed
thru WSAPROTOCOL_INFO structure requesting UDP + QOS + Multicast.
That results in choosing "RSVP UDP Service Provider".
Call to WSASocket fails with code 10091. Translation of code is: WSAStartup
cannot function at this time because the underlying system it uses to
provide network services is currently unavailable.
Creation works on admin account, works on any power-user account.
Works on any account under full Windows XP (home or pro), but failes on
embedded. I've setup auditing on objects and I got "SCManager, system
object, RSVP" requested privilage bit 4.
Services are working fine. Although RSVP is in manual-run state, but
changing it to automatic and making it run before I try to create socket is
not changing anything. Again, it works on full XP with any credentials
(admin, power user or simple user doesn't matter).

I also compared privileges of two running processes on XP embedded. Under
power-user and under limited account, no differences are present, although
power-user has more privileges those are disabled.

Any ideas where the problem lies?

Michal.
 
Reply With Quote
 
 
 
 
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
      1st Jun 2005
Michal,


You are probably missing some component with socket helper dll:
The easiest way to determine which one would be to use debuger in Visual Studio on your working XPP to determine what dll's are
loaded when you step over WSAStartup. Then use filter option in TD and find component(s) that contain needed dll's.

Also do you have component: ""Quality of Service RSVP"?

From SDK error 10091 is WSASYSNOTREADY:

Network subsystem is unavailable.
This error is returned by WSAStartup if the Windows Sockets implementation cannot function at this time because the underlying
system it uses to provide network services is currently unavailable. Users should check:

a.. That the appropriate Windows Sockets DLL file is in the current path.
b.. That they are not trying to use more than one Windows Sockets implementation simultaneously. If there is more than one Winsock
DLL on your system, be sure the first one in the path is appropriate for the network subsystem currently loaded.
c.. The Windows Sockets implementation documentation to be sure all necessary components are currently installed and configured
correctly.


Regards,
Slobodan





"Michal Puczynski" <michal.puczynski-remove-(E-Mail Removed)> wrote in message news:1ehnl43mpc8os$.(E-Mail Removed)...
> I am trying to open a socket using winsock under limited account (non
> admin, no power-user) with WSASocket. The protocol requirements are passed
> thru WSAPROTOCOL_INFO structure requesting UDP + QOS + Multicast.
> That results in choosing "RSVP UDP Service Provider".
> Call to WSASocket fails with code 10091. Translation of code is: WSAStartup
> cannot function at this time because the underlying system it uses to
> provide network services is currently unavailable.
> Creation works on admin account, works on any power-user account.
> Works on any account under full Windows XP (home or pro), but failes on
> embedded. I've setup auditing on objects and I got "SCManager, system
> object, RSVP" requested privilage bit 4.
> Services are working fine. Although RSVP is in manual-run state, but
> changing it to automatic and making it run before I try to create socket is
> not changing anything. Again, it works on full XP with any credentials
> (admin, power user or simple user doesn't matter).
>
> I also compared privileges of two running processes on XP embedded. Under
> power-user and under limited account, no differences are present, although
> power-user has more privileges those are disabled.
>
> Any ideas where the problem lies?
>
> Michal.



 
Reply With Quote
 
Michal Puczynski
Guest
Posts: n/a
 
      1st Jun 2005
On Wed, 1 Jun 2005 11:22:29 +0200, Slobodan Brcin (eMVP) wrote:

> Michal,
>
>
> You are probably missing some component with socket helper dll:


Cannot be the case as on the same machine with admin rights creation
succeeds.

Michal.
 
Reply With Quote
 
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
      1st Jun 2005
> Cannot be the case as on the same machine with admin rights creation
> succeeds.


You are right. I have no idea what could be wrong :-(

What SP do you use on XPe and XPP?

Regards,
Slobodan




 
Reply With Quote
 
Michal Puczynski
Guest
Posts: n/a
 
      1st Jun 2005
On Wed, 1 Jun 2005 14:45:59 +0200, Slobodan Brcin (eMVP) wrote:

>> Cannot be the case as on the same machine with admin rights creation
>> succeeds.

>
> You are right. I have no idea what could be wrong :-(
>
> What SP do you use on XPe and XPP?
>
> Regards,
> Slobodan


In both cases RSVP UDP Service Provider is used.
 
Reply With Quote
 
Slobodan Brcin \(eMVP\)
Guest
Posts: n/a
 
      1st Jun 2005
Michal,

> What SP do you use on XPe and XPP?


Sorry for confusion with SP. I ment whether you use same windows service pack on XPe and XPP. For instance SP2.

Regards,
Slobodan



"Michal Puczynski" <michal.puczynski-(E-Mail Removed)> wrote in message news:6pwg96jtkuf3$.(E-Mail Removed)...
> On Wed, 1 Jun 2005 14:45:59 +0200, Slobodan Brcin (eMVP) wrote:
>
> >> Cannot be the case as on the same machine with admin rights creation
> >> succeeds.

> >
> > You are right. I have no idea what could be wrong :-(
> >
> > What SP do you use on XPe and XPP?
> >
> > Regards,
> > Slobodan

>
> In both cases RSVP UDP Service Provider is used.



 
Reply With Quote
 
Michal Puczynski
Guest
Posts: n/a
 
      1st Jun 2005
On Wed, 1 Jun 2005 15:20:59 +0200, Slobodan Brcin (eMVP) wrote:

> Michal,
>
>> What SP do you use on XPe and XPP?

>
> Sorry for confusion with SP. I ment whether you use same windows service pack on XPe and XPP. For instance SP2.
>
> Regards,
> Slobodan
>

Oh, sorry. Both use SP2, I compared Winsock DLL's and provider DLL's, all
are the same (byte-by-byte the same).

Michal.
 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      2nd Jun 2005
Michal,

I'd also think that there are some problems for a limited user to start "QoS
RSVP" service but you mentioned you set it to Automatic (right?) and it
didn't help.
Make sure that the [HKLM\SYSTEM\CurrentControlSet\Services\RSVP\Security]
key exists (you may want to copy it from XP Pro machine).

If the above doesn't help I don't have any good idea about the error either.
Just to suggest a couple of dead-end options:
- Do you have "Network Command Shell Interface Context" and "Primitive:
Netcfgx" components included in your configuration?
- Use Dependency Walker Profiling feature to see (and compare to XPP) if
anything is NOT loaded while you launch you test app that makes a call to
WSAStartup.
- To finish with "missing dependency" investigation you can try
XPPRoEmulation image from www.xpefiles.com that has virtually every software
component from XPe database.
(there is also "not-my" SP2 version of the project which I cannot
comment on but I have my own SP2 version here and it is really easy to get
such if you upgrade the SP1 version of the project and add a couple of new
SP2 macro components).
- Did you try monitoring the WSAStartup API call with Regmon/Filemon
tools? I think it may be worth to compare the result log with the same call
on XP Pro machine.
- Have you tried "repairing" Winsock on your image? May sound silly on
XPe but still worth to try: "netsh winsock reset".

KM

> On Wed, 1 Jun 2005 15:20:59 +0200, Slobodan Brcin (eMVP) wrote:
>
>> Michal,
>>
>>> What SP do you use on XPe and XPP?

>>
>> Sorry for confusion with SP. I ment whether you use same windows service
>> pack on XPe and XPP. For instance SP2.
>>
>> Regards,
>> Slobodan
>>

> Oh, sorry. Both use SP2, I compared Winsock DLL's and provider DLL's, all
> are the same (byte-by-byte the same).
>
> Michal.




 
Reply With Quote
 
Michal Puczynski
Guest
Posts: n/a
 
      2nd Jun 2005
On Wed, 1 Jun 2005 22:03:37 -0700, KM wrote:

> Michal,
>
> I'd also think that there are some problems for a limited user to start "QoS
> RSVP" service but you mentioned you set it to Automatic (right?) and it
> didn't help.
> Make sure that the [HKLM\SYSTEM\CurrentControlSet\Services\RSVP\Security]
> key exists (you may want to copy it from XP Pro machine).
>

It is about security key. All our installations miss that. I checked french
version and english. Does not matter what type of installation was it (full
or limited). It looks like setup has problems.
BTW. Do you know how to modify security for services? Not by copying
byte-strings from registry?

Thanks for help.
Michal.
 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      3rd Jun 2005
Michal,

>> I'd also think that there are some problems for a limited user to start "QoS
>> RSVP" service but you mentioned you set it to Automatic (right?) and it
>> didn't help.
>> Make sure that the [HKLM\SYSTEM\CurrentControlSet\Services\RSVP\Security]
>> key exists (you may want to copy it from XP Pro machine).
>>

> It is about security key.


Did you check? Did adding the key help to fix the problem?

> All our installations miss that. I checked french
> version and english. Does not matter what type of installation was it (full
> or limited). It looks like setup has problems.
> BTW. Do you know how to modify security for services? Not by copying
> byte-strings from registry?


Well.. I'd recommend you to check with the byte copying first.
Also, what it says on the Log On page for the QoS RSVP service in Services UI (services.msc)?
There are some known issues on how to set up the logon security for a service data on XPe.

You can set up the service security and access rights with SCM APIs:
http://msdn.microsoft.com/library/de...ess_rights.asp
(QueryServiceObjectSecurity/SetServiceObjectSecurity, GetNamedSecurityInfo/SetNamedSecurityInfo). Some sample code for you:
http://msdn.microsoft.com/library/de..._a_service.asp.

Or use sc.exe tool (e.g.,type "sc sdshow RSVP" to see the security descriptor)

KM


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A calander embedded in Works or Word with Full moons and Holidays. =?Utf-8?B?TWFyeW1pc3Q=?= Microsoft Access 1 14th Apr 2005 06:18 AM
Socket Connect works on LAN but not WAN. George Mitchell Microsoft Dot NET Compact Framework 2 2nd Mar 2005 12:37 PM
Socket BeginSend/EndSend not sending full message =?Utf-8?B?S2VuIEZvc3Rlcg==?= Microsoft C# .NET 0 6th Oct 2004 07:31 AM
WMP doesnt open as a full screen but still works, please can someone help!!!? Mickel Windows XP Performance 0 29th Dec 2003 09:21 PM
Socket Send/Receive only works once Kitchen Bin Microsoft C# .NET 1 27th Sep 2003 07:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 AM.