(self, address, data)
return status
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)
Write data to the specified MSR address.
Write data to the specified MSR address .
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
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