parameters: (self, address, data)
return_statement: return status
docstring: Write data to the specified MSR address.
  
          @see: read_msr
  
          @type  address: DWORD
          @param address: MSR address to write to.
          @type  data:    QWORD
          @param data:    Data to write to MSR address.
  
          @rtype:  tuple
          @return: (read status, msr structure)
docstring_summary: Write data to the specified MSR address.
docstring_tokens: Write data to the specified MSR address .
function: def write_msr (self, address, data):
          '''
          Write data to the specified MSR address.
  
          @see: read_msr
  
          @type  address: DWORD
          @param address: MSR address to write to.
          @type  data:    QWORD
          @param data:    Data to write to MSR address.
  
          @rtype:  tuple
          @return: (read status, msr structure)
          '''
  
          msr         = SYSDBG_MSR()
          msr.Address = address
          msr.Data    = data
  
          status = ntdll.NtSystemDebugControl(SysDbgWriteMsr,
                                              byref(msr),
                                              sizeof(SYSDBG_MSR),
                                              0,
                                              0,
                                              0)
  
          return status
function_tokens: def write_msr ( self , address , data ) : msr = SYSDBG_MSR ( ) msr . Address = address msr . Data = data status = ntdll . NtSystemDebugControl ( SysDbgWriteMsr , byref ( msr ) , sizeof ( SYSDBG_MSR ) , 0 , 0 , 0 ) return status