
    	h                         S r SSKrSSKrSSKrSSKrS r\S:X  a5  \" \R                  5      S:X  a  \" \R                  S   5        g\
" \ 5        gg)a  testDCOM.py - Simple DCOM test
Usage: testDCOM.py serverName

Attempts to start the Python.Interpreter object on the named machine,
and checks that the object is indeed running remotely.

Requires the named server be configured to run DCOM (using dcomcnfg.exe),
and the Python.Interpreter object installed and registered on that machine.

The Python.Interpreter object must be installed on the local machine,
but no special DCOM configuration should be necessary.
    Nc                    U R                  5       [        R                  " 5       R                  5       :X  a  [        S5        g [        R
                  [        R                  ) -  n[        R                  R                  SXS9nUR                  S5        UR                  S5      nU R                  5       UR                  5       :w  a  [        SR                  X5      5        g [        SU -  5        g )Nz=You must specify a remote server name, not the local machine!zPython.Interpreter)clsctxzimport win32apizwin32api.GetComputerName()zBError: The object created on server '{}' reported its name as '{}'z+Object created and tested OK on server '%s')lowerwin32apiGetComputerNameprint	pythoncomCLSCTX_SERVERCLSCTX_INPROC_SERVERwin32comclient
DispatchExExecEvalformat)
serverNamer   ob
actualNames       iC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\win32com/test/testDCOM.pytestr      s    X557==??MN
 $$	(F(F'FFF		#	#$8*	#	TBGG56JZ--//PWW	
 	;jHI    __main__      )usagesysr	   r   win32com.clientr   r   __name__lenargvr    r   r   <module>r"      sX   	    J, z
388}SXXa[e	 r   