On Thursday, 13 July 2017 at 01:15:46 UTC, FoxyBrown wrote:
ENUM_SERVICE_STATUS_PROCESS[5000] services;
auto res = SVC.EnumServicesStatusExA(schSCManager,
SC_ENUM_TYPE.SC_ENUM_PROCESS_INFO, servicesType,
SERVICE_STATE_ALL, cast(ubyte*)services.ptr,
5000*ENUM_SERVICE_STATUS_PROCESS.siz
On Thursday, 13 July 2017 at 01:15:46 UTC, FoxyBrown wrote:
auto EnumServices()
I wouldn't use auto here. The reason you get mismatch types on
return here since you don't return consistent types inside.
ENUM_SERVICE_STATUS_PROCESS[5000] services;
Are you sure you are getting the
On Thursday, 13 July 2017 at 01:15:46 UTC, FoxyBrown wrote:
Everything I do results in some problem, I've tried malloc but
then converting the strings resulted in my program becoming
corrupted.
Heres the code:
auto EnumServices()
{
auto schSCManager = OpenSCManager(null, null,
SC_MANAG