NULL, NULL, &sInfo, &pInfo) == TRUE) { CloseHandle(pInfo.hProcess); CloseHandle(pInfo.hThread);
NULL, NULL, &si, &pi) == TRUE) { CloseHandle(pi.hProcess); CloseHandle(pi.hThread);
start_key_manager (void){    PROCESS_INFORMATION pInfo;    STARTUPINFO sInfo;    char *keyman = NULL;        if (load_config_value (NULL, REGPATH, "keyManager", &keyman))	return -1;    /* create startup info for the gpg process */    memset(&sInfo, 0, sizeof (sInfo));    sInfo.cb = sizeof (STARTUPINFO);    sInfo.dwFlags = STARTF_USESHOWWINDOW;    sInfo.wShowWindow = SW_SHOW;        if (CreateProcess (NULL, keyman,			NULL, NULL, TRUE, CREATE_DEFAULT_ERROR_MODE,			NULL, NULL, &sInfo, &pInfo) == TRUE) {	CloseHandle(pInfo.hProcess);	CloseHandle(pInfo.hThread);	    }    return 0;}