summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2003-01-14 21:36:29 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2003-01-14 21:36:29 +0000
commita5c942789af1c40000a98af9e3fa06849208cb89 (patch)
treee8716f24333347a44a39d658fc9a4d541d3eaaed
parent3af8da87216ece9d2f1881b955f88873e58bacb0 (diff)
downloadpyserial-git-a5c942789af1c40000a98af9e3fa06849208cb89.tar.gz
fixes for NT4
-rw-r--r--pyparallel/src/win32/loaddrv_console/loaddrv.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/pyparallel/src/win32/loaddrv_console/loaddrv.c b/pyparallel/src/win32/loaddrv_console/loaddrv.c
index 55bb046..99755fb 100644
--- a/pyparallel/src/win32/loaddrv_console/loaddrv.c
+++ b/pyparallel/src/win32/loaddrv_console/loaddrv.c
@@ -140,7 +140,7 @@ int main(int argc, char *argv[]) {
level = 2;
} else {
DWORD type = 0;
- printf("set start type %s to %s... ", argv[2], argv[3]);
+ printf("set start type of %s to %s... ", argv[2], argv[3]);
if (strcmp(argv[1], "boot") == 0) {
type = SERVICE_BOOT_START;
} else if (strcmp(argv[3], "system") == 0) {
@@ -275,26 +275,27 @@ DWORD DriverStatus(LPSTR lpDriver) {
SERVICE_ALL_ACCESS)) != NULL)
{
LPQUERY_SERVICE_CONFIG lpqscBuf;
- LPSERVICE_DESCRIPTION lpqscBuf2;
+ //~ LPSERVICE_DESCRIPTION lpqscBuf2;
// Allocate a buffer for the configuration information.
if ((lpqscBuf = (LPQUERY_SERVICE_CONFIG) LocalAlloc(
LPTR, 4096)) != NULL)
{
- if ((lpqscBuf2 = (LPSERVICE_DESCRIPTION) LocalAlloc(
- LPTR, 4096)) != NULL)
+ //~ if ((lpqscBuf2 = (LPSERVICE_DESCRIPTION) LocalAlloc(
+ //~ LPTR, 4096)) != NULL)
{
// Get the configuration information.
if (QueryServiceConfig(
hService,
lpqscBuf,
4096,
- &dwBytesNeeded) &&
- QueryServiceConfig2(
- hService,
- SERVICE_CONFIG_DESCRIPTION,
- lpqscBuf2,
- 4096,
- &dwBytesNeeded) )
+ &dwBytesNeeded) //&&
+ //~ QueryServiceConfig2(
+ //~ hService,
+ //~ SERVICE_CONFIG_DESCRIPTION,
+ //~ lpqscBuf2,
+ //~ 4096,
+ //~ &dwBytesNeeded
+ )
{
// Print the configuration information.
printf("Type: [0x%02lx] ", lpqscBuf->dwServiceType);
@@ -364,10 +365,10 @@ DWORD DriverStatus(LPSTR lpDriver) {
printf("Dependencies: %s\n", lpqscBuf->lpDependencies);
if (lpqscBuf->lpServiceStartName != NULL)
printf("Start Name: %s\n", lpqscBuf->lpServiceStartName);
- if (lpqscBuf2->lpDescription != NULL)
- printf("Description: %s\n", lpqscBuf2->lpDescription);
+ //~ if (lpqscBuf2->lpDescription != NULL)
+ //~ printf("Description: %s\n", lpqscBuf2->lpDescription);
}
- LocalFree(lpqscBuf2);
+ //~ LocalFree(lpqscBuf2);
}
LocalFree(lpqscBuf);
} else {