Visual Basic - CreateProcess!?!?

Life is soft - evento anual de software empresarial
 
Vista:

CreateProcess!?!?

Publicado por Lars (20 intervenciones) el 10/04/2003 16:43:55
Buenas,

resulta que tengo problemas a la hora de crear un proceso, con Createprocess, y si bien sí me abre el programa en cuestión, no hace ni caso de la posición en pantalla que le indico. Pueden ayudarme?!

Adjunto el código:

Dim ret As Long
Dim start As STARTUPINFO
Dim proc As PROCESS_INFORMATION
Dim sa As SECURITY_ATTRIBUTES
Dim hWritePipe As Long

sa.nLength = Len(sa)
sa.bInheritHandle = 1&
sa.lpSecurityDescriptor = 0&

start.dwFlags = STARTF_USEPOSITION + STARTF_USESIZE

start.cb = Len(start)
start.dwX = 0
start.dwY = 0
start.dwXSize = 10
start.dwYSize = 10

ret& = CreateProcessA(0&, "notepad.exe", _
sa, sa, 1&, _
NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc)


Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder