Пример #1
0
        //Returns the PID for spotify application.
        public int getProcessId(IntPtr hwnd)
        {
            int processId             = 0;
            int windowThreadProcessId = DLL_Methods.GetWindowThreadProcessId(hwnd, out processId);

            return(processId);
        }
Пример #2
0
        //Returns the PID for spotify application.
        public int getSpotifyPID()
        {
            int processId             = 0;
            int windowThreadProcessId = DLL_Methods.GetWindowThreadProcessId(getSpotifyWindowHandle(), out processId);

            return(processId);
        }
Пример #3
0
 //Returns handle to the spotify window.
 public IntPtr getSpotify()
 {
     return(DLL_Methods.FindWindow("SpotifyMainWindow", null));
 }