This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdafx.h> | |
... | |
// tray icon ID | |
#define ID_SYSTEMTRAY 0x1000 | |
// custom message ID | |
#define WM_TRAYICON_EVENT (WM_APP + 1) | |
// tray icon resource ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma comment(lib,"Version.lib") | |
#define MAX_LINE_LENGTH 4096 | |
CString GetFileVersion(LPCTSTR filePath) | |
{ | |
CString ret(_T("")); | |
DWORD dummy; | |
DWORD dwSize = GetFileVersionInfoSize(filePath, &dummy); | |
if (dwSize == 0) ret = _T("Error retriving version(Module Not Found)"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
global $download_base_dir; | |
$download_base_dir = dirname(__FILE__); | |
global $download_prefix; | |
$download_prefix = 'download_'; | |
function gr_download_init() { |