Article ID: 105446
Article Last Modified on 11/21/2006
SendMessage( -1, WM_DDE_INITIATE, hWndApp, lParam );
where lParam points to an atom representing:
LOWORD | HIWORD
-----------------------------------------------------------
Shell | AppIcon : To get an item's icon
Shell | AppDescription : To get an item's description
Shell | AppWorkingDir : To get an item's working directory
GetStartupInfo( &StartupInfo );
The field lpReserved in the STARUPINFO structure is in the
following format
dde.#, hotkey.##
SendMessage( hwndProgMan, WM_DDE_REQUEST, hwndApp, lParam );
where the lParam HIWORD is the item's DDE number obtained in step 2.
typedef struct _PMIconData {
DWORD dwResSize;
DWORD dwVer;
BYTE iResource; // icon resource
} PMICONDATA, *LPPMICONDATA;
To create the icon, the application must call:
hIcon = CreateIconFromResource((LPBYTE)&(lpPMIconData->iResource),
lpPMIconData->dwResSize,
TRUE,
lpPMIconData->dwVer
);Additional query words: 3.10 3.50
Keywords: KB105446