summary refs log blame commit diff stats
path: root/plugins/hextray/sdAlerts.h
blob: 6c2a3dc0cf216a857e0e79dbbabbea01ca99a2c6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                
                                                                             








                                                                                         
       
/* X-Tray
 * Copyright (C) 2005 Michael Hotaling <Mike.Hotaling@SinisterDevelopments.com>
 *
 * X-Tray is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * X-Tray is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with X-Tray; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

#ifndef _H_SDALERTS_H
#define _H_SDALERTS_H

void				sdSystemAlert	(HINSTANCE, UINT, char *, char *, UINT);
LRESULT CALLBACK	sdAlertProc		(HWND, UINT, WPARAM, LPARAM);
int					sdAlertNum		();
void				sdCloseAlerts	();
#endif
>size) { // "volatile" prevents this code from being optimized away volatile char* volptr = ptr; while (size--) *volptr++ = 0; } /** * Re-allocates a string with the native allocator. */ char *import_glib_string(gchar *gstr) { size_t size; char *native; if (g_mem_is_system_malloc()) return gstr; size = strlen(gstr)+1; native = malloc(size); memcpy(native, gstr, size); secure_erase(gstr, size); g_free(gstr); return native; }