Exemplo n.º 1
0
        // Token: 0x06000727 RID: 1831 RVA: 0x0000DEF4 File Offset: 0x0000C0F4
        public static bool SetCookie(HTTPCookieContainerHandle hCookieContainer, string pchHost, string pchUrl, string pchCookie)
        {
            InteropHelp.TestIfAvailableClient();
            bool result;

            using (InteropHelp.UTF8StringHandle utf8StringHandle = new InteropHelp.UTF8StringHandle(pchHost))
            {
                using (InteropHelp.UTF8StringHandle utf8StringHandle2 = new InteropHelp.UTF8StringHandle(pchUrl))
                {
                    using (InteropHelp.UTF8StringHandle utf8StringHandle3 = new InteropHelp.UTF8StringHandle(pchCookie))
                    {
                        result = NativeMethods.ISteamHTTP_SetCookie(CSteamAPIContext.GetSteamHTTP(), hCookieContainer, utf8StringHandle, utf8StringHandle2, utf8StringHandle3);
                    }
                }
            }
            return(result);
        }
Exemplo n.º 2
0
 // Token: 0x06000728 RID: 1832 RVA: 0x00005480 File Offset: 0x00003680
 public static bool SetHTTPRequestCookieContainer(HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamHTTP_SetHTTPRequestCookieContainer(CSteamAPIContext.GetSteamHTTP(), hRequest, hCookieContainer));
 }
Exemplo n.º 3
0
 // Token: 0x06000726 RID: 1830 RVA: 0x0000546E File Offset: 0x0000366E
 public static bool ReleaseCookieContainer(HTTPCookieContainerHandle hCookieContainer)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamHTTP_ReleaseCookieContainer(CSteamAPIContext.GetSteamHTTP(), hCookieContainer));
 }