129{
132 DWORD cbSize, dwValidFlags;
133 TRAYNOTIFYDATAW tnid;
135
136
138 if (!hShellTrayWnd)
140
141
145 {
146 dwValidFlags |= NIF_STATE | NIF_INFO | NIF_GUID ;
147 }
149 {
150 dwValidFlags |= NIF_STATE | NIF_INFO | NIF_GUID;
151 }
153 {
154 dwValidFlags |= NIF_STATE | NIF_INFO;
155 }
156 else
157 {
159 {
160 WARN(
"Invalid cbSize (%d) - using only Win95 fields (size=%d)\n",
163 }
164 }
165
166
168 tnid.dwSignature = NI_NOTIFY_SIG;
169 tnid.dwMessage = dwMessage;
170
171
173
174 tnid.nid.cbSize = sizeof(tnid.nid);
175 tnid.nid.uFlags &= dwValidFlags;
176
177
179 {
181 {
182#define NIDV1_TIP_SIZE_W (NOTIFYICONDATAW_V1_SIZE - FIELD_OFFSET(NOTIFYICONDATAW, szTip))/sizeof(WCHAR)
184#undef NIDV1_TIP_SIZE_W
185 }
186 else
187 {
188 tnid.nid.szTip[
_countof(tnid.nid.szTip) - 1] = 0;
189 }
190 }
191
192
193 if (tnid.nid.uFlags & NIF_INFO)
194 {
195 tnid.nid.szInfo[
_countof(tnid.nid.szInfo) - 1] = 0;
196 tnid.nid.szInfoTitle[
_countof(tnid.nid.szInfoTitle) - 1] = 0;
197 }
198
199
201 data.cbData =
sizeof(tnid);
205
207}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)