49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
namespace LSFileClient
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size=1)]
|
|
internal struct LSCustomWinMsg
|
|
{
|
|
private static readonly int CUSTOM_MESSAGE;
|
|
public static readonly int SUCCESS_MESSAGE;
|
|
public static readonly int FAIL_MESSAGE;
|
|
public static readonly int SETPROGRESS;
|
|
public static readonly int CLOSE_WINDOW;
|
|
public static readonly int NOTIFY_READY;
|
|
public static readonly int CONNECT_ERROR;
|
|
public static readonly int DELETEFILE_MESSAGE;
|
|
public static readonly int READYTOCLOSE;
|
|
public static readonly int BATCHUPLOADCOMPLETED;
|
|
/// <summary>
|
|
/// 删除成功
|
|
/// </summary>
|
|
public static readonly int DELETECOMPLETED;
|
|
/// <summary>
|
|
/// 删除失败
|
|
/// </summary>
|
|
public static readonly int DELETEERROR;
|
|
public static readonly int DOWNLOADCOMPLETED;
|
|
public static readonly int DOWNLOADERROR;
|
|
static LSCustomWinMsg()
|
|
{
|
|
CUSTOM_MESSAGE = 36864;
|
|
SUCCESS_MESSAGE = CUSTOM_MESSAGE + 1;
|
|
FAIL_MESSAGE = CUSTOM_MESSAGE + 2;
|
|
SETPROGRESS = CUSTOM_MESSAGE + 3;
|
|
CLOSE_WINDOW = CUSTOM_MESSAGE + 4;
|
|
NOTIFY_READY = CUSTOM_MESSAGE + 5;
|
|
CONNECT_ERROR = CUSTOM_MESSAGE + 6;
|
|
DELETEFILE_MESSAGE = CUSTOM_MESSAGE + 7;
|
|
READYTOCLOSE = CUSTOM_MESSAGE + 8;
|
|
BATCHUPLOADCOMPLETED = CUSTOM_MESSAGE + 9;
|
|
DOWNLOADCOMPLETED = CUSTOM_MESSAGE + 10;
|
|
DOWNLOADERROR = CUSTOM_MESSAGE + 11;
|
|
DELETECOMPLETED = CUSTOM_MESSAGE + 12;
|
|
DELETEERROR = CUSTOM_MESSAGE + 13;
|
|
}
|
|
}
|
|
}
|
|
|