//------------------------------------------------------------------------
//指示该属性化方法由非托管动态链接库 (DLL) 作为静态入口点公开。引入皮肤接口 [关键代码]
[DllImport(@"appface.dll")] //注意路径
public static extern int SkinStart(string SkinFile, int nDefWinType, int CheckSum, int nType,
int hInstance, int nLen);
[DllImport(@"appface.dll")]
public static extern int SkinRemove();
[DllImport(@"appface.dll")]
public static extern int SkinWindowSet(IntPtr hWnd, int nSkintype);
[DllImport(@"appface.dll")]
public static extern int SkinWindowSetEx(IntPtr hWnd, int nSkintype, int nResourceId,
int nUrfLoadType, string SkinFile, int hInstance, int nLen);
//------------------------------------------------------------------------
[STAThread]
static void Main()
{
//加载皮肤(加载你需要的皮肤,注意路径)[关键代码]
SkinStart("skins//basic_urf//winmp_af.urf", 0, 0, 1, 0, 0);
//第一次循环
LoginContext loginContext = new LoginContext();
Application.Run(loginContext);
SkinRemove();//[关键代码]
}