34 DWORD cbSize, dwValidFlags;
38 nidW.
cbSize =
sizeof(nidW);
50 nidW.
cbSize =
sizeof(nidW);
51 dwValidFlags |= NIF_STATE | NIF_INFO | NIF_GUID ;
56 dwValidFlags |= NIF_STATE | NIF_INFO | NIF_GUID;
61 dwValidFlags |= NIF_STATE | NIF_INFO;
67 WARN(
"Invalid cbSize (%d) - using only Win95 fields (size=%d)\n",
73 nidW.
uFlags &= dwValidFlags;
85#define NIDV1_TIP_SIZE_A (NOTIFYICONDATAA_V1_SIZE - FIELD_OFFSET(NOTIFYICONDATAA, szTip))/sizeof(CHAR)
90#undef NIDV1_TIP_SIZE_A
106 if (nidW.
uFlags & NIF_INFO)
132 DWORD cbSize, dwValidFlags;
133 TRAYNOTIFYDATAW tnid;
146 dwValidFlags |= NIF_STATE | NIF_INFO | NIF_GUID ;
150 dwValidFlags |= NIF_STATE | NIF_INFO | NIF_GUID;
154 dwValidFlags |= NIF_STATE | NIF_INFO;
160 WARN(
"Invalid cbSize (%d) - using only Win95 fields (size=%d)\n",
168 tnid.dwSignature = NI_NOTIFY_SIG;
169 tnid.dwMessage = dwMessage;
174 tnid.nid.cbSize =
sizeof(tnid.nid);
175 tnid.nid.uFlags &= dwValidFlags;
182#define NIDV1_TIP_SIZE_W (NOTIFYICONDATAW_V1_SIZE - FIELD_OFFSET(NOTIFYICONDATAW, szTip))/sizeof(WCHAR)
184#undef NIDV1_TIP_SIZE_W
188 tnid.nid.szTip[
_countof(tnid.nid.szTip) - 1] = 0;
193 if (tnid.nid.uFlags & NIF_INFO)
195 tnid.nid.szInfo[
_countof(tnid.nid.szInfo) - 1] = 0;
196 tnid.nid.szInfoTitle[
_countof(tnid.nid.szInfoTitle) - 1] = 0;
201 data.cbData =
sizeof(tnid);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define MultiByteToWideChar
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define NOTIFYICONDATAW_V1_SIZE
#define NOTIFYICONDATAW_V3_SIZE
#define NOTIFYICONDATAA_V1_SIZE
#define NOTIFYICONDATAA_V2_SIZE
#define NOTIFYICONDATAW_V2_SIZE
#define NOTIFYICONDATAA_V3_SIZE
BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA pnid)
BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW pnid)
HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)