Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Layered Service Provider - WSCInstallProvider problem!

Layered Service Provider - WSCInstallProvider problem!

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rat crown
    wrote on last edited by
    #1

    Hi, I got error code 10013 for the follow fuction. But I can't fix the problem, some body help , please!!! if(WSCInstallProvider( &filterguid, (unsigned short *)filter_path, &iplayerinfo, 1, &errorcode) == SOCKET_ERROR) { AfxMessageBox( "WSCInstallProvider Error : " + itos( errorcode ) ); return; }

    J 2 Replies Last reply
    0
    • R rat crown

      Hi, I got error code 10013 for the follow fuction. But I can't fix the problem, some body help , please!!! if(WSCInstallProvider( &filterguid, (unsigned short *)filter_path, &iplayerinfo, 1, &errorcode) == SOCKET_ERROR) { AfxMessageBox( "WSCInstallProvider Error : " + itos( errorcode ) ); return; }

      J Offline
      J Offline
      Jose Lamas Rios
      wrote on last edited by
      #2

      Just in case you haven't already read it, the following is from the documentation of Windows Sockets Error Codes[^] in MSDN:

      WSAEACCES 10013 Permission denied. An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt(SO_BROADCAST). Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4 SP4 or later), another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4 SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.

      See also: Windows Sockets Network Programming - Appendix C: Error Reference[^] Hope that helps, -- jlr http://jlamas.blogspot.com/[^]

      1 Reply Last reply
      0
      • R rat crown

        Hi, I got error code 10013 for the follow fuction. But I can't fix the problem, some body help , please!!! if(WSCInstallProvider( &filterguid, (unsigned short *)filter_path, &iplayerinfo, 1, &errorcode) == SOCKET_ERROR) { AfxMessageBox( "WSCInstallProvider Error : " + itos( errorcode ) ); return; }

        J Offline
        J Offline
        Jose Lamas Rios
        wrote on last edited by
        #3

        Besides, what's the type of filter_path? Why do you need a cast to (unsigned short*)? Hint: if filter_path is a char*, as I suspect, simply casting to (unsigned short*) won't work. -- jlr http://jlamas.blogspot.com/[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups