static public bool FindProcessID(ref LDS_FIND_PID fp) { uint hwnd = GetLDSWindowHandle(); uint PID = _GetCurrentProcessId(); if (hwnd == 0) { return(false); // ERR } _SendMessage( hwnd, Convert.ToUInt32(LDSCommands.WM_LDS_CMD_FINDPROCESSID), PID, ref fp); return(true); // OK }
private static extern uint _SendMessage(uint hWnd, uint uMsg, uint wParam, ref LDS_FIND_PID lParam);
public static bool FindProcessID(ref LDS_FIND_PID fp) { uint hwnd = GetLDSWindowHandle(); uint PID = _GetCurrentProcessId(); if (hwnd == 0) return false; // ERR _SendMessage( hwnd, Convert.ToUInt32(LDSCommands.WM_LDS_CMD_FINDPROCESSID), PID, ref fp); return true; // OK }
static private extern uint _SendMessage(uint hWnd, uint uMsg, uint wParam, ref LDS_FIND_PID lParam);