versionthread.h
来自「MudMaster 2000 的C++源码」· C头文件 代码 · 共 63 行
H
63 行
/************************************************************************************
Copyright (c) 2000 Aaron O'Neil
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1) Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2) Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3) Redistributions in binary form must reproduce the above copyright notice on
program startup. Additional credits for program modification are acceptable
but original copyright and credits must be visible at startup.
4) You may charge a reasonable copying fee for any distribution of Mud Master.
You may charge any fee you choose for support of Mud Master. You may not
charge a fee for Mud Master itself.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**************************************************************************************/
#define THREAD_VERSION_FAILED 0 // Failed to start the thread.
#define THREAD_VERSION_RUNNING 1 // Currently running.
#define THREAD_VERSION_DONE 2 // Finished running and is ok.
#define THREAD_VERSION_QUIT 3 // Finished running but failed.
#define THREAD_VERSION_FINISHED 4 // Finished running and data in structure
// has been processed. This gets set regardless
// of success or failure of the proc.
// Size of the receive buffer for the version data.
#define VERSION_BUFFER 20000
#define VERSIONLOG "VersionLog.txt"
struct VERSIONTHREADINFO
{
// Set to TRUE to log the progress of the thread.
BOOL bLogIt;
// Lets the main app know how the thread is doing.
int nThreadStatus;
// Text to print if the thread exits with THREAD_VERSION_DONE.
char *pszTextToPrint;
};
// Pass in a pointer to a VERSIONTHREADINFO structure when creating
// the thread.
extern UINT VersionThreadProc(LPVOID pVoid);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?