I'm new to C and trying to mess around with some of the functions from windows.h
I'm trying out this one:
I've declared my variables as:
SC_ENUM_TYPE InfoLevel = SC_ENUM_PROCESS_INFO;
DWORD dwServiceType = SERVICE_WIN32,
dwServiceState = SERVICE_STATE_ALL,
chBufSize = 30720,
dwResumeHandle = 0,
dwDesiredAccess = SC_MANAGER_ENUMERATE_SERVICE,
LPCTSTR pszGroupName = NULL;
But i'm having a problem with the lpServices variable which should be a pointer to the buffer that receives the status information.
My question is how do I specify a variable to contain this information ?