示例#1
0
int growl( const char *const server,const char *const appname,const char *const notify,const char *const title, const char *const message ,
                                const char *const icon , const char *const password , const char *url )
{
    int rc = growl_tcp_register(  server ,  appname ,  (const char **const)&notify , 1 , password, icon  );
    if( rc == 0 )
    {
        rc = growl_tcp_notify( server, appname, notify, title,  message , password, url, icon );
    }
    return rc;
}
示例#2
0
void Growl::Register(const char **const notifications, const int notifications_count , const char *const icon )
{
	if( protocol == GROWL_TCP )
	{
		growl_tcp_register( server , application , notifications , notifications_count , password , icon );
	}
	else
	{
		growl_udp_register( server , application , notifications , notifications_count , password );
	}
}
示例#3
0
VOID RegisterGrowl(
    _In_ BOOLEAN Force
    )
{
    static BOOLEAN registered = FALSE;

    if (!Force && registered)
        return;

    growl_tcp_register("127.0.0.1", "Process Hacker", GrowlNotifications, sizeof(GrowlNotifications) / sizeof(PSTR), NULL, NULL);

    registered = TRUE;
}