5 instantiations of LPARAM
Microsoft.Private.Windows.Core (5)
Windows.Win32.LPARAM.g.cs (1)
33
public static implicit operator LPARAM(nint value) => new
LPARAM
(value);
Windows\Win32\Foundation\LPARAM.cs (4)
11
public static unsafe implicit operator LPARAM(void* value) =>
new
((nint)value);
13
public static explicit operator LPARAM(BOOL value) =>
new
((nint)value);
15
public static implicit operator LPARAM(int value) =>
new
(value);
20
public static explicit operator LPARAM(uint value) =>
new
((nint)(nuint)value);
79 references to LPARAM
Microsoft.Private.Windows.Core (79)
Windows.Win32.LPARAM.g.cs (9)
25
: IEquatable<
LPARAM
>
31
public static implicit operator nint(
LPARAM
value) => value.Value;
33
public static implicit operator
LPARAM
(nint value) => new LPARAM(value);
35
public static bool operator ==(
LPARAM
left,
LPARAM
right) => left.Value == right.Value;
37
public static bool operator !=(
LPARAM
left,
LPARAM
right) => !(left == right);
39
public bool Equals(
LPARAM
other) => this.Value == other.Value;
41
public override bool Equals(object obj) => obj is
LPARAM
other && this.Equals(other);
Windows.Win32.MSG.g.cs (1)
51
internal winmdroot.Foundation.
LPARAM
lParam;
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (2)
380
internal static unsafe winmdroot.Foundation.BOOL EnumEnhMetaFile(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HENHMETAFILE hmf, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.
LPARAM
,int> proc, void* param3, winmdroot.Foundation.RECT? lpRect)
401
internal static extern unsafe winmdroot.Foundation.BOOL EnumEnhMetaFile(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HENHMETAFILE hmf, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.
LPARAM
,int> proc, [Optional] void* param3, [Optional] winmdroot.Foundation.RECT* lpRect);
Windows.Win32.PInvokeCore.USER32.dll.g.cs (15)
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);
248
internal static extern unsafe winmdroot.Foundation.BOOL EnumChildWindows(winmdroot.Foundation.HWND hWndParent, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,global::Windows.Win32.Foundation.
LPARAM
,global::Windows.Win32.Foundation.BOOL> lpEnumFunc, winmdroot.Foundation.
LPARAM
lParam);
252
internal static unsafe winmdroot.Foundation.BOOL EnumDisplayMonitors(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.RECT? lprcClip, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.
LPARAM
,global::Windows.Win32.Foundation.BOOL> lpfnEnum, winmdroot.Foundation.
LPARAM
dwData)
280
internal static extern unsafe winmdroot.Foundation.BOOL EnumDisplayMonitors(winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT* lprcClip, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.
LPARAM
,global::Windows.Win32.Foundation.BOOL> lpfnEnum, winmdroot.Foundation.
LPARAM
dwData);
303
internal static extern unsafe winmdroot.Foundation.BOOL EnumThreadWindows(uint dwThreadId, delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,global::Windows.Win32.Foundation.
LPARAM
,global::Windows.Win32.Foundation.BOOL> lpfn, winmdroot.Foundation.
LPARAM
lParam);
323
internal static extern unsafe winmdroot.Foundation.BOOL EnumWindows(delegate *unmanaged[Stdcall]<global::Windows.Win32.Foundation.HWND,global::Windows.Win32.Foundation.
LPARAM
,global::Windows.Win32.Foundation.BOOL> lpEnumFunc, 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\Foundation\LPARAM.cs (17)
10
public static unsafe implicit operator void*(
LPARAM
value) => (void*)value.Value;
11
public static unsafe implicit operator
LPARAM
(void* value) => new((nint)value);
13
public static explicit operator
LPARAM
(BOOL value) => new((nint)value);
15
public static implicit operator
LPARAM
(int value) => new(value);
17
public static explicit operator int(
LPARAM
value) => (int)value.Value;
18
public static explicit operator uint(
LPARAM
value) => (uint)(int)value.Value;
19
public static explicit operator nuint(
LPARAM
value) => (nuint)value.Value;
20
public static explicit operator
LPARAM
(uint value) => new((nint)(nuint)value);
22
public static explicit operator HWND(
LPARAM
value) => (HWND)value.Value;
24
public static unsafe explicit operator
LPARAM
(HWND value) => (
LPARAM
)value.Value;
26
public static explicit operator
LPARAM
(Color value) => (
LPARAM
)ColorTranslator.ToWin32(value);
27
public static explicit operator Point(
LPARAM
value) => new(value.SIGNEDLOWORD, value.SIGNEDHIWORD);
28
public static explicit operator
LPARAM
(Point value) => MAKELPARAM(value.X, value.Y);
41
public static
LPARAM
MAKELPARAM(int low, int high) => (
LPARAM
)(uint)((int)(((ushort)(((nuint)low) & 0xffff))
Windows\Win32\PInvokeCore.CallWindowProc.cs (2)
8
internal 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.EnumChildWindows.cs (5)
11
private delegate BOOL EnumChildWindowsNativeCallback(HWND hWnd,
LPARAM
lParam);
13
private static readonly delegate* unmanaged[Stdcall]<HWND,
LPARAM
, BOOL> s_enumChildWindowsNativeCallbackFunctionPointer =
14
(delegate* unmanaged[Stdcall]<HWND,
LPARAM
, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumChildWindowsNativeCallback);
29
return EnumChildWindows(hwndParent.Handle, s_enumChildWindowsNativeCallbackFunctionPointer, (
LPARAM
)(nint)gcHandle);
42
private static BOOL HandleEnumChildWindowsNativeCallback(HWND hWnd,
LPARAM
lParam)
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (5)
11
private delegate BOOL EnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc, RECT* lprcMonitor,
LPARAM
lParam);
13
private static readonly delegate* unmanaged[Stdcall]<HMONITOR, HDC, RECT*,
LPARAM
, BOOL> s_enumDisplayMonitorsNativeCallbackFunctionPointer =
14
(delegate* unmanaged[Stdcall]<HMONITOR, HDC, RECT*,
LPARAM
, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumDisplayMonitorsNativeCallback);
25
return EnumDisplayMonitors(default, (RECT*)null, s_enumDisplayMonitorsNativeCallbackFunctionPointer, (
LPARAM
)(nint)gcHandle);
37
private static BOOL HandleEnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc, RECT* lprcMonitor,
LPARAM
lParam)
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (5)
11
private delegate BOOL EnumThreadWindowsNativeCallback(HWND hWnd,
LPARAM
lParam);
13
private static readonly delegate* unmanaged[Stdcall]<HWND,
LPARAM
, BOOL> s_enumThreadWindowsNativeCallbackFunctionPointer =
14
(delegate* unmanaged[Stdcall]<HWND,
LPARAM
, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumThreadWindowsNativeCallback);
34
(
LPARAM
)(nint)gcHandle);
46
private static BOOL HandleEnumThreadWindowsNativeCallback(HWND hWnd,
LPARAM
lParam)
Windows\Win32\PInvokeCore.EnumWindows.cs (5)
11
private delegate BOOL EnumWindowsNativeCallback(HWND hWnd,
LPARAM
lParam);
13
private static readonly delegate* unmanaged[Stdcall]<HWND,
LPARAM
, BOOL> s_enumWindowsNativeCallbackFunctionPointer =
14
(delegate* unmanaged[Stdcall]<HWND,
LPARAM
, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumWindowsNativeCallback);
28
return EnumWindows(s_enumWindowsNativeCallbackFunctionPointer, (
LPARAM
)(nint)gcHandle);
40
private static BOOL HandleEnumWindowsNativeCallback(HWND hWnd,
LPARAM
lParam)
Windows\Win32\PInvokeCore.PostMessage.cs (2)
8
/// <inheritdoc cref="PostMessage(HWND, uint, WPARAM,
LPARAM
)"/>
13
LPARAM
lParam = default)
Windows\Win32\PInvokeCore.SendMessage.cs (10)
8
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
13
LPARAM
lParam = default) where T : IHandle<HWND>
20
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
25
LPARAM
lParam = default) where THwnd : IHandle<HWND> where TWParam : IHandle<HWND>
32
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
41
return SendMessage(hWnd, Msg, wParam, (
LPARAM
)c);
45
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
56
return SendMessage(hWnd, Msg, wParam, (
LPARAM
)l);
60
/// <inheritdoc cref="SendMessage(HWND, uint, WPARAM,
LPARAM
)"/>
72
return SendMessage(hWnd, Msg, (WPARAM)(nuint)w, (
LPARAM
)(nint)l);
Windows\Win32\UI\WindowsAndMessaging\WNDPROC.cs (1)
6
internal delegate LRESULT WNDPROC(HWND hWnd, uint msg, WPARAM wParam,
LPARAM
lParam);