Click here to Skip to main content
16,005,682 members
Home / Discussions / C#
   

C#

 
AnswerRe: project-to-project references ??? Pin
Christian Graus15-Feb-05 10:12
protectorChristian Graus15-Feb-05 10:12 
GeneralEnvDTE::DocumentEvents.DocumentOpend makes me suffer! Pin
JabraJabra15-Feb-05 6:16
JabraJabra15-Feb-05 6:16 
GeneralHelp with Selecting Data Inside a DataTable Pin
Peter Vertes15-Feb-05 5:55
Peter Vertes15-Feb-05 5:55 
GeneralRe: Help with Selecting Data Inside a DataTable Pin
Rob Graham15-Feb-05 6:42
Rob Graham15-Feb-05 6:42 
GeneralRe: Help with Selecting Data Inside a DataTable Pin
Peter Vertes15-Feb-05 7:15
Peter Vertes15-Feb-05 7:15 
Generalhelp with CreateProcessWithLogonW Pin
drey115-Feb-05 5:16
drey115-Feb-05 5:16 
GeneralRe: help with CreateProcessWithLogonW Pin
Judah Gabriel Himango15-Feb-05 7:42
sponsorJudah Gabriel Himango15-Feb-05 7:42 
GeneralRe: help with CreateProcessWithLogonW Pin
drey115-Feb-05 7:55
drey115-Feb-05 7:55 
Thank you for your reply.
My process runs fine. I get and id back and I use the getprocess method to get the process. but when it hit the code Process.EnableRaisingEvents or any Process.(something) it gives me an Access denied message. But if i impersonate myself, it works fine.
this is the code:

bool ret = true;
ret = CreateProcessWithLogonW(m_username, m_domain, m_password, (int)LogonFlags.WithProfile,null,m_sb, (uint)PriorityFlags.NormalPriority | (uint)CreationFlags.UnicodeEnvironment, IntPtr.Zero,"c:\\", ref m_sui, out m_pi);

if(ret)
{
System.Diagnostics.Process p = System.Diagnostics.Process.GetProcessById(m_pi.dwProcessId);
p.EnableRaisingEvents = true; "FAILS IN THIS LINE"
}
GeneralCrashing Code Pin
TyronX15-Feb-05 5:00
TyronX15-Feb-05 5:00 
GeneralRe: Crashing Code Pin
Judah Gabriel Himango15-Feb-05 7:48
sponsorJudah Gabriel Himango15-Feb-05 7:48 
GeneralRe: Crashing Code Pin
TyronX15-Feb-05 13:51
TyronX15-Feb-05 13:51 
GeneralPrintDialog doesnt show all printer Pin
Gavin Jeffrey15-Feb-05 4:52
Gavin Jeffrey15-Feb-05 4:52 
Generalcreate a treenode with 2 or three images Pin
chicolat15-Feb-05 4:37
susschicolat15-Feb-05 4:37 
GeneralCurrentCellChanged event !!!!!!!!!!!!!! Pin
innocent7315-Feb-05 3:53
innocent7315-Feb-05 3:53 
GeneralRe: CurrentCellChanged event !!!!!!!!!!!!!! Pin
Mr.Cooper15-Feb-05 4:01
Mr.Cooper15-Feb-05 4:01 
GeneralRe: CurrentCellChanged event !!!!!!!!!!!!!! Pin
innocent7315-Feb-05 4:14
innocent7315-Feb-05 4:14 
GeneralRe: CurrentCellChanged event !!!!!!!!!!!!!! Pin
Huseyin Altindag15-Feb-05 22:58
Huseyin Altindag15-Feb-05 22:58 
GeneralSSH Socket Programming Pin
Jason Weibel15-Feb-05 3:52
Jason Weibel15-Feb-05 3:52 
GeneralImage generation Pin
Esmo200015-Feb-05 3:49
Esmo200015-Feb-05 3:49 
GeneralUdpClient not receiving anything Pin
User 665815-Feb-05 3:42
User 665815-Feb-05 3:42 
GeneralRe: UdpClient not receiving anything Pin
Judah Gabriel Himango15-Feb-05 7:53
sponsorJudah Gabriel Himango15-Feb-05 7:53 
GeneralRe: UdpClient not receiving anything Pin
User 665815-Feb-05 9:02
User 665815-Feb-05 9:02 
GeneralRe: UdpClient not receiving anything Pin
User 665815-Feb-05 9:31
User 665815-Feb-05 9:31 
GeneralGet status from fax (FAXCOMLib) Pin
znize15-Feb-05 2:45
znize15-Feb-05 2:45 
GeneralHuffman algorithm Pin
iceburnbarry15-Feb-05 2:24
iceburnbarry15-Feb-05 2:24 

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.