parameters: (self)
return_statement: return hThread
docstring: @rtype:  L{ThreadHandle}
          @return: Thread handle received from the system.
              Returns C{None} if the handle is not available.
function: def get_thread_handle(self):
          """
          @rtype:  L{ThreadHandle}
          @return: Thread handle received from the system.
              Returns C{None} if the handle is not available.
          """
          # The handle doesn't need to be closed.
          # See http://msdn.microsoft.com/en-us/library/ms681423(VS.85).aspx
          hThread = self.raw.u.CreateProcessInfo.hThread
          if hThread in (0, win32.NULL, win32.INVALID_HANDLE_VALUE):
              hThread = None
          else:
              hThread = ThreadHandle(hThread, False, win32.THREAD_ALL_ACCESS)
          return hThread
function_tokens: def get_thread_handle ( self ) : # The handle doesn't need to be closed. # See http://msdn.microsoft.com/en-us/library/ms681423(VS.85).aspx hThread = self . raw . u . CreateProcessInfo . hThread if hThread in ( 0 , win32 . NULL , win32 . INVALID_HANDLE_VALUE ) : hThread = None else : hThread = ThreadHandle ( hThread , False , win32 . THREAD_ALL_ACCESS ) return hThread