Desktop Functions: Smart Device Functions:
|
InternetSetCookie (wininet)
C# Signature:
[DllImport("wininet.dll", CharSet=CharSet.Auto, SetLastError=true)] VB Signature:
Declare Function InternetSetCookie Lib "wininet.dll" (TODO) As TODO User-Defined Types:None. Alternative Managed API:Do you know one? Please contribute it! Notes:None. Tips & Tricks:Please add some! Sample Code:bool b = InternetSetCookie("http://localhost/", "keyname", "value; Expires = " + DateTime.Now.AddDay(10).ToString("R")); http://msdn.microsoft.com/en-us/library/aa385107(VS.85).aspx Note: couldn't figure out how to add a new fcn, so I'm adding this here:C# Signature:
[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)] Sample Code:InternetSetCookieEx("http://foo.bar.baz", "COOKIE_NAME", "COOKIE_VALUE" "; Expires = " DateTime.Now.AddDay(10).ToString("R"), 2147484672, IntPtr.Zero); Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|