コード例 #1
0
		static extern IntPtr CGE_PINTPTR_METHODS(IntPtr cge, CGE_INTPTR_METHOD method, IntPtr arg1, int arg2);		
コード例 #2
0
		private IntPtr OnCallbackIntptr (CGE_INTPTR_METHOD method, IntPtr arg1, int arg2)
		{
			switch (method)
			{
			case CGE_INTPTR_METHOD.GET_PARENT:
			return Parent.Raw;

			case CGE_INTPTR_METHOD.GET_TEXT:
				return Marshal.StringToCoTaskMemUni(Text);
				
			}
			
			return IntPtr.Zero;
		}