vb.net - inject cookie into MS Edge from Windows Forms App -


i have windows form app (vb.net) inject cookie ie, chrome , firefox. there similar method injecting ms edge?

sample code injecting ie11:

option explicit on module createcookieie private declare function internetsetcookie lib "wininet.dll" _  alias "internetsetcookiea" _  (byval lpszurlname string, _  byval lpszcookiename string, _  byval lpszcookiedata string) boolean  private declare function internetsetcookieex lib "wininet.dll" _  alias "internetsetcookieexa" _  (byval lpszurlname string,  byval lpszcookiename string,  byval lpszcookiedata string,  dwflags int64,  dwreserved intptr) boolean  public function setiecookie(cookievalue string, cookieexptimegmt string, hostname string, cookiename string)     dim cookiecreated boolean      cookiecreated = internetsetcookie("http://" & hostname, cookiename, cookievalue & "; expires = " & cookieexptimegmt)      return cookiecreated end function end module 

please let me know if more details needed. don't have code injecting ms edge don't know start.


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -