Can I use member function as a callback in SERVICE_TABLE_ENTRYA structure? It has the type LPSERVICE_MAIN_FUNCTION that is defined as
typedef VOID (WINAPI *LPSERVICE_MAIN_FUNCTIONA)(
DWORD dwNumServicesArgs,
LPSTR *lpServiceArgVectors
);
The main problem here is WINAPI calling convention (I can't use lambdas like in my previous question). I'm also don't want to use static member function.