Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: The command to call external app Pin
Stefan Troschuetz8-Nov-04 21:26
Stefan Troschuetz8-Nov-04 21:26 
GeneralRe: The command to call external app Pin
nobita3x8-Nov-04 21:58
nobita3x8-Nov-04 21:58 
GeneralRe: The command to call external app Pin
Stefan Troschuetz8-Nov-04 22:49
Stefan Troschuetz8-Nov-04 22:49 
QuestionHow can I remove items from a listbox? Pin
Julianne_juju8-Nov-04 19:18
Julianne_juju8-Nov-04 19:18 
AnswerRe: How can I remove items from a listbox? Pin
SathishVJ8-Nov-04 19:34
SathishVJ8-Nov-04 19:34 
GeneralRe: How can I remove items from a listbox? Pin
Julianne_juju8-Nov-04 21:08
Julianne_juju8-Nov-04 21:08 
GeneralRe: How can I remove items from a listbox? Pin
Skynyrd8-Nov-04 21:37
Skynyrd8-Nov-04 21:37 
GeneralSystemParametersInfo not working from within service Pin
SathishVJ8-Nov-04 19:15
SathishVJ8-Nov-04 19:15 
Hi,
I am trying to write a service that will automatically change the wallpaper. The SystemParametersInfo call works from a normal windows application but not from a service.

The return value is 0 and I can debug that the error I get is "Unable to find an entry point named SystemParametersInfo in User32.dll".

Would anybody be able to help me figure out why this happens and how to get around it?

Thanks and regards
Sathish

Some code:

public class WinAPI{
//various stuff I tried in DllImport
//[DllImport("user32.dll", EntryPoint="SystemParametersInfoA", CharSet=CharSet.Auto, SetLastError=false, ExactSpelling=true)]

//[DllImport("user32.dll", CallingConvention=CallingConvention.Winapi, SetLastError=false, ExactSpelling=false)]

[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
}

//different ways I tried to call it from within the service
int nResult = WinAPI.SystemParametersInfo(20, 1, bmpFilePath, 0x2);

//int nResult = WinAPI.SystemParametersInfo(20, 0, bmpFilePath, 0x1 | 0x2);


~/sathishvj
GeneralRe: SystemParametersInfo not working from within service Pin
dbman2116-Nov-09 14:27
dbman2116-Nov-09 14:27 
GeneralDebug unsafe function with fixed keyword Pin
Aleksan8-Nov-04 19:03
Aleksan8-Nov-04 19:03 
GeneralRe: Debug unsafe function with fixed keyword Pin
Alex Korchemniy8-Nov-04 19:09
Alex Korchemniy8-Nov-04 19:09 
GeneralRe: Debug unsafe function with fixed keyword Pin
Aleksan8-Nov-04 22:43
Aleksan8-Nov-04 22:43 
GeneralMenu Pin
Yulianto.8-Nov-04 18:25
Yulianto.8-Nov-04 18:25 
GeneralRe: Menu Pin
Alex Korchemniy8-Nov-04 18:37
Alex Korchemniy8-Nov-04 18:37 
GeneralRe: Menu Pin
Yulianto.8-Nov-04 18:40
Yulianto.8-Nov-04 18:40 
GeneralRe: Menu Pin
Alex Korchemniy8-Nov-04 18:47
Alex Korchemniy8-Nov-04 18:47 
GeneralQuestion about random access file Pin
momer8-Nov-04 16:46
momer8-Nov-04 16:46 
GeneralRe: Question about random access file Pin
Alex Korchemniy8-Nov-04 18:02
Alex Korchemniy8-Nov-04 18:02 
GeneralRe: Question about random access file Pin
momer8-Nov-04 18:28
momer8-Nov-04 18:28 
GeneralRe: Question about random access file Pin
Alex Korchemniy8-Nov-04 18:35
Alex Korchemniy8-Nov-04 18:35 
GeneralRe: Question about random access file Pin
momer8-Nov-04 21:36
momer8-Nov-04 21:36 
QuestionHow to rename the table?( SQL Server 2000 wince ) Pin
ting6688-Nov-04 16:11
ting6688-Nov-04 16:11 
AnswerRe: How to rename the table?( SQL Server 2000 wince ) Pin
Alex Korchemniy8-Nov-04 17:30
Alex Korchemniy8-Nov-04 17:30 
GeneralC# Programs by Microsoft, Not Borland. Pin
Underhillron8-Nov-04 14:41
Underhillron8-Nov-04 14:41 
GeneralRe: C# Programs by Microsoft, Not Borland. Pin
Alex Korchemniy8-Nov-04 17:22
Alex Korchemniy8-Nov-04 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.