Click here to Skip to main content
15,885,980 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Dar All,

What is CreateProcessBynum Lib "kernel32" ?
how to use ?

VB
Private Declare Function CreateProcessBynum Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal lpProcessAttributes As Integer, ByVal lpThreadAttributes As Integer, ByVal bInheritHandles As Integer, ByVal dwCreationFlags As Integer, ByRef lpEnvironment As String, ByVal lpCurrentDirectory As String, ByRef lpStartupInfo As STARTUPINFO, ByRef lpProcessInformation As PROCESS_INFORMATION) As Integer


this code run in windows xp but not run windows 7

how to change the line work in windows 7
pl help me
Posted
Updated 2-Apr-14 10:24am
v2
Comments
Sergey Alexandrovich Kryukov 2-Apr-14 0:58am    
"but not run" is not informative. I suspect this is permission. And it works in Windows 7 exactly as in XP. Tried to "Run as administrator"?
—SA

1 solution

MSDN is silent about CreateProcessByNum, but CreateProcess[^] documentation is available.

In my opinion you should forget about old function. Use .net equivalent. Have a look here:
Processes and Threads[^]
Process.Start Method[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900