I saw 3 sample codes for a service, which use
int main(...)
as a starting function for a service.
And I saw one sample code which uses MFC.
But I couldn't find any sample code which uses
int APIENTRY WinMain(...)
as a starting function for a service.
I tried to rewrite one of the samples which uses
main(...) to WinMain(...) and everything worked fine.
My question: is which approach is the better way to write a service?
Thank you.