Using my own program or others I can't get winsock to run when calling if the process is created with CreateProcessWithLogonW or CreateProcessAsUserW. It returns this error when I create the socket:
Service provider failed to initialize.
The requested service provider could not be loaded or initialized.
This error is returned if either a
service provider's DLL could not be
loaded (LoadLibrary failed) or the
provider's WSPStartup or NSPStartup
LoadUserProfile: Error Code 2.
Can't find file specified
AdjustTokenPrivs: Error Code 5. Access