⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auutils.hpp

📁 利用AutoUpgrader可在delphi环境下快速开发自动更新程式
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'auUtils.pas' rev: 3.00

#ifndef auUtilsHPP
#define auUtilsHPP
#include <Classes.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

//-- user supplied -----------------------------------------------------------

namespace Auutils
{
//-- type declarations -------------------------------------------------------
enum TauSplitStrSide { LEFT, RIGHT };

typedef Set<TauSplitStrSide, LEFT, RIGHT>  TauSplitStrSides;

enum TauFileAttribute { atrArchive, atrHidden, atrReadOnly, atrSystem, atrTemporary, atrOffline };

typedef Set<TauFileAttribute, atrArchive, atrOffline>  TauFileAttributes;

#pragma pack(push, 1)
struct TDoubleWord
{
	
	union
	{
		int DWord;
		struct 
		{
			Word LoWord;
			Word HiWord;
			
		};
		
	};
} ;
#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------
#define CRLF "\r\n"
#define D_CRLF "\r\n\r\n"
#define HTTPPrefix "http://"
#define TIME_ZONE_ID_INVALID (int)(-1)
#define TIME_ZONE_ID_UNKNOWN (Byte)(0)
#define TIME_ZONE_ID_STANDARD (Byte)(1)
#define TIME_ZONE_ID_DAYLIGHT (Byte)(2)
extern PACKAGE bool __fastcall IsOnline(void);
extern PACKAGE Byte __fastcall PercentsOf(Extended Entire, Extended Part);
extern PACKAGE System::AnsiString __fastcall GetExecutableByExtension(const System::AnsiString Extension
	);
extern PACKAGE void __fastcall OpenURL(System::AnsiString URL, bool InNewWindow);
extern PACKAGE System::AnsiString __fastcall GetTempDir();
extern PACKAGE System::AnsiString __fastcall GetSystemDir();
extern PACKAGE bool __fastcall DirectoryExists(const System::AnsiString DirName);
extern PACKAGE System::AnsiString __fastcall Base64Encode(const System::AnsiString Value);
extern PACKAGE System::AnsiString __fastcall GenerateAttachBoundary(char Salt);
extern PACKAGE System::AnsiString __fastcall GetMIMEType(System::AnsiString EXT);
extern PACKAGE System::AnsiString __fastcall IncludeTrailingBackslash(const System::AnsiString St);
extern PACKAGE System::AnsiString __fastcall ExcludeTrailingBackslash(const System::AnsiString St);
extern PACKAGE void __fastcall SplitStr(System::AnsiString SubStr, System::AnsiString Str, System::AnsiString 
	&FirstPart, System::AnsiString &SecondPart, TauSplitStrSide MainSide, TauSplitStrSides LeaveSeparatorOn
	);
extern PACKAGE void __fastcall SplitFilenameAndParams(System::AnsiString &FileName, System::AnsiString 
	&Params);
extern PACKAGE bool __fastcall ParseURL(System::AnsiString URL, System::AnsiString &Protocol, System::AnsiString 
	&HostName, System::AnsiString &URLPath, System::AnsiString &Username, System::AnsiString &Password, 
	System::AnsiString &ExtraInfo, Word &Port);
extern PACKAGE System::AnsiString __fastcall URLToHostName(const System::AnsiString URL);
extern PACKAGE System::AnsiString __fastcall URLToFileName(const System::AnsiString URL);
extern PACKAGE Shortint __fastcall VersionCheck(const System::AnsiString NewVersion, const System::AnsiString 
	OldVersion);
extern PACKAGE System::TDateTime __fastcall GMTToLocalTime(System::TDateTime GMTTime);
extern PACKAGE System::TDateTime __fastcall InternetTimeToDateTime(System::AnsiString InternetTime);
	
extern PACKAGE _FILETIME __fastcall DateTimeToFileTime(System::TDateTime Time);
extern PACKAGE System::TDateTime __fastcall FileTimeToDateTime(const _FILETIME &Time);
extern PACKAGE bool __fastcall SetFileTimes(const System::AnsiString FileName, const System::TDateTime 
	Created, System::TDateTime Modified, System::TDateTime Accessed);
extern PACKAGE System::Comp __fastcall Int2x32ToInt64(const int IntHi, const int IntLo);
extern PACKAGE System::Comp __fastcall ExtractFileSize(const System::AnsiString FileName);
extern PACKAGE bool __fastcall LoadResourceToStream(Windows::HINST Instance, char * ResName, char * 
	ResType, Classes::TStream* Stream);
extern PACKAGE void __fastcall ShutdownApplication(void);
extern PACKAGE void __fastcall InitMSRecord(void *Rec, int Size);
extern PACKAGE void __fastcall Wait(int &WaitHandle, int Timeout, bool CheckApplicationTermination);
	
extern PACKAGE void __fastcall StopWait(int &WaitHandle);
extern PACKAGE System::AnsiString __fastcall StreamToString(Classes::TStream* Stream);
extern PACKAGE bool __fastcall SetFileAttr(const System::AnsiString FileName, const TauFileAttributes 
	FileAttr);
extern PACKAGE bool __fastcall GetFileAttr(const System::AnsiString FileName, TauFileAttributes &FileAttr
	);

}	/* namespace Auutils */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Auutils;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// auUtils

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -