BOOL QueryServiceConfig(
SC_HANDLE hService, // handle to service
LPQUERY_SERVICE_CONFIG lpServiceConfig, // buffer
DWORD cbBufSize, // size of buffer
LPDWORD pcbBytesNeeded // bytes needed
);
I've defined it as follows:
prototype BOOL Advapi32.QueryServiceConfig( NUMBER, POINTER, NUMBER, BYREF
NUMBER );
and used it as follows
typedef QUERY_SERVICE_CONFIG
begin
NUMBER dwServiceType;
NUMBER dwStartType;
NUMBER dwErrorControl;
STRING lpBinaryPathName[1024];
STRING lpLoadOrderGroup[1024];
NUMBER dwTagId;
STRING lpDependencies[1024];
STRING lpServiceStartName[1024];
STRING lpDisplayName[256];
end;
#define nzQUERY_SERVICE_CONFIG 4368
then I pass a pointer to the second argument to this structure, but my
install script keeps crashing ??
Can anyone please help me ? Thanks in advance,
Eric