9 instantiations of WPARAM
Microsoft.Private.Windows.Core (9)
Windows.Win32.WPARAM.g.cs (1)
33 public static implicit operator WPARAM(nuint value) => new WPARAM(value);
Windows\Win32\Foundation\WPARAM.cs (8)
11public static implicit operator WPARAM(void* value) => new((nuint)value); 14public static explicit operator WPARAM(HWND value) => new((nuint)value.Value); 17public static explicit operator WPARAM(HDC value) => new((nuint)value.Value); 19public static explicit operator WPARAM(HFONT value) => new((nuint)value.Value); 22public static explicit operator WPARAM(BOOL value) => new((nuint)(nint)value); 27public static explicit operator WPARAM(int value) => new((nuint)(nint)value); 29public static explicit operator WPARAM(char value) => new(value); 31public static explicit operator WPARAM(Color value) => new((nuint)ColorTranslator.ToWin32(value));
49 references to WPARAM
Microsoft.Private.Windows.Core (49)
Windows.Win32.MSG.g.cs (1)
45 internal winmdroot.Foundation.WPARAM wParam;
Windows.Win32.PInvokeCore.USER32.dll.g.cs (5)
83 internal static extern unsafe winmdroot.Foundation.LRESULT CallWindowProc(delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,uint,global::Windows.Win32.Foundation.WPARAM,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.LRESULT> lpPrevWndFunc, winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 138 internal static extern winmdroot.Foundation.LRESULT DefWindowProc(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 825 internal static extern winmdroot.Foundation.BOOL PostMessage(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam); 894 internal static extern winmdroot.Foundation.LRESULT SendMessage(winmdroot.Foundation.HWND hWnd, uint Msg, winmdroot.Foundation.WPARAM wParam, winmdroot.Foundation.LPARAM lParam);
Windows.Win32.WPARAM.g.cs (9)
25 : IEquatable<WPARAM> 31 public static implicit operator nuint(WPARAM value) => value.Value; 33 public static implicit operator WPARAM(nuint value) => new WPARAM(value); 35 public static bool operator ==(WPARAM left, WPARAM right) => left.Value == right.Value; 37 public static bool operator !=(WPARAM left, WPARAM right) => !(left == right); 39 public bool Equals(WPARAM other) => this.Value == other.Value; 41 public override bool Equals(object obj) => obj is WPARAM other && this.Equals(other);
Windows\Win32\Foundation\WPARAM.cs (17)
10public static implicit operator void*(WPARAM value) => (void*)value.Value; 11public static implicit operator WPARAM(void* value) => new((nuint)value); 13public static explicit operator HWND(WPARAM value) => (HWND)(nint)value.Value; 14public static explicit operator WPARAM(HWND value) => new((nuint)value.Value); 16public static explicit operator HDC(WPARAM value) => (HDC)(nint)value.Value; 17public static explicit operator WPARAM(HDC value) => new((nuint)value.Value); 19public static explicit operator WPARAM(HFONT value) => new((nuint)value.Value); 21public static explicit operator BOOL(WPARAM value) => (BOOL)(nint)value.Value; 22public static explicit operator WPARAM(BOOL value) => new((nuint)(nint)value); 24public static explicit operator int(WPARAM value) => (int)(nint)value.Value; 25public static explicit operator uint(WPARAM value) => (uint)value.Value; 26public static explicit operator nint(WPARAM value) => (nint)value.Value; 27public static explicit operator WPARAM(int value) => new((nuint)(nint)value); 29public static explicit operator WPARAM(char value) => new(value); 31public static explicit operator WPARAM(Color value) => new((nuint)ColorTranslator.ToWin32(value)); 44public static WPARAM MAKEWPARAM(int low, int high) => 45(WPARAM)(uint)((int)(((ushort)(((nuint)low) & 0xffff)) | ((uint)((ushort)(((nuint)high) & 0xffff))) << 16));
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (2)
55public static explicit operator WPARAM(in CreateDcScope scope) => (WPARAM)(nuint)(nint)scope.HDC;
Windows\Win32\PInvokeCore.CallWindowProc.cs (2)
8internal static unsafe LRESULT CallWindowProc<T>(void* lpPrevWndFunc, T hWnd, uint Msg, WPARAM wParam, LPARAM lParam) 12(delegate* unmanaged[Stdcall]<HWND, uint, WPARAM, LPARAM, LRESULT>)lpPrevWndFunc,
Windows\Win32\PInvokeCore.PostMessage.cs (2)
8/// <inheritdoc cref="PostMessage(HWND, uint, WPARAM, LPARAM)"/> 12WPARAM wParam = default,
Windows\Win32\PInvokeCore.SendMessage.cs (10)
8/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 12WPARAM wParam = default, 20/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 27LRESULT result = SendMessage(hWnd.Handle, (uint)Msg, (WPARAM)wParam.Handle, lParam); 32/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 36WPARAM wParam, 45/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 49WPARAM wParam, 60/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM, LPARAM)"/> 72return SendMessage(hWnd, Msg, (WPARAM)(nuint)w, (LPARAM)(nint)l);
Windows\Win32\UI\WindowsAndMessaging\WNDPROC.cs (1)
6internal delegate LRESULT WNDPROC(HWND hWnd, uint msg, WPARAM wParam, LPARAM lParam);