OpenProcess(&H100000, True, pID). What pID is? 
Author Message
 OpenProcess(&H100000, True, pID). What pID is?

My Access code opens report for printing:
DoCmd.OpenReport a, acViewNormal

I need to wait until this process ends.  I open process and here is
the problem...

I try to use this:
OpenProcess(&H100000, True, pID)

I don't know what pID is in my case.

I have working pease of code in VB6 where:
 pID = Shell("c:\test.bat", 0)

Thanks



Mon, 10 Nov 2003 07:17:35 GMT  
 OpenProcess(&H100000, True, pID). What pID is?
ProccessID
Quote:

> My Access code opens report for printing:
> DoCmd.OpenReport a, acViewNormal

> I need to wait until this process ends.  I open process and here is
> the problem...

> I try to use this:
> OpenProcess(&H100000, True, pID)

> I don't know what pID is in my case.

> I have working pease of code in VB6 where:
>  pID = Shell("c:\test.bat", 0)

> Thanks



Mon, 10 Nov 2003 08:19:03 GMT  
 OpenProcess(&H100000, True, pID). What pID is?
Yes, I know this is ProcessID.
I don't know what does it equal to in my case.

On Thu, 24 May 2001 02:19:03 +0200, "Andreas H?kansson"

Quote:

>ProccessID


>> My Access code opens report for printing:
>> DoCmd.OpenReport a, acViewNormal

>> I need to wait until this process ends.  I open process and here is
>> the problem...

>> I try to use this:
>> OpenProcess(&H100000, True, pID)

>> I don't know what pID is in my case.

>> I have working pease of code in VB6 where:
>>  pID = Shell("c:\test.bat", 0)

>> Thanks



Mon, 10 Nov 2003 09:23:58 GMT  
 OpenProcess(&H100000, True, pID). What pID is?
You can use "OpenPrinter" and "EnumJobs" to check whether there's any jobs
in the specific printer


Mon, 10 Nov 2003 11:55:27 GMT  
 OpenProcess(&H100000, True, pID). What pID is?
GetCurrentProcessID or GetCurrentProcess .. i don't know which of these but
it would be easy to find out. just try.

ps.: it would be much nicer if you used your name to post, not just "v".



Mon, 10 Nov 2003 20:11:48 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to tie the dllhost.exe PID to COM+ Application PID programmatically

2. When does the Word PID (Product ID change)

3. where is the PID number

4. CreateProcess Api returns a bad Pid

5. De PID's

6. How to get my own PID ?

7. Get PID from hProcess through CreateRemoteThread?

8. Pid of a particular instance of a process

9. Killing Processes by PID on Win9x/ME/NT/2000

10. Getting the PID / Task ID of running program

11. PID control

12. How to test if PID is used

 

 
Powered by phpBB® Forum Software