Shared publicly  - 
 
Någon som kan C# och har lust att hjälpa honom? http://pastebin.com/LMqcDrpi
 
C#
Kan man ha 2 Dll "calls" i samma public partial class??
kod:
namespace wallpaper
{
public partial class Form1 : Form
{
[DllImport("UxTheme.Dll", EntryPoint = "#65", CharSet = CharSet.Unicode)]
public static extern int SetSystemVisualStyle(string pszFilename, string pszColor, string pszSize, int dwReserved);

[DllImport("user32.dll", CharSet = CharSet.Auto)]

private static extern Int32 SystemParametersInfo(UInt32 uiAction, UInt32 uiParam, String pvParam, UInt32 fWinIni);
private static UInt32 SPI_SETDESKWALLPAPER = 20;
private static UInt32 SPIF_UPDATEINIFILE = 0x1;
private String fileName =@"C:\Users\Albin\Documents\Visual Studio 2010\Abbes theme V1.0 strong folder\Alice.bmp";

(Vad muppat det ser ut^^(får det inte att funka...)).
1
Albin Larsson's profile photoJohan Eriksson's profile photo
3 comments
Translate
Translate
 
Bottom1 is now working ok (wrong folder location) So it need to be some thing wrong whit the API code...
Add a comment...