Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLoad dynamic images as background ? Pin
dlhson11-May-02 5:21
dlhson11-May-02 5:21 
AnswerRe: Load dynamic images as background ? Pin
Shog911-May-02 6:31
sitebuilderShog911-May-02 6:31 
GeneralVarifying Socket Connection :: Winsock Pin
valikac11-May-02 5:17
valikac11-May-02 5:17 
GeneralRe: Varifying Socket Connection :: Winsock Pin
Nish Nishant11-May-02 6:10
sitebuilderNish Nishant11-May-02 6:10 
GeneralRe: Varifying Socket Connection :: Winsock Pin
valikac11-May-02 7:11
valikac11-May-02 7:11 
Generalowner draw menu... Pin
11-May-02 4:46
suss11-May-02 4:46 
GeneralRe: owner draw menu... Pin
Nish Nishant11-May-02 6:15
sitebuilderNish Nishant11-May-02 6:15 
QuestionHow do I get a module Handle? Pin
Neil scsn11-May-02 2:28
Neil scsn11-May-02 2:28 
Hi,
Im using the following to get a list of windows running:

EnumWindows((WNDENUMPROC)AddWinsList, 0);

And within the routine I am doing the following:

BOOL CALLBACK AddWinsList(HWND hWnd, LPARAM lParam)
{
if (!IsWindowVisible(hWnd) || GetWindow(hWnd, GW_OWNER) != NULL)
return TRUE;

TCHAR szClassName[80];
GetClassName(hWnd, szClassName, 80);

if (lstrcmpi(szClassName, _T("Progman")) == 0)
return TRUE;

char szWndText[556];
GetWindowText(hWnd, szWndText, 556);
if (strlen(szWndText) > 0)
AfxMessageBox(szWndText);// just display window title

DWORD p,i;
i=GetWindowThreadProcessId(hWnd,&p);
HANDLE hProcess = OpenProcess(
PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
FALSE, p);

char FileName[50];
GetModuleFileNameEx(hProcess,?,FileName,49); //? dont know how to get the 'module handle'...

////////////////
I dont know how to get the module handle above in (GetModuleFileNameEx) the second field, anyone any ideas?

thanks

AnswerRe: How do I get a module Handle? Pin
Joaquín M López Muñoz11-May-02 2:28
Joaquín M López Muñoz11-May-02 2:28 
QuestionHow can i expressed DICOM format image? Pin
mugzzan10-May-02 17:55
mugzzan10-May-02 17:55 
AnswerRe: How can i expressed DICOM format image? Pin
l a u r e n10-May-02 23:33
l a u r e n10-May-02 23:33 
AnswerRe: How can i expressed DICOM format image? Pin
Mukkie11-May-02 2:10
Mukkie11-May-02 2:10 
GeneralJust a picture Pin
lszyn10-May-02 16:02
lszyn10-May-02 16:02 
GeneralRe: Just a picture Pin
Shog910-May-02 16:21
sitebuilderShog910-May-02 16:21 
GeneralRe: Just a picture Pin
Nish Nishant10-May-02 17:07
sitebuilderNish Nishant10-May-02 17:07 
GeneralRe: Just a picture Pin
Maxwell Chen10-May-02 21:10
Maxwell Chen10-May-02 21:10 
GeneralChanging SOCKADDR_IN Real-Time :: Winsock Pin
valikac10-May-02 15:27
valikac10-May-02 15:27 
GeneralRe: Changing SOCKADDR_IN Real-Time :: Winsock Pin
Nish Nishant10-May-02 17:05
sitebuilderNish Nishant10-May-02 17:05 
GeneralRe: Changing SOCKADDR_IN Real-Time :: Winsock Pin
valikac10-May-02 18:49
valikac10-May-02 18:49 
General_CrtIsValidPointer in release Pin
Romeozulu10-May-02 14:10
Romeozulu10-May-02 14:10 
GeneralRe: _CrtIsValidPointer in release Pin
Rama Krishna Vavilala10-May-02 18:03
Rama Krishna Vavilala10-May-02 18:03 
GeneralRe: _CrtIsValidPointer in release Pin
Shog910-May-02 18:15
sitebuilderShog910-May-02 18:15 
GeneralRe: _CrtIsValidPointer in release Pin
Rama Krishna Vavilala10-May-02 23:45
Rama Krishna Vavilala10-May-02 23:45 
GeneralRe: _CrtIsValidPointer in release Pin
Nish Nishant10-May-02 18:22
sitebuilderNish Nishant10-May-02 18:22 
GeneralRe: _CrtIsValidPointer in release Pin
Philip Patrick10-May-02 20:32
professionalPhilip Patrick10-May-02 20: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.