 | JCWindowsManagerSetWindowLongPtr Method |
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.2.250821-1d39389489804d6a3c7a28203f93adc3f9dc1870
Syntaxpublic static IntPtr SetWindowLongPtr(
IntPtr hWnd,
int nIndex,
IntPtr dwNewLong
)
Public Shared Function SetWindowLongPtr (
hWnd As IntPtr,
nIndex As Integer,
dwNewLong As IntPtr
) As IntPtr
Parameters
- hWnd IntPtr
- A handle to the window and, indirectly, the class to which the window belongs.
- nIndex Int32
- The zero-based offset to the value to be retrieved. Valid values are in the range zero through the number of bytes of extra window memory, minus the size of a LONG_PTR. To retrieve any other value, specify one of the JCWindowsManagerGWL values.
- dwNewLong IntPtr
- The replacement value.
Return Value
IntPtrIf the function succeeds, the return value is the previous value of the specified offset. If the function fails, the return value is
Zero. To get extended error information, call
GetLastError.
RemarksThis static method is required because legacy OSes do not support SetWindowLongPtr
See Also