This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _ATL_NO_AUTOMATIC_NAMESPACE | |
#include <atlbase.h> | |
ATL::CAtlWinModule _Module; | |
#include <atlwin.h> | |
class Window : public ATL::CWindowImpl<Window> | |
{ | |
public: | |
DECLARE_WND_CLASS(_T("AtlWindow")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.Content.PM; | |
using Android.OS; | |
using Android.Runtime; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Android.App; | |
using Android.Content; | |
using Android.Graphics; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Support.V7.App; | |
using Android.Support.V7.Widget; | |
using Android.Views; | |
using Android.Widget; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! size_of { | |
($x:ty) => { | |
(stringify!($x), std::mem::size_of::<$x>()) | |
}; | |
} | |
pub enum EnumA<T> { | |
A(T), | |
B, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::ffi::c_void; | |
use std::ptr; | |
type Error = u32; | |
type FnMessageBox = extern "stdcall" fn(hWnd: *const c_void, lpText: *const u16, lpCaption: *const u16, uType: u32) -> i32; | |
#[link(name = "kernel32")] | |
#[no_mangle] | |
extern "stdcall" { | |
fn GetLastError() -> Error; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct trait { | |
void **fnptrs; | |
}; | |
struct rust_struct { | |
// data | |
}; | |
struct trait_ref { | |
trait *t; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
/// <summary> |