[so] Ce are functia asta de nu merge ??

Mircea Dan so@cursuri.cs.pub.ro
Sat, 20 Nov 2004 16:07:35 +0200 (E. Europe Standard Time)


--------------Boundary-00=_NWDHQL80000000000000
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

=0D
FILETIME            ftCreation,=0D
                        ftExit,=0D
                        ftKernel,=0D
                        ftUser;=0D
if(!LoadLibrary("kernel32.dll")){printf("\nkernell32.dll load error !!!\n=
")
}=0D
=0D
    HANDLE hProcess =3D OpenProcess( PROCESS_QUERY_INFORMATION |=0D
                                   PROCESS_VM_READ ,=0D
                                   FALSE, processID );=0D
=0D
 GetProcessTimes(hProcess, &ftCreation, &ftExit, &ftKernel, &ftUser);=0D
=0D
=0D
cam asa am gasit ca se foloseste in mai toate exemplele=0D
=0D
cu &=0D
=0D
eu am c/c++ ul ala vechi antic si medieval,   si daca scriu asa ceva da
eroare=0D
=0D
cannot convert `_FILETIME**' to `_FILETIME*' for argument `2' to `=0D
=0D
daca  GetProcessTimes(hProcess, ftCreation, ftExit, ftKernel, ftUser);=0D
=0D
scriu fara & toate bune si frumoase se compileaza se excuta gasest PID-ur=
ile
gaseste numele proceselor, dar cand ajunge la GetProcessTimes da ilegal
operation.... :(=0D
=0D
=0D
de la ce poate sa fie?
--------------Boundary-00=_NWDHQL80000000000000
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-=
1">
<META content=3D"IncrediMail 1.0" name=3DGENERATOR>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style=3D"BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 12pt; MARGIN: 5px=
 10px 10px; FONT-FAMILY: Arial" bgColor=3D#ffffff background=3D"" scroll=3D=
yes ORGYPOS=3D"0" X-FVER=3D"3.0">
<TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100=
%" border=3D0>
<TBODY>
<TR>
<TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F=
AMILY: Arial" width=3D"100%">
<DIV>&nbsp;</DIV>
<DIV>FILETIME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; ftCreation,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; ftExit,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; ftKernel,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; ftUser;</DIV>
<DIV>if(!LoadLibrary("kernel32.dll")){printf("\nkernell32.dll load error =
!!!\n");}</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; HANDLE hProcess =3D OpenProcess( PROCESS_QUERY_IN=
FORMATION |<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 PROCESS_VM_READ ,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; FALSE, processID );</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;GetProcessTimes(hProcess, &amp;ftCreation, &amp;ftExit, &amp;f=
tKernel, &amp;ftUser);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>cam asa am gasit ca se foloseste in mai toate exemplele</DIV>
<DIV>&nbsp;</DIV>
<DIV>cu &amp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>eu am c/c++ ul ala vechi antic si medieval,&nbsp;&nbsp; si daca scri=
u asa ceva da eroare</DIV>
<DIV><BR>cannot convert `_FILETIME**' to `_FILETIME*' for argument `2' to=
 `</DIV>
<DIV>&nbsp;</DIV>
<DIV>daca&nbsp;&nbsp;GetProcessTimes(hProcess, ftCreation, ftExit, ftKern=
el, ftUser);</DIV>
<DIV>&nbsp;</DIV>
<DIV>scriu fara &amp; toate bune si frumoase se compileaza se excuta gase=
st PID-urile gaseste numele proceselor, dar cand ajunge la GetProcessTime=
s da ilegal operation.... :(</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>de la ce poate sa fie?<BR></DIV></TD></TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D"100%"></TD>
<TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
<TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T=
ABLE></TD></TR></TBODY></TABLE><SPAN id=3DIncrediStamp><SPAN dir=3Dltr><A=
 href=3D"http://www.incredimail.com/index.asp?id=3D54475"><IMG alt=3D"Add=
 FUN to your email - CLICK HERE!" hspace=3D0 src=3D"http://www2.incredima=
il.com/contents/stamps/imstp_emo_en.gif" align=3Dbaseline border=3D0></A>=
</SPAN></SPAN></BODY></HTML>
--------------Boundary-00=_NWDHQL80000000000000--