Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

How can I learn to use winapi in C ?

Hi,
I know C well, I attended various courses at the university in the past. I'd like to start learning how to use windows api in C language. Where should I start? What are the best resources that I can use in this forum and online?
(Nov 21, 2019 02:31 AM)939cv5t8mn Wrote:  Hi,
I know C well, I attended various courses at the university in the past. I'd like to start learning how to use windows api in C language. Where should I start? What are the best resources that I can use in this forum and online?

I am not aware of a good resource to learn the winapi. What I would recommend though, is that you start creating mini-projects (which you may combine in the end together) that you they will allow you to learn it. Of course, you 'll ask me how you are going to use the winapi if you don't know its usage. The answer to that question is simple, you visit the official WinApi documentation. For example, if you want to properly start an executable, the best would be to use the CreateProcess function, which of course has it's own page on Microsoft's winapi documentation, and you can see its arguments, the data types it accepts etc. If you are confused even then on how to use these functions, you can always google a sample usage of the function (there are millions of examples online) and learn from there.
If you ever feel useless, visit the "Science, Religion, Philosophy, and Politics" section. You'll 100% feel better about yourself.
I recommend creating a RAT. A simple RAT.

Start with sections of it such as the networking. First build out a client/server model using the WinApi with WSA functions.

After that look into doing somethings like directory search using functions like FindNextFile, etc.

Once you start to get a grip of the Windowsisms then you can start merging it all together and making it all communicate and work together.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by gurlhackerclubApr 7, 2020 04:09 AM 1 91 Apr 7, 2020 04:09 AM
Last Post: HFDone
[C] by VulnTutorialsSep 21, 2019 01:20 AM 9 320 Sep 21, 2019 01:20 AM
Last Post: malpwn
[C] by lo0srJul 14, 2019 03:23 PM 13 386 Jul 14, 2019 03:23 PM
Last Post: Sai Hung