Click here to Skip to main content
15,918,330 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: PLS help for the datagrid button column Pin
Lisana5-Aug-04 5:46
Lisana5-Aug-04 5:46 
GeneralProblem with Serilization Pin
OKabir4-Aug-04 9:19
OKabir4-Aug-04 9:19 
GeneralRe: Problem with Serilization Pin
Dave Kreskowiak4-Aug-04 10:58
mveDave Kreskowiak4-Aug-04 10:58 
GeneralsaveDib Pin
The Hop4-Aug-04 8:58
sussThe Hop4-Aug-04 8:58 
GeneralRe: saveDib Pin
Dave Kreskowiak4-Aug-04 10:55
mveDave Kreskowiak4-Aug-04 10:55 
Generalvb.net + MS Word Pin
computerg33k4-Aug-04 7:35
computerg33k4-Aug-04 7:35 
GeneralRe: vb.net + MS Word Pin
computerg33k5-Aug-04 10:55
computerg33k5-Aug-04 10:55 
GeneralRunning OpenProcess does not return a process handle Pin
Simon Kearn4-Aug-04 6:10
sussSimon Kearn4-Aug-04 6:10 
I have a custom made shell running in place of the normal windows desktop, and form this the user can select an icon that will run a Perl executable. This then calls another application (known as ui.exe) and terminates. The problem I have is that I am trying to find when the application (ui.exe) is closed down. I can't use the WaitForSingleObject because this will only trap when the Perl executable completes.

Therefore I decided to use the EnumProcesses API to get the ProcessIDs currently running, and then to use OpenProcess to get the process handles. After this I have put in place the API EnumProcessModules followed by GetModuleFileNameEx to ensure which processId goes with the application name ui.exe. I was then hoping to use the ui.exe application name and monitor this via the use of a timer that will continuously check for the processId running. When it finishes then I was going to log this in a file.

However when I call OpenProcess the process handles returned are always 0 (although at this stage I only have processes running such as explorer.exe). I have set the desired access to be PROCESS_QUERY_INFORMATION or PROCESS_VM_READ. I have also tried PROCESS_ALL_ACCESS but that did not seem to help.

I am currently running the application in development to see what information I get back.

Can anyone help me out on this.

Simes

GeneralEvent for Checkbox in Datagrid Pin
partt4-Aug-04 4:56
partt4-Aug-04 4:56 
Generalmodal dialog in ActiveX Pin
dudic4-Aug-04 3:32
dudic4-Aug-04 3:32 
GeneralCheckbox in DTPicker control (Visual Basic 6) Pin
Ravi S.V.4-Aug-04 2:04
Ravi S.V.4-Aug-04 2:04 
GeneralVB Collection Pin
r i s h a b h s4-Aug-04 0:02
r i s h a b h s4-Aug-04 0:02 
GeneralRe: VB Collection Pin
Murugavel S4-Aug-04 0:33
Murugavel S4-Aug-04 0:33 
GeneralVB Collection Pin
tamil_m_864-Aug-04 1:49
tamil_m_864-Aug-04 1:49 
Generalaccounting database Pin
puspita3-Aug-04 21:45
puspita3-Aug-04 21:45 
GeneralRe: accounting database Pin
bensoncd4-Aug-04 10:49
bensoncd4-Aug-04 10:49 
GeneralRe: accounting database Pin
puspita22-Aug-04 19:34
puspita22-Aug-04 19:34 
Generalcreating database in the installation Pin
kowplunk3-Aug-04 19:07
kowplunk3-Aug-04 19:07 
GeneralRe: creating database in the installation Pin
Murugavel S4-Aug-04 0:09
Murugavel S4-Aug-04 0:09 
GeneralRe: creating database in the installation Pin
kowplunk4-Aug-04 6:41
kowplunk4-Aug-04 6:41 
GeneralFileCopy Pin
MJZ3-Aug-04 16:59
MJZ3-Aug-04 16:59 
GeneralRe: FileCopy Pin
Murugavel S4-Aug-04 0:27
Murugavel S4-Aug-04 0:27 
GeneralRe: FileCopy Pin
Nick Seng4-Aug-04 15:16
Nick Seng4-Aug-04 15:16 
QuestiondataRows, dataCols, etc...? Pin
kowplunk3-Aug-04 16:04
kowplunk3-Aug-04 16:04 
AnswerRe: dataRows, dataCols, etc...? Pin
Murugavel S4-Aug-04 0:52
Murugavel S4-Aug-04 0:52 

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.