Leser: 3
|< 1 2 >| | 14 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
HANDLE CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes, // SD
SIZE_T dwStackSize, // initial stack size
LPTHREAD_START_ROUTINE lpStartAddress, // thread function
LPVOID lpParameter, // thread argument
DWORD dwCreationFlags, // creation option
LPDWORD lpThreadId // thread identifier
);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#================================================
sub Button_EVILS_Click { # Button Klick
$count = 0;
my $pid = undef;
if(-e $config{"SRS"}){#
}else{&errmsg;}
open(FILE, "$config{\"SRS\"}");
my @sfile = <FILE>;
close FILE;
foreach $x (@sfile){ $pbmax++; }
$Main->RSPB->SetRange(0, $pbmax);
$x = undef;
foreach $x (@sfile){
chomp $x;
if(defined($pid = fork)){
if($pid){
last;
} else {
$count++;
$Main->RSPB->SetPos($count);
open(README, "meine.exe $x 1 |");
my @res = <README>;
close README;
$Main->RichEdit->Text("$x\n\n@res");
my @news = split / /,$res[6];
if($news[0] eq "ok"){
$List_rs->AddString("$x");
}
}
}
}
}
#================================================
Quote\n\nperldoc -f fork
Does a fork(2) system call to create a new process running the
same program at the same point. It returns the child pid to the
parent process, 0 to the child process, or "undef" if the fork
is unsuccessful.
...
|< 1 2 >| | 14 Einträge, 2 Seiten |