and i now i want to create an icon for this service so that i can start/stop the service from the toolbar instead of going into the SCM every time.
i found some code to create an icon but my problem is i don't know where in the service code to put the icon code (if you look at the link you can see the program has 4 files)
i don't want to create a separate program to control the icon
To answer your title question; you can create icons in image manipulation programs. A nice feature of GIMP is that you can get pixel data as C source code, and insert it into your program.
Other than that, icons are OS-specific (you'd best ask it under Windows programming), you could use a library like SFML or wxWidgets (I think, currently learning wxW.) as a platform-independent layer for your icon.