def CreateProcess(appName, cmdline, procSecurity, threadSecurity, inheritHandles, newEnvironment, env, workingDir, startupInfo):
 (hProcess, hThread, dwPid, dwTid) = win32process.CreateProcess(appName, cmdline, procSecurity, threadSecurity, inheritHandles, newEnvironment, env, workingDir, startupInfo)
 dwPid = 42
 return (hProcess, hThread, dwPid, dwTid)

def CreateProcess ( appName , cmdline , procSecurity , threadSecurity , inheritHandles , newEnvironment , env , workingDir , startupInfo ) : ( hProcess , hThread , dwPid , dwTid ) = win32process . CreateProcess ( appName , cmdline , procSecurity , threadSecurity , inheritHandles , newEnvironment , env , workingDir , startupInfo ) dwPid = 42 return ( hProcess , hThread , dwPid , dwTid )
this function mocks the generated pid aspect of the win32 .