Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete,

hope you are doing ok.. this is a strange problem i have, and hope you can shed some light on it.

I have a feature on my software (flightSim Manager) to launch FS with random splashscreen. I am using CreateProcess api to achieve this.

Problem is, in this method if WideServer is installed, it comes up with

Server socket() failed [Error=10106]

I know that this error code is from WinSock, however in this case it is releated to WideFS and security, as if I launch FS using Shell - it works fine.

For the SECURITY_ATTRIBUTES required for CreateProcess, I am passing NULL in which case it should the get the default security descriptor. Also, the file to execute (fs2002.exe for example) is passed as the commandline, where the applicationName is left as null.

Any ideas?

Posted

Problem is, in this method if WideServer is installed, it comes up with

Server socket() failed [Error=10106]

I know that this error code is from WinSock, however in this case it is releated to WideFS and security, as if I launch FS using Shell - it works fine.

Well, the error number is described as meaning "The requested service provider could not be loaded or initialized." according to the MSDN reference. What that really means I've no idea I'm afraid.

The "socket()" call is the first one used in trying to setup the service. The call I use is:

socket(AF_NS, SOCK_SEQPACKET, NSPROTO_SPX);

for IPX/SPX or

socket(AF_INET, SOCK_STREAM, 0);

for TCP/IP.

Hope that helps you. I really have no idea I'm afraid. Most all the code I use for Network stuff is lifted straight out of Microsoft examples. I don't necessarily understand it -- and expecialy not some of those obscure error descriptions. Sorry.

Regards,

Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.