I'm sorry I can't understand what code you need related to scoks5. But you can get some code in the link for reference.
And if you have problems using the API, you can ask questions on this forum, and we will help you solve Windows API-related issues.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.