Click here to Skip to main content
15,894,324 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCFileDialog + PropertySheet Pin
act_x13-Oct-03 5:00
act_x13-Oct-03 5:00 
GeneralProblem starting windows service from command line Pin
haritadala13-Oct-03 4:26
haritadala13-Oct-03 4:26 
GeneralCentering a CFormView into a main window Pin
wollet13-Oct-03 4:02
wollet13-Oct-03 4:02 
GeneralQuestion about taborder using win32 API Pin
Perry Bruins13-Oct-03 3:43
Perry Bruins13-Oct-03 3:43 
GeneralRe: Question about taborder using win32 API Pin
ELEFK13-Oct-03 4:14
sussELEFK13-Oct-03 4:14 
GeneralRe: Question about taborder using win32 API Pin
Michael Dunn13-Oct-03 4:32
sitebuilderMichael Dunn13-Oct-03 4:32 
QuestionHow to make .ACS(agent character storage) Pin
sunju13-Oct-03 2:43
sunju13-Oct-03 2:43 
GeneralCloseHandle Pin
jmkhael13-Oct-03 2:12
jmkhael13-Oct-03 2:12 
In the following code which is a selfdeleting code on NT i cant seem to understand why the call CloseHandle((HANDLE)4); is there?
what is this 4 value that is casted to a HANDLE?

<br />
#include <windows.h><br />
<br />
int main(int argc, char *argv[])<br />
{<br />
    char    buf[MAX_PATH];<br />
    HMODULE module;<br />
    <br />
    module = GetModuleHandle(0);<br />
    GetModuleFileName(module, buf, MAX_PATH);<br />
    CloseHandle((HANDLE)4);<br />
    <br />
    __asm <br />
    {<br />
      lea     eax, buf<br />
      push    0<br />
      push    0<br />
      push    eax<br />
      push    ExitProcess<br />
      push    module<br />
      push    DeleteFile<br />
      push    UnmapViewOfFile<br />
      ret<br />
    }<br />
     <br />
    return 0;<br />
}<br />


Papa


while (TRUE)
Papa.WillLove ( Bebe ) ;
GeneralRe: CloseHandle Pin
Phil Hamer13-Oct-03 4:58
Phil Hamer13-Oct-03 4:58 
GeneralRe: CloseHandle Pin
Steve S13-Oct-03 5:22
Steve S13-Oct-03 5:22 
GeneralRe: CloseHandle Pin
Phil Hamer13-Oct-03 5:40
Phil Hamer13-Oct-03 5:40 
GeneralRe: CloseHandle Pin
Steve S13-Oct-03 5:56
Steve S13-Oct-03 5:56 
GeneralRe: CloseHandle Pin
jmkhael13-Oct-03 5:54
jmkhael13-Oct-03 5:54 
GeneralProblems with DirectDraw!! Pin
Dani_Filth13-Oct-03 2:11
Dani_Filth13-Oct-03 2:11 
GeneralRe: Problems with DirectDraw!! Pin
Tomas Wilhelmsson13-Oct-03 3:30
Tomas Wilhelmsson13-Oct-03 3:30 
Generalenvironment variables Pin
ranjjj13-Oct-03 1:44
ranjjj13-Oct-03 1:44 
GeneralRe: environment variables Pin
Michael P Butler13-Oct-03 2:11
Michael P Butler13-Oct-03 2:11 
GeneralRe: environment variables Pin
jmkhael13-Oct-03 2:34
jmkhael13-Oct-03 2:34 
GeneralMAPI/CDO from an NT Service Pin
thowra13-Oct-03 1:17
thowra13-Oct-03 1:17 
GeneralRe: MAPI/CDO from an NT Service Pin
Mike Dimmick13-Oct-03 1:39
Mike Dimmick13-Oct-03 1:39 
GeneralRe: MAPI/CDO from an NT Service Pin
thowra13-Oct-03 1:45
thowra13-Oct-03 1:45 
GeneralRe: MAPI/CDO from an NT Service Pin
Mike Dimmick13-Oct-03 1:53
Mike Dimmick13-Oct-03 1:53 
GeneralRe: MAPI/CDO from an NT Service Pin
thowra13-Oct-03 2:47
thowra13-Oct-03 2:47 
Generalwstring/string Pin
Tomas Wilhelmsson13-Oct-03 1:16
Tomas Wilhelmsson13-Oct-03 1:16 
GeneralRe: wstring/string Pin
Anand Paranjpe13-Oct-03 1:32
Anand Paranjpe13-Oct-03 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.