Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "l" in [All]

ncrypt

.

cRÍâFÉd·>œtfÞfײÊ4¥™)ç¨C©R¼þžÖ@¼êÈÀ‰7ÓÉÌ6«RژåIX ÚZ ;@ £B"ß~žZÙÃãtPƬ<ÿ‚QnÀYî™gJÝäð]ä"óÃT]. ¸§ûl†¯f.¶Q~â'ù©Å…ŠŽuŸw4'Ñæ#´Šqh™¼êÐòs ñN<¼{°è웮}ïWh*c¿,„Í{áy%j

.

ã·;P”‡f[¥é tclû§çߣûº¡>‘d&ª“Ø T¡Ì¾4®š-ÅΏ\3l–(àþƚíHÐJHfXô— Pk«—A»%d×½t_gÜ4UÜ;n–c½vcè/•aF¦ÀEKïԉ«Ù|ïkÖ´¾Þb×¹v€«†,ãê­º±ÜÐ/Ç ZŸÖA/òøU·Ãáoà؊Ë&ëŸx¯«·3¼‹ ~S°}‘ÐÜýUÍçr'•>Ú/\M¢€L¹`8pÇú0ºÂ’ÏTÎ@nðo$̑Ç\÷= f‡„ýÇTø?D†‹­Ü{Wšhûœsja¾ÅƒE“œ2­á .¹êl–H<@u&òR5wæ½t–Ÿþ˜‡&Kx¯/}WF°Éx™£ì·éߚ,…Ì–eîXfÉì7…p'ÞÓþ,’ÇO°Í˜8H•èPWÄ£88äÀÛ¸Š¤ë¦HÙÆÌÃ×ÌÀÈ`lA’i3xsì§ ÍpÄ$ӁÇnˆãªeaôP—³H}»¯àŒËp™o'$I«¬½Á¬>yIö6¹(-6fI0§à%£ÎÒ·nBÖ@ÍgHá2í+•&4m.iqµx‰a*’ÆÀïïáÂã¨Å†ÆgÚ0 ©ÚoÊõ

.

Y¸—lÛNμàQ,_ÊîrJÝ}„™ÚnY?;ό覬„‘åVÍ÷p–¼æ½X<e|[ºgöýܽD@. Š Åà!ŽÖ’óÀ*Ðö°e‹T“¶žÇÓ«{±™õ=ÀÁl}Ý3Ås9R|N©2þAÃ@¹«6É»Á@ó{ß ;ϗ{Ãá$‡r[y4ˆ©U¥ŒÛòÎï¢Ã³ËçÝXV¸“2Õ¿¹=ítÎ÷¸ãZ&”ärüy9EZíO´¨L9?þrÐ'°ß«›Ë(‡lì»DՇ%­gƒžå1òˆ#· ?7 Ûb³—:ß»6Ãp0kµNüÕ@…Ó¯¢¤É©Ñ¿¢ÎôuåØöC³ýU½álØì¸§ÉtÜ Q¼$²+SóN$üLárI‡n

.

£ ( l‰ÛlŒV܇í¾Ý¨¬šæä·0‡ÝxúO·*.R¨¦¶Ì…~xZd³Ž˜ÊÊis8Œ’äRqÒ

.

ؕL‘“gj„¸!‡Ö1̞‘§¥f0íhŒì3¹¸/:µu՞¾¦Bnðu*™ëӀeœ«JZÁ2ø492<¬·¡2x!cΔb+œ?j›Ñ‰˜fÀaˆ¨˜ÒØû×¾MeÁZÊ ¿A—ç}WlƳmЏÏ\Ùö…{ª€þ»ÉýM«Ùƒ¾¯‰…Û:BdOζ²¿>³ë0ɱ0îº.a öÕ(§ŸÕ z™¦öt1¥:n° –Ö¼­ÏÃp)tP!îUٔF}çZc;’9˜Sõuœ§þ˜ªP…ÏöG @©—œ»\æÜc¾=C9™vrp–ÌdQ02ض¨%£DT¸LF÷l «Ú|°|âF¹wIR*–†fR}T‡´•üºe—Ï '°äSÂAÝ­P|ZøsÜÎÎ+‘|`ð†\aϼ*1inM‹A8Ò·™>$åó9o†¿þ³ùe„‡ˆÒ‰œš¿]‚"d–V˜pO+œÓ×=Y6|îcñ(%‘HԐbٌ¹±Ð”¶à­ ѯ"¿ZûZ»P–í”#âÎ.—MÄNNLÞl‘C°íê^ºn Ö‘Н“i |Á±7ºtvÜÛlRŸè'J(§h

.

ºtŸ«>!–Ô|Ü"‘.™å»lä…ÙfnF)ÄX{n3~H?éZç^gY9«)ïìAk•cä[tF™c‡§á¯ùÌñV´yh5©£¯ÍÍ%îün&†3öC"îpzªP°²…&êä1,Áù˜inåg7cFtâaíp' E W—éÁºÌe,™·Y5ÖϨØŸ&`‘hš»†ëL>Yî(t‘¹&<õÂŒ¤Ã¼Ja¯²•Æ4%°£-BiíÄE °ÅBuvqúЅÊ·Fº

.

õ'6 s&³ IŸ=Ûv9ÀšŠu°:Wb0¢7XüñM¾íÓ¸˜êKǃ¿iÝCFj†Ó´ì—çmªA­GÆQ:þתYf:šCéýÁcll©™ªË§†ÕS’b툐’Æo£¹ÀÙ$¶CNÐÛè(,€0Îszˆ·"<¼7»†Ûֆ.E zè+ÍÈ'­Ç4Ú3„$x=8+ßJÙ/¸U¥:tŸ¼š¸Ãu

.

3¶8ĉ›‰ä*S¿¢FT×[áµ jð ¸3nhþ¼kO%Hð•[|QzAÑ6°8#‹By¾nóTóc„SÚð_, ÿáVÃj›õ‰»y'‚šâ<ùôn뜝¸™¡iÌK*GæêÎ{N«ûM­¶¸‰ÀÎë)ãªÜ¬î¤©µMpذ•Öt¨°9N«ä’p³ àòŒ<]‡ŸŠn_}%{£™ìʤtçxé&Èã¼ÞúcvD öà%‹t>ϵø6N\á.”œ¼5Ù.”X±yÛ ±c ÿ›j|S*öÈ^Z k5lG¸«&b=å;üÀ/Þg>חRL&„ÿñeÅ[ÿ5¨/ØÊƒOZ•Ãû4.ýYö†Š÷ï4µ¢çÑTŠýg#ô‹™Âøg\ôm}Iø†ø!QÚPTÔÜ­øï:„“q™>h6«y© Kö"¯ä~¤MÉ=O×÷"ݛW„zEGijÎ34RÊÉÀ&ôôPI^äåDùï¯úÛ0Ó°‚ËÞePh¡Ø~s,o?†ÀWÑOžÒJ?lݘ·pŸ |¸[ Õ¬à£X\$S܌N ü6¶…¹UšPbE-/–ê¼»Ü]kâ]çèoNh/" ‚]´õ£žbŸ‹#Ñ]XzŠÆ7Š8®A»\w= ´{ȲHíUíÜÑwy<£÷æé'L7q×Ê®؅…s³BÐ6ö‹¬?4¡Å¾˜º­AÝïÂjÇvñ&¯]ŽOöf9$¨˜ã}3uÎèµ+Hæ«ØñìÝ8†KPÌÝ<àˆ¯ %‰§úTû÷ÝÆ¯W´ŒhR¹ªáÙjo;`co4¨%K¡*-JBÇÔ@Åå՗'1÷å(`û…Kº¾9çãòv’<J·®¸a'pB¬µ†nðÒµ©[¿ª^ωMÿȜ~õ¾½­‡’õx@/É,Ïå³iÎ?O‡{«tb`±=ØU(Ùžƒ.XàH©Ú÷cÄ&ŝÁ†ô›#íoÁ DéÄ:H-I3¾}££Æ;ç|®qÄí<!¾D+3^¯À|m

.

ËЗèPÎn„ú¡ƒAÊ®ú½ýBis9EÆTº9e±,‡‡íÎCý°×!ÎËè'ió…Fi•«ŒgÅ?íé½ç-;磝jH«åïT®ílZ°´Í}芄y¦òÙîì¶?¡ ûJ’ g+ßÏö†õ†JLŽÞgn|Y ÜYÎ9‚gW$áã‘w:,…“—áWÏ(ï021re!L8[Tÿ$òÄq]òECߒÿ%™ŒÙ¸Ìƒ×IÿO<·«Ù…,¹Bז}øÒZÑÓs®†B‡GzÕÃ]ñlio³¡ýy»i!º{¹ùR‘&ÚQKßd=¥ý'«wôKÁ32…ëP­;ãC¾û6ˆáÔWúÒùèýC(ÍêsJû”Ç™î‚F)çùÊmt ¥áreßêrê&V¯\çã”$õ쁗á]“!ï¦çÍ ‚÷KÊԛȋUm²Ÿ$ˆ¶r¸0£€oO¿H s╾þ¨˜¨Ä?š7ÆøìÑÚayÜØ•³Ω¶±5eû-TÕ(tNÿtÓÎ2ß H‚äy‰‡|9½¬õ̏‡ÙáÊÈ‘+“ô£Hºn‰,i´>ÐIu¡!WÄ: T—Ñö¿Š×áo?M̉ê‚1ñÍÝv£©nð.µ‚úÏ"vG¸ü(P­L eï‘Îèà1‡ß½àÈyæ[ ©º`°%KÏPåž_õ95H£ªLd•

.

‡]²\F*IêŠv±¨nŠO-OØüxWljEcã+‚Ç£éá±;Jôü-?ÞÁhû  ú…Ëaë‡9-©ó×QÞ_¡çªa9ˆ $Ýí`ÚÙ¬u$}n9,‡™?ƒáÏOÝ´òµÙ`.xéa­xyšRùðɇO0AËÞXû·teYï:ØN„ê…gŸftwˆYJp²†Ç¿…ôµZuø$™‡Û•dÌÃBÖBHša·Óíàþl«Vܼì4¥h÷U¤f˜,{X¹kü XòŽ ¬ó¬å?¹@Úà¦Óù'þÅ9ádhFL<É­QìÕ³ÇHØO§/˜•uœ1°öœx—Ò—ýwÆÍĐvOkK$¤öښÎ$¸åzÎEʘ2M©¢¦þwÖ}ËAdRχœí‰¨m¦d¡ԔC(uI!k°Ûû‡³K=°a¸Jì”àýS",Ö¹Ça:tùwáû¥›ÓÞ"f뙕¾U¯›$7=™×´Ò#õTåyÁÏký ïäQX¢U-“>³Ñ,&/ •Õ Û…Ž74‡ÞÉñ(Ÿ–lì¡¥)ôúžá·˜<5

.

ÅàçÌàý=ÌîPùU u8±Ã5ⅳ<ÍÃ኿R>ƚT-èos÷9":íãoyÈ þ?tљWƗòò³Ã[­iLä³»àÊvA_[/bxtÉ®»ÉUÁ0gãLç«¢>Ù.¦€‡¥È ¤’—ojÄÒµ+f

.

OµÝÝrñm¨ó‘!Ò;4Su&i½»·F©Icò«{ûž½ïU»R›õN. pÀêYÅêëÒûµQÈ*ųi‚“U È:•«(}‡%k´ëZŸ™öåL7`׈D½E¡Á¹½ZʈÎ^M;þúîÛ¶»à¥sgTø,PÊËnÎÆŠ³²b€„¶GëZürG©Ž!±“±‹@ƒS¡«²¡½§ ™š9Û·û`Z‰èòæ){\xL†h1e"«WÍ¿w‡Ü¯zM0'rË8[F˜  U;˜…¼Ò¬Y­ûA¼¥‡ /–1ùa{L:£Øq ¸¢-r 6.úÄ}T_ ÖÆÁÍÞ§'ó¡Uì‘X=‚ø Aðz'®‡‘ kýYR4„®:éê`Ìg¬÷rð8!1UKcÝÛ`¦\tDÚlneXwü›¾ZDH§ОàGtÕ`Ôý‡K“”´®ELüóˆÅ‹öŸFtÍ$ Ô ö›ñë$¸r/ AL•¹+·àˆGíYM÷màˆÛÞ·(©¨[êøœÐ ÁAƒFŸ¡€4ãõü‘ÙøØyÂÅݨ ~Îc¿ʌ¼Ýð

.

k»ÉÊØdaÍÃG¯c*Vì~ÙZC(ÏóˆNˆý‡mþÛKÉg¼B€IO‹¾ØÍZËÖ<|Ö ”À?]l^œERàÕï¿O:Á®ÌPr“ÁKç€uٙ31¨pUۑdÎj#¸i­ÑëŒօ…]Víô;3ˆo¸¦ãZ¾D”’%«I›µ!:¦¬Ï†Ó<»—615ð5>>S+-²É,…½¾É„ÁC ÊqÖ[¼5+s›À‰Tb5*ç I#¹þ‘.!¯ä_$Üqª´Cwž_|hmC{Ðkb&'vÔ÷Ÿ<x3Ûò¬¡‹£èšL«ïÞ49Cu”Õ.ÏM¤eoí¤¶¹ìZO˜¶V¡ÅÍ\[ƈÅÚ£žøÃÂ[F«97iLiu•y*`ÿÆeŠ-R¾Ê½ÙdT{-Z@Šõ¢?0ø£nh÷xÔµŒ)xèaHÎð¡[´‰‚jžr[r­ڀ‚qSÄùÐ¥k-ÄXN†má C°æ>tôÊ"€½ìc¦°5éÖxßãu‚°ž.n)òÍ¢¿M

.

üA®RˆJ£úò<O¹¹YèP¥P÷ÁÉ_D~%LC(ˆçÏ:ÑV

.

œGW´öâBh±jX{·FèmrºÄ«þï¤ØcUXkŠ!ã4œú)Ž-Â`ç²jæŸ.¹T·CŸ=¬kORE°r9€È=x׍éabWE;†¹Y@²©Œ¸R2Ã~ /ÁPt!ŽÊ[9ë©þ«½±ÛfÝöOùm»óî‹&áÐÏrRÇvœØ¥‡*wVu,u ¼}ÙÌçu4.©Ì1;s8%"Áü>;"füø3(máÈûé˜ý(%±‚œë¬dÑÊÔ´G,j~|dÏcÞð?!ƒÏ÷Êzùab?ò¾‹LïÖ¬Ñ&ÑWÆdG<]¸ovÍ&ˆ;ªwîØ¢©ÔØvÇ?8_

.

:BôKUÿðvÇz*qÆ_HZT¬àcðä5àú3^‹¨9ՙÂ"ÐLÒJvÿ—Ø'dS¢êåá6 xÇ9˧Œûu`±`jµïÿoŠçvg/'¶Sù±@Ž8orl$0DZÿžæ º ÷ƒ¿ÇÕÏKÄûÒçÓ°¢÷œÀÞ¡>ØQk‚4¢æeӖæs®x±ºŸœú¬E•8R¢«ÏÿœìTÚT¿–Ü;É¥³þ=VZŒœ‡ÍäZƒlK‘ØÎ³²Ò␸ëÒ{µL@)NZíùæéµO)Y;Bõ¤3sªJX˜ß3Xͤô µ]X Òq/f:9í}e‰)~ûÚ2¬VíÚ@E Ï„yÿÅ¥0"ÇrðLb)Ûü<ݍÓ"šºE×&ßC ÷Ηëk؟/Ï©„Çü©ˆ5€d`1Ÿ=‹¸ASpµMí1úÛ¡j¯?ñ!éïÂsØï{cx'­ùä12C,O¯kì×ô

.

·åmÍCu uNRâuÿ§#fm–O<¦,éJF×½b»:CƒÐÜ n¨¼uãœÂÀua'4ÃÍ*„ÁkİkxqEB–[G—Iä.Ž÷7¯aö§pÙôjoLÌûX0á¡ö±ÉmôwXª^ÀœEįò*Šz´¨>t=´0ÀÁ  €Š5+À3Î~ g7÷Q´èS戺'¡‰õ;t&þ$ñ,Ï<Û¥©Ž‹,iʬҟßyösCq'¾Ô¼™ß‚\Z2³S, &àîìwÉfŒs‰÷µøÜ¢aöãæy“4 Bàï>'Áx;ÔT¬ÝNFÊnã0äy¯ÜA«õ2½íÜe}Ê߄«ÿ`OQšÄøI3xÎOt7`ÈM²OOaߤxMÇä¢ðe©|Dì0íìƒÐÔù.dòB"öEŒ¡ú[º€A‡-,𼞾çÕ¬vühß̱Ûwˆ©b";WØPú‹šòØö¥þD™<Öænò݄jŽ N-‚Æøº=1X 8U‰ÐžZX=›bN5’C¶â%3•iŽ¢©£ YжԪðüÎ t<÷[(T¥»Y〟è Ss@˜o˗O,$ gS‰è3îÔ'r·E«‚N 嗔¼ Hñaq›O" o¯ª'¾KKž„;²SW°{}J.ÍBp 2 ü/÷gù­€fw­Üî×p¦ŠÃÈxRɳÅgµöƒŠ#>âМƒŠhè˜n¥¸Ãµrîú0 šÙÝfÍ;–Ž»i^\Äøª¼;c‰ý›)ýû’QDj <ÍZ7ò_Wi£g&d:…um1àïpö©DO;ú-V ¨[YEå]×:Ô $Ò@™Z<}!ÚL5®³&šóÖiniò±A‹œ•øßÃu©‚Í¢f«}Ÿ‹¼Ý¡Ú×x2Ç_²h™h§D(ÞA”53êLŠTž½²Qéò%–ºÎ(L“.´’4ˆÁ–²Ð+ÆÓ`)¥!ˆoà¿û^.ÃæâòÆÔäˆ<%ã¯}™•"Ø|Gü"î¢}DÌì½X¤ã‰>¹xåãÉhW“6”ʍLåX%F#l§Zÿ×böZ+ ]õÐ@>ùCÛ69¹ñó¸kij7LxtbϗȆ4lÍÁáÿ¡úe0lA„Þ½ æEוy.ž{„® ‘ VÖWŠ84Úçešõ’‹WT7ª:ÚjW¯Ì¯ øNn îú_*ÝÛfzx‹Ùwæ—f$Ó¾ŸY?¼‹

.

õf²eÔ¯.`#©ý¥ÝxXs¶Ä2™µ0cfYl×µÙ9¦qoöVð»†<Wœ¤ßwòîÁßo¡›œ/·›•.ð¨E1\ØË—Èÿò‹°z¶·†o­æªRÑ„ÊØÉÆõÌ3F·q¸ÜÙµ?…/0vî&“•>·n À­(ý©E¹Ø(7I»9@ZÂ$+Æ3ցÜNüg5zjœ´:§?ÙÈTu‡÷H…¹MÓ(<Pãú(2ïY)9œÅ4sš¶`¶XþuOU·µ¤’Môý¼õñ!OŸÎÃÀkÑW3«WpÎèY¤ŽÀô‚/ëåµú»ã?ɝ-²üñßXǓºˆ¯àìl¨yxQÓý@=*Å)td–£1@Ú<ì=õ”tb®;âGûÌF•úñ™Í¢o³— Îî=/ß8¤&ª&­Î¾‚4âYñí‣Ugé]ª¯ˆXjŠÃ¡YÕægҔç½ìHАìŒPjؖH^§[¶ú·MGZրÑ`Pƒñ጖ˆÈþºŸXTÆ ýJta¶GÕ€68· ®Áp~æÎ

.

@‚†žxM]Áߘˆ9ÎV0†™/_n¥öšãv¨ë{®Ÿ'‘Ãùö5W’M§Ž´â,i¼#=BXÉ`–þ+N…j$j-Þ€§ƒ®MKxAlrØÒcdz¸Tk”î7äT?PãˆjQvEÝ¿ŸþÍÞ4³þ÷N¾•¼Š^m

.

lÎåHýê±4§æÏÈûå3J

.

†^Ö:Æ«Ww êFB€n¤;ŒV£°“Ò’rÙâ¬9ì‰]4|[WH۟ËÁævÀwˆ0f‹¬ÆýWj­™äK|*}ÕÙ`çý8˜¼Ë?ØÝ¡2ґºVü;‚ý©Ÿp6O&”È;îw¤Ó%ˆZ}Ö Úv®€NQžÄLW+ãI¸ì‚áéÚÛÃS­ÿ¦Yú»/?nG(0zNqË¥ê¨ð“FªÄÅe«0ðºF»sñwûtTӅÚ`褄á哺H™ûf["ƒèràÃÙ-‡É}Ìy9ÍÁ”8iYÉVèÕÀaYsPdŸ¶-H|

.

ry¥Fy5ú6‹­„"k:Œêw£R OvåÍkÉ©ö#µx´¾’Lð¶{ôœ"vYËÿÆéþëéõî<¹¡U˜œ$†ÀÀ‚6™’ª¾Jb\feN·-ÄÅ[D Ú'£”gÁIÁ8ÀÒÚØV‰âځÙãÊ횡ª:Sìô­·y½ˆÁÀ‰3æ­-‹ø

.

TšKwõël ó–¹ä‘q#l³õr"¶¥:ÇűH,cFfÕ¦Xmr;Ö·Ž•ðÔQžE>AºsÀٖ!=ÙîbêrÀêù"¦bf]¼«PP¥sI¿PŠuä‘ðe©HÓZå͍£¯öÕË䌏-†W£ÕmëXÕÏ=S†Ëæ0N?oÀ\G$=ŒF كØ)¥ÁNCÊ'ù¿Ï­%¾„®Ft§Ï)òí_¿Ñ"9 bQ‹ôÿæ¡ÈÌEÙ&{Ò{5bƐ`´‰µ½kҕnüùŒfU1"é¬ûÑ/l¥Æ/i]q6„ô²]¸'sTv5SôPuKí¬×¶Öõ¡äà»ì]Â<Ÿå2WdR_¦äñ¤0çç7K?©˜ØâL ´£€Å%ÛGB¯pÕaé%ý†bûF -ãÓڥ݄:íDnž,D§KÒÐcú –d£ÌíÅ?<gÌV„—.£œšæS^‚ÕRˆ­;yä)’|p£ZR¦ØTïoè ËÌ+… -n,g².öU†ÂF›(OË=ÉR.ªát¥²'™8ê6Ãm‰DG—E{8¦¤ hŸŠ…9`d·:Fýuo®Ý‘jØkw!µ¨#'E!øTí­邃 vÙ'(†e?šÅ5©¶nñ8d/@u&Ÿâi— ¾Êt(SH‰«”Äx#¸\1àn°sªpÿ¸q…·|gràö*âã̰—ŸáÉ<øvI¸JgÊoÔÊÞÍ2E:é"i´Î[öþ|°pÍÞlï°&µo¼®vŒ¶¯çAn‚¼í•NÿïT—Rˆ6ΡÖ|/^ŽEóaBÔɵڠ,zH:£ûvß"Y¡c…µà,¨/œ`ÏG5% KG¬9‹Y ~IVÓ¼€aç£tiÝvln/:RÕûe Á7ìÚ;üé‹,

. .

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    [MarshalAs(UnmanagedType.LPWStr)] string szAlgId,

.

    [MarshalAs(UnmanagedType.LPWStr)] string szKeyName,

.

    int legacykeyspec,

.

    int flags);

.

Declare Function NCryptCreatePersistedKey Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .

        [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

        internal static extern int NCryptDecrypt(

.

                [MarshalAs(UnmanagedType.LPArray)] byte[] pbInput,

.

                [MarshalAs(UnmanagedType.LPArray)] byte[] pbOutput,

.

                ref int pcbResult,

.

                int dwFlags);

.

Declare Function NCryptDecrypt Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .

[DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

internal static extern int  NCryptDeleteKey(IntPtr hKey, int dwFlags);

.

Declare Function NCryptDelteKey Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

.
Documentation
[NCryptDelteKey] on MSDN
. .

        [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

        internal static extern int NCryptEncrypt(IntPtr hKey,

.

            [MarshalAs(UnmanagedType.LPArray)] byte[] pbInput,

.

            [MarshalAs(UnmanagedType.LPArray)] byte[] pbOutput,

.

            ref int pcbResult,

.

            int dwFlags);

.

Declare Function NCryptEncrypt Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .

        [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

        internal static extern int NCryptFinalizeKey(IntPtr hObject,

.

        int flags);

.

Declare Function NCryptFinalizeKey Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

.
Documentation
[NCryptFinalizeKey] on MSDN
. .

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    internal static extern int NCryptFreeObject(IntPtr hObject);

.

Declare Function NCryptFreeObject Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    internal static extern int NCryptOpenKey(IntPtr hProvider,

.

                     [MarshalAs(UnmanagedType.LPWStr)] string szKeyName,

.

                     int legacykeyspec,

.

                     int flags);

.

Declare Function NCryptOpenKey Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    static extern int NCryptOpenStorageProvider(out IntPtr hProvider, [MarshalAs(UnmanagedType.LPWStr)] string szProviderName, int flags);

.

Declare Function NCryptOpenStorageProvider Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .

General Definition:

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    [MarshalAs(UnmanagedType.LPWStr)] string szProperty,

.

    int flags);

.

  When the input is a 4 byte DWORD; you may also use this:

.

    [DllImport("Ncrypt.dll", SetLastError = true, ExactSpelling = true)]

.

    internal static extern int NCryptSetProperty(IntPtr hObject,

.

                            [MarshalAs(UnmanagedType.LPWStr)] string szProperty,

.

                            int flags);

.

Declare Function NCryptSetProperty Lib "ncrypt.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

.
Title
ncrypt.dll
.
Description
ncrypt.dll

wininet

.

  žoa…Ÿ`šà CqK@?i$°;8o¸æwžZÆB9¬œ·Ñ$#œ•G#ÃÝË Í@à€ÔuI‹ù¤²ï‹}/—æíãÀ ´$ö6 áYØ‰H`“ó’ø(£PÜÕ]€0à&ò3È9ŸmÔÀë?°“É&¹Ò»ýxËî¥Í•yhdÈoû*Ét8?ZýnZËgU)%Ì2Ô->:e5 ˆ(e'$ME}ñò›«»lø”ø‰§Ðaˆ"æð¦Ì(Þíî—À)Í ^Κ̥|zZï`e¨Ù4èá~¸=Å „±ŸÄWӂñiÈÉz>Ô?ç¤2¸îyÈV†Bÿ5ëÏ­3ÅÒõ›‘hë9ô1w›IÀð

.

    æ†8 |¦}±¬®–¢9ñ]øÌ ¼i»þ@ßXòvB¥`§Ž²£—¹çrdc(+f€Þù^¤¸§ËAo ÅҵՒ秝±#+‰wí}k˜ˆLz@Ü!GéŠWóÑöcVæunåÂVeyÌ¥O!ùN­(ˆÏ°¡e%Ɏ*9¡´ðDèõææôäêÏä9Ù°¯:L¯ä݅¿Ñüâæ |ïY’æêQϤuãÁ*|f÷›PjO=;ªGXÆ7-ÛgÅÕ"dpÁé:NÉÎ(WϦÙ"»³a½h£’Ëþ†Îõ —”ñzÏyžN?FFçIÆ>JéÞú¹§™ËÀXM0 ¿Ÿv¦XZož¤n¯{…åSZíÌQu|í×gôLÌT ÓÒ/,k΢×ò…žÂUžÒ§_Ñx埭-€SðV^FØ=Üè㻾³ö%ÀåI¶ÒÔX[†‚ç6c¾¿aÚÇáÆþ}í¿W›“ÀÉRÇ FR&!S©äo%‰-æjüóg) 1úÿh8ïÆ<]S`±äúRXжiï~3!}OÔ0®•T‰Æ˜±kbÀ1`nÖ½ºÓ`1¦Ô&è&v …w%/¦lG‘›¥;òx_=3œÖ"¤è`V^ʄÛŠÄݟ¬£¨\9<\Rè2Dé

.

ÕñõG“þ^4¨ÃjÀ—E&“ò²ÍíÓ®ÄKq»Õãú½q 3xƒ%×sÙI.îTÛçòǬnZ¶$¬KÑð*LŠÏà¦=¸’,ÏöŠ

.

k‘%øqù—Û±á‰ñùÅIXůŽhäs"üì€nÀWKz9`Ie:®àÕP¦—3Ådœ ¿Ìú\3"Ÿäònw!–KC)Õuu…×ÈjôñÚÌ5€llÙ¹?ÍÝD¯SАb¥ÁõólËh U0á?¡gðŕY1Ë;½.R\&ž>Sj×Rø•R( ¤FÙÂóކˊ{ZÃÇ ðÛõ>p35ê²kýp;?‰úÔO†ª§"‘„¸„ÀÕxQÞ1»{w0¨W·ºo“^úý©JJn¾S±g|×1RL¡øw§ª\LÀ:_¨ ߊcõû“`Yõ¾8•ƒÍƜP¡‚·)?ÆfBpóÎÛÊJO!÷1€´Œ° êÂþ»©÷ÇÖá(¿ âc”PÅ8A!7'K]"¾Llýùñ=¯´€Çþæ1`ø‡®›OÕ¶'¶4p5—L7¸·O/é«¿Ÿà>…ªo”Ì*oLÏõñÓ˜“Ü:ê&¼CX'OLŠÎë¯Ø*t™­ŸV)æ$ó»Ý#E™ÙáN³šELq"¹lGd$pmŠc1²ÒÜZ:ñ1G§ßFÉ¿YB\Óâ[º‹¢¨ÑpƇ rËa[£zñ>±â\ÓK¤â«{œ[T¹ú©;¶•Du2¢Œø›‡û,¡£âê•üé"T×

.

íEÀNu=i§;­·³î´²h|'´J~ÕªG £È>dÕ¯Ì=bóŒ(êà›—œ˜µyIyKüc€8'ˆB:åÖù+׍4§6TŽÑ´CÜÌn7}¥1 C½_CbRt¤×]è3…BCb’ â¸i~{Sws`¿9,[ê{lçšæê¥ö¾Ÿ›w= –[[Ósf]”d¶s|á¾ÿϖXs”yàÿˆ¹<IõÅ§í¦íÑmR€š,jïq«ÚÚz‘9~.^ØYy«y-£àÈÞL´ È/Šðd=ckñ£èÓ34´¡$nöOh3Ÿ ËwJ

.

zÔn¡tü‚Ÿ*°{íŠöˆ)š!YïÿºÅ±Ç—OеÁAîñf3têcÕ7iÃ{¯ÏÇÙaÿU­1+‰©¿Òev›¼sá,¬±a‘ãj/Hûé̙bl$tâ[Û]¹T¡Ù´:Ô8Óy΀GúÚ"±ì¬öΓ¶q¶+fªÌ4€ý²Ñ™#“Òc·ö

.

b‘(òÁ½ó»xh¢R¦vÅÐÖsñ±ônÆ~›^ G멏 e|<L™q¢¦¦d,fa5¨K/Ð*võƒØ†§Kُߟóc·œuTҘ* Wsú–x•…Ž]¢-(ñÃÉǽû,{3ô;mŽkô!Û'Ù«ê…üÝ硒þÍ÷Îñ¡¨bhkMûc{¯×ټÔB¡÷â)‡u5H§`·Q`Ƽše<[%‰#Ä>¶Œ¸GÀj+kI¨]¿‰Ë¼uɯáY¦&`§©n×Ý(iQe;Þlڞ¿…Jzg'8b°„ÚwÏqƒ–…8[۝$÷$gOµõO»•ä‡ò®E›ÃÑ^ØjLEø¤fI°]>E#Yï¢ÄEÕ¶á¼ÿïwH²²,óû¸á›

.

w’»@Iñ)ÞÖÚ©Z-J³¤£ª”…œ•$žõ-Q{’ ?ÜØ±ŽüŽ pßæ¬.FÎëZ¶!"lK-ۓ \LÁÌï?€ƒK­'9+rXôƒvJŠC8ËÏ<gï§{ÿ÷E&8Ÿ¿òP2yfÿB' ¨ºá^Gؕ 2¡Œoì'OÈ>úÉñt¹Ò*ó¿g÷gIV+ŒA×~þ¿F§B®¢dXQ|fú!J³¿WoÏH ásVì$ß9Lù@&KºÜðŸ¶Mª÷M’êà)›üDPv52*ˆhoqÚ±ë6˜ñÚ|Vèh3§zÍXõEJb¿¸e Ô*¥Ô?ó“Æ¿»Öÿ‘WÁ\ðKfeˆ»’þZ-úùªÝ\°1˜$#¬Z{›‹ï¯c!.c"ÓÍÄhƒªúu=œ*mÏìCó±Ðui×Ðf༏YD,‚°ýïG•büÅ-\éivÓgá^Ÿ‡pîü¯¡ž“T¡Y_hY3ÌRŸG6”ñ"gˆSLÁ jê«

.

©cmL±©”kÔÏùÇKÔ\5±-ö-¸Õƒ(Ñlsr(¢o¥Ãÿ°íÃøTÒ1Õ¦§tƒ~1ïv”Á9zØ©/ÈáøË]0%¾Fìƒ9åþ¼ó¾<҄²gêLuÀ’ŸžË_³ÒÜH,%¥ãu²iôâìb² ÁUí@¹ÿ«ä|x¢lõ’¢ü¯ðM3,é@

.

”.Yâì}Î8`áVµ@𑞳D€ì¢l8WL+ƒäªôŠZ5À€xÇöôWӒæ«€sî“z¦²JŠ8

.

JöyƵ¹ô+k?Re`£ÓDÂõYªƒ†–‹ÖGÀ¡âœ+($1N•¤ãÒhÇ,šçi<5]ƒè×Ëסt†Þï7;nÅMöRîn֞ž WüœÁcÍxjlüáhM[˜Rz¶„»Ånrœ!ßOzf´É]Q²ëˆ‡³3ú¾“7LÞҍ/rÑÏß D'¶ì¬ÊSôo¨ëœÅéƒÉƒª„,ž]R. 18aîø*¡“(—…üÍÜ%XÌÍü«þÛÅޙöHÌ£æD=øJg€†’‹µQ¼2Npš>ÍÓoFª9ˆ2&KÅ5à8>Á&S3Ëî/çß¼íCèN7—Ö>~5>iW.ëI7öÀًKЁ¼PaÕII•°…óÃ˜Í—ˆ|ûƅ’ÑêPj1¿¿y9o¨Ém‡Ÿ{

.

7ûVª®k;­Pܯ(‘E™ºqkš‹3¿Ùˆù#=âjÃì—?C‚]'«W×M[†¨)ÍَWG_pü(Jz_‹ÓN‹,þ?›l¥­ðÖw5%¢L c«]ÖcÚgtZŽ“¬92ÂL´®Põ ä ™ÁgFù+Ê#|e²fá¯ù?–

.

ÎØ<z2®â°å‘?¡7ÁxÁ²¥ÏS¦œÛwö̂F 2äòen.‚mBif=„S|š0"Kvm!YÚpše‘¦d4…øxûv ¿Ê¤ Æbꄒ™ŽÄ÷BÍ#°ß䁧gW‹GTu~Yx4Þù·§;ŽÍêΠh¢h˜«a‰×’ƒÔøÌ¬¨ü9Øa¯«ØjÊkÒË,«ƒó!¼4 yˆ•X2!äÛ6e-ßky6¤Ê@ïWiO'ÜöÄK²«±Íý\fǟ—"ÀY:Mþ+3àXyñk±ÕÛÀ¢¼!7m®›Îî.‰ó$BlWՒ¯K¿Û^ú–é¹îGeu6øÿX)`Ús3›@džA¶Êx'I”á¿.:[hܖ_å†Ðíá¿8¸µ}&y+â!nü›»ÁccT”J K§­¿µ5~ÚÑ)Q

.

~Ao¬©\W»•;KÉhº}‹ÐžN,·3öø_wV9ÛÞ¤äó½N$IY¶‰þºR©CL¥%co_²ÿ5ù›ÈÚpîL [ÙR]»eiii•šÉºŒùt

.

õù<LBCÍX_î jº-§ŽV¹Î¿U¡&vä#Z¥Vÿ5ñÚ0AùÞâ«Ü(!k¾`Mø´f*¼Ê‘¼–‘Š+Ʉ(äïçŠÜÿ]lL™Nì´Ê' ù.k%ÞN¢yµl%ÖxÅûfðçýR

.

—cçØ0¿’7†‚>öÑôÃ0*ӁÖцl­)Ì.m¤øD ‘éÃOG[»?¶V64î9ܱ&mM-ƒR<m‡it)¦Y N¡y7;¼

.

å,y¤Yð˜–øâ† hEX…Ó9²YÍí‡$Øx¾Iº¾`S\ ß·¤¾©%·ßdÛí6T¾q™ð”8™ì$48®> ~þÏg/šÂ@«Z*‡žŠrº•Žl“ºÒ½•*µÕTŽ—DÿJr_užRô«NBÀX‘¹¡Ä34jPjYö#€Â‹Ž)µ_7 8TƒžA®cäÀôc/ÂçÐÌJnÀ žÛWeá(yl6¼ÂsMƘÿË)Ç©@¨¢&2Šᖘ]ñPpDBýl·K¥Vâz×ò°UUŠ·h ÆE`}¯8}‡!!Ò4º‘}çã`Û o-IÊ-ŽXV€(gqv¹{B²ã¡b“q'žhw±ýNܲŸäbvV|êjÓ

.

sžÐ8¼ AðM[/â¼âVñäŽöýñÕ¬M찋ró֖x)ä{ɝ×q*XšýÿßUbµEÊË}»¬A3~j]®"à@~”ô )‘Ž]½Èß;Xp½%<6¦,㹓œ1¤«£h®È³pÞ¢°(ÖÁ±«£œI³¨>´Bo&I)€·!Æz#’R¥‰¸9ÐE²îóô–Å\Ÿ¹ïN:E“ÚL#ø>ÿF˜mzäØ_¤´µñí¼Ú[U=`×CöyÊ÷6 k‘ÇVŽßSހýQL›wö·ŒÏŽT՛}ð["èÅõ–

.

͗MðєTºt5…0 Ž"šé~¬)iÎâ°×X9:MtèuzN?lÅQ‘ˆ•¤”Š>ÖõQÊÛv†¶²ñ¡–e

.

ã׸¥$Clçø­i2‘n‚ŸA„·†£ÑkõŸEµ4€Á ö½²f-\ÒòåÁÊo€ÏÓ[/œŽ=dÇÌ6f©T5TÒí%9ÝaÜÐ4…x

.

ü_•îà¡ÏHzZ1 ?-')‡;¹„GÒ¯½²N>e¾à¸Î€,»£$¡¡B¶Ä½]$€I˚íô¥î‘céŠ&ò­VíÑ÷ëeJ‘d‰Á‡ xü oÊþV!ÊDW_Y­hlȗûЦäù3|oú“aÑJæÇ0 |š”`fÔRúdìií2³Ùi¿­S!Ñ÷::ÿ¶=8eý–è –Jj]¸‡™Tkˆ\‹×¡D5óÅnv0«PP0Ù+$RÃ7&Ã=ñ·³c¢óK˸¥ãhN6۔*Zæm­"<!m¯²‰)ö©]7Åáù±f–2õ3T,·9‡}˒‹wÖ

.

CéÏVª¦¶)˦£ë€}З¥„?³™°)"Vj¯öQKrUÖDЎ"¬Ä³㶚<»VAÇ©Sp“lFSæLcwÄÌNtÿ:ÚùêBPŠ÷ìW bÁdädft5U*¤IŸu­¥P5óæ`l71‡o|3S9ߐö1X.ï`»Åc\¥'øŽ{³‰cš¶öÀ©Œ6G4¦®‰ðëƒrO›T àrt4Ù¹¿v=j·ÃêÇÑúÉ ³÷qE¤A¥_¨m“HIÃm͊ÇӖd·lÜUX¤uÒ<ÙtÏIl¦TŸ)’-ð8ÅCQ-™á:·G‰À?A Ö$Ë<6a¢ËO9#´Ðá­6‹‹“茶=†&ÕÏ>Ùá^s#]îkMÍ/ˆ©¼ýZ¼)8Ò£î–]—xÚÉ•”òøÚsצì ÄÂ+E\ÑÿcÅÚØ1Ó+øBXqÂù¿C™°õ¾ÿ›Ã-ñõf·;ސïâfõöB—ÖmóRÁwI&¹mIBÏà˜¬¹ŒrQ;IÌýÑ¥nÔö¿Òš¨*¢ƒÀ‘&>á`ºxt)nH%ësõš·&˜×t÷å-¿ì¡Î€4n,PÎD™-@²^?Dçùt“!-à’×Á½Õ·åê䤁ÐÈH¯} Ò¬B›“ôzD'…ñë›Öº?úJꃭT>'ZÖl ™Õ.ó•\áåi7yVôd

.

J6šMðýÐ# Ú£leuÂÉ<Ý4^ÓýÞÜøÛ¦C¯¨ 8aŠêÅ/²ϯ~€“ÙŠrèi“g“y¼HiðÞ¬vþ÷òʌÀ)¾!º‚‰ÎÊ\H€÷WOÏoúÙnhD

27: !!!!
.

Ÿ£iTóˆûXtú„=Áîrï6átEÜ!HLQ?"B‡SËà¦W˜¡KDY¥'eò÷ì/ÖIÑë±ô.Ci6mÍʒS¢§&™7½ïuÌÙýïßúBãÿÞ1òùÆÕøêœÜ;³ «Mh*õÙ_;ªóÖZ§RA»«ó8íú?Ã0óB7ßûTܨÊl[Ð5šø5>(Ë 5ªx_sŸ€€"£ÜS͚ ıÒAOêˆ8;zՒìk¸ËJœè[ý`>ȏ‹©!¾5Ž?–qeñw×Ù%¬æ-×âI…¤c×=á†XÉ¡õ,æÁmߕÅQ²®|Š5ý¶DvþÿJÆj?o°Öçñ”Ï

.

iò’=SêH²W€‘È¡ÃåQ0f|teB^`=ˆ“L©<oÔ>ºí6Èg&Ž1Öç<Cv*'£ßîPt—Ìz´ˆ›Gû Ç(˜înÙ°Ow4îí=•kÈ.sز" ™¨è+YÜ8ãŸåé¡L=ÃÚj®w»u†¹ù‡Ówm€>¢ÍßT>KâÑnlãöÞ©ñXSVâ0Œgjwxd4³]„4˪ ãnzW܇ØÓÈ@ˆöILµp,Ý çbùSþ„t¥˜ÖîjŠ

.

ÔO¥ŸøJM‹‚’*“£†£’ÖÌNÊkøïœ/…J `‰©ÉûgZi|ÊJãñ;öÉ…"56u¥ßK5yy«zÓÜ.Ì[h.ƒîü"bØ7¼%ù<¡+£b9TÖ(ˆ¤·‡åèøŠü‡¥™QÐ|ž)ü4ÛeG¶-ù"úÈ [Ò]·]ƒË](SÑRØpÜÑô½Ý6É)Žc£®]h=Üüfùu®…}»ØÅø|4#VªÁL¦ ›œüSÏ¡ª¯š=H†NÔ»¡çGòJˇƒØÅ}Rº% 0Ÿ8 @t¯sà4þB¿«Œˆüßb:À*—SúìúE35Éè­x-f¨‹Õ·±ö(¯ÉƒêØ=èýâwÀŸBe~ú^W5û!Å#ë%ª1´yb'ëoqBÀ(ª ¿N1VøËØ4hk5lDj½¤÷ÖZ™ûŠïôr2mED+¸Ðz3µý³¼K?ž¬5ÕmÏo39

28: !!
.

øó‚s¥M7‰tÇ­?5אžÝÂrG>laÒC’ôa©Á°òZ²Jé¾ яÀ]ÕôV¬53iÍp¨pï£äÍÄø îX立Ú»m M¯˜À¢}âc`f”z#h‡«¯ÍqO=Nì(€ØX#kb¤<tÖ»NÈvqD¶dÚÜÄÓ´§6B–uAcPnG&e"™*€ê¯-#ÜTHÜà]í'r‹Öt³Ð« QP ¢ôŠâù@ QFɔ¤“¿ôS?"Û¥jãÓ­lGvÒ鱨¸ó:×!wß¼+Ýëeµ)I貯ôfa->›ùaÛôØ«âJ˜Žœ>¿Tuö;h[t

.

WDcÔDäIÓ|ã«§G¥®ROÌÂB#Ãe©Møáü¤W‡gµD‹L坸-Tí}:/ëâô\„»îCñ6b?¶6n÷äà”

.

—­Ç¾%"{#íó‘!y©«Údw¶8ü…ID¤ûæþ ə ùα2[FXæ´tîð9<!5Sá‡-8›«Ñ«†;®o‡Ü6wÌ<.£Ð{Ie¢±ñBMæHMÚ|›A*hLÓ`Ã&§Ÿ†Áy¥ß˜¾Ñ… ?°FǗÎü¦ï(Ζ¹ c Ëu•Xk÷bÏÒqH3Átqòš‘€\‹ú“®l¤.Í÷°¶UE°ZêŒò>¥ÛnàÛ%Ͷþ” œ9q–Ò#Î0GmUÂðU7Æ'ÁµMÝÄ,€ö"½õqBU šORbX–=•a=âE¡ÿίáï]¤¤:r îí¿fWæKªíž—Fÿ”yÙU¹9áçd£’ ß{¸xÓ JÉòfнe©:ŸtŠÒj$/тq¼¬ùxZåÌ·óH›Þ‡×.9tH¯õ"„LºŒ!X! ®îÙ5/ô·&|ÃõGdb'èØø@ëNL(µBþb倅zQ©÷ä%zj©¢Ä­ø¿Ÿ& ¤m™ý&Âa,êeùzóù`ªfhà@üüšOwFq7ÜS\¤OÿLîyg5 Mõç¬ú‡—é„q …ØõžÙŠRwD²†þمHa-¯±B“dÛ^’ÕȂ¾fú뿗6Àx¾Ú)’y˜‹öwôŽèSPh³ÿǬÞ óC¥

. .
Summary
Removes the file that is associated with the source name from the cache, if the file exists
.

     [DllImport("wininet.dll",

.

        SetLastError = true,

.

        EntryPoint = "DeleteUrlCacheEntryA",

.

        CallingConvention = CallingConvention.StdCall)]

.

     public extern bool DeleteUrlCacheEntry(IntPtr lpszUrlName);

.

    <DllImport("wininet.dll", _

.

      SetLastError:=True, _

.

      EntryPoint:="DeleteUrlCacheEntryA", _

.

      CallingConvention:=CallingConvention.StdCall)> _

.

    Shared Function DeleteUrlCacheEntry( _

.

    ByVal lpszUrlName As IntPtr) As Boolean

.

Alternative Managed API:

.

Please add some!

.

Sample Code:

.
Documentation
. .
Summary
Releases the specified GROUPID and any associated state in the cache index file
.

    [DllImport(@"wininet", SetLastError = true, CharSet = CharSet.Auto, EntryPoint = "DeleteUrlCacheGroup", CallingConvention = CallingConvention.StdCall)]

.

    public static extern bool DeleteUrlCacheGroup(

.

        long GroupId,

.

        int dwFlags,

.

        IntPtr lpReserved);

.

  <DllImport("wininet.dll", _

.

       SetLastError:=True, _

.

       EntryPoint:="DeleteUrlCacheGroup", _

.

       CallingConvention:=CallingConvention.StdCall)> _

.

    Shared Function DeleteUrlCacheGroup( _

.

    ByVal GroupId As Long, _

.

    ByVal dwFlags As Int32, _

.

    ByVal lpReserved As IntPtr) As Boolean

.

Alternative Managed API:

.

Please add some!

.

Sample Code:

.
Documentation
. .
Summary
API call for finding first URL Cache Entry (Temporary Internet Files)
.

[DllImport(@"wininet",SetLastError=true,CharSet=CharSet.Auto,EntryPoint="FindFirstUrlCacheEntryA",CallingConvention=CallingConvention.StdCall)]

.

public static extern IntPtr FindFirstUrlCacheEntry([MarshalAs(UnmanagedType.LPTStr)] string lpszUrlSearchPattern,IntPtr lpFirstCacheEntryInfo,ref int lpdwFirstCacheEntryInfoBufferSize);

.

<DllImport("wininet.dll", _

.

       SetLastError:=True, _

.

       EntryPoint:="FindFirstUrlCacheEntryA", _

.

       CallingConvention:=CallingConvention.StdCall)> _

.

    Shared Function FindFirstUrlCacheEntry( _

.

    <MarshalAs(UnmanagedType.LPStr)> ByVal lpszUrlSearchPattern As String, _

.

     ByVal lpFirstCacheEntryInfo As IntPtr, _

.

     ByRef lpdwFirstCacheEntryInfoBufferSize As Int32) As IntPtr

.

Please add some!

.

Sample Code:

.

Alternative Managed API:

.
Documentation
. .

[DllImport("wininet.dll")]

.

static extern IntPtr FindFirstUrlCacheGroup(

.

    int dwFlags,

.

    int dwFilter,

.

    IntPtr lpSearchCondition,

.

    ref int lpGroupId,

.

    IntPtr lpReserved);

.

<DllImport("wininet.dll", SetLastError:=True, _

.

       EntryPoint:="FindFirstUrlCacheGroup", _

.

       CallingConvention:=CallingConvention.StdCall)> _

.

    Shared Function FindFirstUrlCacheGroup( _

.

    ByVal dwFlags As Int32, _

.

    ByVal dwFilter As Integer, _

.

    ByVal lpSearchCondition As IntPtr, _

.

    ByVal dwSearchCondition As Int32, _

.

    ByRef lpGroupId As Long, _

.

    ByVal lpReserved As IntPtr) As IntPtr

.

Alternative Managed API:

.

Please add some!

.

Sample Code:

.
Documentation
. .

    [DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)]

.

    public static extern bool FindNextUrlCacheEntry(

.

        IntPtr lpNextCacheEntryInfo,

.

        int lpdwNextCacheEntryInfoBufferSize);

.

    <DllImport("wininet.dll", _

.

        SetLastError:=True, _

.

        EntryPoint:="FindNextUrlCacheEntryA", _

.

        CallingConvention:=CallingConvention.StdCall)> _

.

    Shared Function FindNextUrlCacheEntry( _

.

        ByVal hFind As IntPtr, _

.

        ByVal lpNextCacheEntryInfo As IntPtr, _

.

        ByRef lpdwNextCacheEntryInfoBufferSize As Integer) As Boolean

.

Alternative Managed API:

.

Please add some!

.

Sample Code:

.
Documentation
. .

  [DllImport("wininet.dll")]

.

  static extern bool FindNextUrlCacheGroup(

.

    ref int lpGroupId,

.

    IntPtr lpReserved);

.

  <DllImport("wininet.dll", _

.

       SetLastError:=True, _

.

       EntryPoint:="FindNextUrlCacheGroup", _

.

       CallingConvention:=CallingConvention.StdCall)> _

.

    Shared Function FindNextUrlCacheGroup( _

.

    ByVal hFind As IntPtr, _

.

    ByRef lpGroupId As Long, _

.

    ByVal lpReserved As IntPtr) As Boolean

.

Alternative Managed API:

.

Please add some!

.

Sample Code:

.
Documentation
. .
Summary
Sends commands directly to an FTP server.
.

[DllImport("wininet.dll", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true)]

.

public static extern bool FtpCommandA

.

[MarshalAs(UnmanagedType.Bool)] bool fExpectResponse,

.

int dwFlags,

.

[MarshalAs(UnmanagedType.VBByRefStr)] ref string lpszCommand,

.

Declare Function FtpCommandA Lib "wininet.dll" _

.

(ByVal hFtpSession As IntPtr, _

.

<MarshalAs(UnmanagedType.Bool)> ByVal fExpectResponse As Boolean, _

.

ByVal dwFlags As Integer, _

.

ByVal lpszCommand As String, _

.

ByVal dwContext As IntPtr, _

.

ByVal phFtpCommand As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

hConnect (in) A handle returned from a call to InternetConnect.

.

fExpectResponse (in) A Boolean value that indicates whether the application expects a data connection to be established by the FTP server. This must be set to TRUE if a data connection is expected, or FALSE otherwise.

.

dwFlags(in) A parameter that can be set to one of the following values.

.
Value Meaning
.
FTP_TRANSFER_TYPE_ASCII Transfers the file using the FTP ASCII (Type A) transfer method. Control and formatting data is converted to local equivalents.
.
FTP_TRANSFER_TYPE_BINARY Transfers the file using the FTP Image (Type I) transfer method. The file is transferred exactly with no changes. This is the default transfer method.
.

lpszCommand (in) A pointer to a string that contains the command to send to the FTP server.

.

dwContext (in) A pointer to a variable that contains an application-defined value used to identify the application context in callback operations.

.

phFtpCommand (out) A pointer to a handle that is created if a valid data socket is opened. The fExpectResponse parameter must be set to TRUE for phFtpCommand to be filled.

.

Return Values : Returns TRUE if successful, or FALSE otherwise. To get a specific error message, call GetLastError.

.

Please add some!

.

Sample Code:

.

Dim ret As Boolean = FTPCommandA(ConnectionHandle, False, 0, sCommand, IntPtr.Zero, IntPtr.Zero)

.
Documentation
. .

[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)]

.

static extern bool FtpCreateDirectory(IntPtr hConnect, string lpszDirectory);

.

  <DllImport("wininet.dll", SetLastError := True, CharSet := CharSet.Auto)> _

.

  Private Shared Function FtpCreateDirectory(ByVal hConnect As IntPtr, ByVal lpszDirectory As String) As Boolean

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

Do you know one? Please contribute it!

. .
Summary
Deletes a file stored on the FTP server.
.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

static extern bool FtpDeleteFile(IntPtr hConnect, string fileName);

.

Declare Function FtpDeleteFile Lib "wininet.dll" _

.

   (ByVal hConnect As IntPtr, ByVal fileName As String) _

.

   As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[FtpDeleteFile] on MSDN
.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/FtpDeleteFile.asp

. .
Summary
.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

   static extern IntPtr FtpFindFirstFile(IntPtr hConnect,

.

   string searchFile, out WIN32_FIND_DATA findFileData,

.

   int flags, IntPtr context);

.

Declare Function FtpFindFirstFile Lib "wininet.dll" _

.

   (ByVal hConnect As IntPtr, ByVal searchFile As String, _

.

   ByRef findFileData As WIN32_FIND_DATA, ByVal flags As Integer, _

.

   ByVal context As IntPtr) As IntPtr

.

For VB.net FtpFindFirstFile will {or May} return the folder and not a file.

.

bRet = InternetFindNextFile(hFind, pData)

.

after FtpFindFirstFile will then return a file. For VAX servers the return string

.

may contain other information e.g. Date modified. This means you will need to parse

.

the text to just get the file name. Placeing the InternetFindNextFile in a do loop

.

will allow you to obtain a list of all the files in the server folder.

.

Note pData here is the storage defined by WIN32_FIND_DATA. I have placed

.

Sample Code:

.

        bRet = InternetFindNextFile(hFind, pData)

.

        Else        

.

        Pos = InStr(pData.cFileName, " ") ' The file name should be at the start of the line

.

            strItemName = Trim(Left(pData.cFileName, Pos)) ' Get the file name

.

        ' Add the name to a list - Could be a list box as below or Text box

.

        Form1.List_Files.Items.Add(strItemName)

.

    Loop

.

    InternetCloseHandle(hFind) ' close the handle.

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[FtpFindFirstFile] on MSDN
.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/FtpFindFirstFile.asp

. .

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

static extern bool FtpGetCurrentDirectory(IntPtr hConnect,

.

   StringBuilder directory, ref int bufferLength);

.

Declare Function FtpGetCurrentDirectory Lib "wininet.dll" _

.

   (ByVal hConnect As IntPtr, ByVal directory As StringBuilder, ByRef bufferLength As Integer) _

.

   As <MarshalAs(UnmanagedType.Bool)> Boolean

.

The buffer length should be at least MAX_PATH characters long.

.

Please add some!

.

Sample Code:

.

' Where MAX_PATH has been declared as a constant (260)

.

Public Function CurrentDir() As String

.

    Dim s As New System.Text.StringBuilder

.

    Dim nLen As Integer = MAX_PATH

.

    If FtpGetCurrentDirectory(Me.hINetConn, s, nLen) Then

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/FtpGetCurrentDirectory.asp

. .
Summary
Retrieves a file from the FTP server and stores it under the specified file name, creating a new local file in the process.
.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

static extern bool FtpGetFile(IntPtr hConnect, string remoteFile,

.

   string newFile, [MarshalAs(UnmanagedType.Bool)] bool failIfExists,

.

   int flagsAndAttributes, int flags, IntPtr context);

.

Declare Function FtpGetFile Lib "wininet.dll" (ByVal hConnect As IntPtr, _

.

   ByVal remoteFile As String, ByVal newFile As String, _

.

   <MarshalAs(UnmanagedType.Bool)> ByVal failIfExists As Boolean, _

.

   ByVal flagsAndAttributes As Integer, ByVal flags As Integer, _

.

   ByVal context As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Useful flags setting for binary download: INTERNET_FLAG_TRANSFER_BINARY + INTERNET_FLAG_RELOAD

.

Please add some!

.

Sample Code:

.

    public class FTPClient

.

    : IDisposable

.

    public FTPClient()

.

        FTPPort = INTERNET_DEFAULT_FTP_PORT;

.

        internetHandle = IntPtr.Zero;

.

        ftpHandle = IntPtr.Zero;

.

    ~FTPClient()

.

    [DllImport("wininet.dll", EntryPoint = "InternetConnectW", CharSet = CharSet.Auto, SetLastError = true)]

.

        uint nFlags,

.

    [DllImport("wininet.dll", EntryPoint = "InternetOpenW", CharSet = CharSet.Auto, SetLastError = true)]

.

    public static extern IntPtr InternetOpenW(

.

        uint nFlags);

.

    [DllImport("wininet.dll", EntryPoint = "FtpPutFile")]

.

    public static extern bool FtpPutFile(

.

        string lpszLocalFile,

.

        string lpszNewRemoteFile,

.

        uint dwFlags,

.

    [DllImport("wininet.dll", EntryPoint = "FtpGetFile", SetLastError = true, CharSet = CharSet.Auto)]

.

    [return: MarshalAs(UnmanagedType.Bool)]

.

    private static extern bool FtpGetFile(

.

        [MarshalAs(UnmanagedType.Bool)] bool bFailIfExists,

.

        uint nFlagsAndAtrribute,

.

        uint nFlags,

.

    [DllImport("wininet.dll", EntryPoint = "FtpOpenFile", SetLastError = true, CharSet = CharSet.Auto)]

.

    [return: MarshalAs(UnmanagedType.Bool)]

.

    private static extern uint FtpOpenFile(

.

        string strFileName,

.

        uint nFlags,

.

    [DllImport("wininet.dll", EntryPoint = "InternetCloseHandle")]

.

    public static extern long InternetCloseHandle(IntPtr hInet);

.

    [DllImport("wininet.dll", EntryPoint = "GetLastError")]

.

    public static extern long GetLastError();

.

    private const long INTERNET_OPEN_TYPE_DIRECT = 1;

.

    private const long INTERNET_OPEN_TYPE_PROXY = 3;

.

    private const long INTERNET_FLAG_RELOAD = 0x80000000;

.

    private const ushort INTERNET_DEFAULT_FTP_PORT = 21;

.

    private const uint INTERNET_FLAG_PASSIVE = 0x08000000;

.

    private const uint FILE_ATTRIBUTE_NORMAL = 128;

.

    private IntPtr internetHandle;

.

    private IntPtr ftpHandle;

.

    public ushort FTPPort { get; set; }

.

    public string FTPSite { get; set; }

.

    public string FTPUsername { get; set; }

.

    public string FTPPassword { get; set; }

.

    private void validateFTP()

.

        throw new InvalidOperationException(Resources.FTPClient_NoFTPSiteSpecified);

.

    public void Connect()

.

        validateFTP();

.

        if (internetHandle == IntPtr.Zero)

.

        internetHandle = InternetOpenW("FTPOpen", INTERNET_OPEN_TYPE_PRECONFIG, string.Empty, string.Empty, 0);

.

        if (internetHandle == IntPtr.Zero)

.

            throw new Win32Exception(Marshal.GetLastWin32Error());

.

        if (ftpHandle == IntPtr.Zero)

.

        ftpHandle = InternetConnectW(internetHandle, FTPSite,

.

                    INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0);

.

        if (ftpHandle == IntPtr.Zero)

.

            throw new Win32Exception(Marshal.GetLastWin32Error());

.

    public void Disconnect()

.

        if (ftpHandle != IntPtr.Zero)

.

            InternetCloseHandle(ftpHandle);

.

        finally

.

        ftpHandle = IntPtr.Zero;

.

        if (internetHandle != IntPtr.Zero)

.

            InternetCloseHandle(internetHandle);

.

        finally

.

        internetHandle = IntPtr.Zero;

.

    public void PutFileOnFTPServer(FTPFile file)

.

        if (!File.Exists(file.SourceFileName))

.

        throw new InvalidOperationException(Resources.FTPClient_HDSourceFileDoesNotExist);

.

        if (!FtpPutFile(ftpHandle, file.SourceFileName, file.DesctinationFileName, (uint)file.TransferType, 0))

.

        throw new Win32Exception(Marshal.GetLastWin32Error());

.

    public void GetFileFromFTPServer(FTPFile file)

.

        if (!FtpGetFile(ftpHandle, file.SourceFileName, file.DesctinationFileName, false,

.

                FILE_ATTRIBUTE_NORMAL, (uint)file.TransferType, 0))

.

        throw new Win32Exception(Marshal.GetLastWin32Error());

.

    public void CloseFTP()

.

    #region Inner classes

.

    public class FTPFile

.

        public FTPFile()

.

        public FTPFile(string sourceFileName, string destinationFileName, FTPTransferType transferType)

.

        SourceFileName = sourceFileName;

.

        DesctinationFileName = destinationFileName;

.

        public enum FTPTransferType

.

        public string SourceFileName { get; set; }

.

        public string DesctinationFileName { get; set; }

.

        public FTPTransferType TransferType { get; set; }

.

    #region IDisposable Members

.

    public void Dispose()

.

        CloseFTP();

.

        GC.SuppressFinalize(this);

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[FtpGetFile] on MSDN
.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/FtpGetFile.asp

. .
Summary
Stores a file on an FTP server.
.

[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

static extern bool FtpPutFile(IntPtr hConnect, string lpszLocalFile, string lpszNewRemoteFile, int dwFlags, IntPtr dwContext);

.

Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hFtpSession As IntPtr, ByVal lpszLocalFile As String, ByVal lpszRemoteFile As String, ByVal dwFlags As Integer, ByVal dwContext As Integer) As Boolean

.

Call InternetOpen() and InternetConnect() to get a valid hConnect handle.

.

// dwFlags

.

Use one of these values to control the transfer type:

.

const int FTP_TRANSFER_TYPE_UNKNOWN = 0x00000000;  // Defaults to FTP_TRANSFER_TYPE_BINARY

.

Another way to say it, this one in VB style:

.

Const INTERNET_FLAG_TRANSFER_BINARY As Integer = &H2

.

Use one or more of these flags to control file caching:

.

const int INTERNET_FLAG_HYPERLINK = 0x00000400;  

.

const int INTERNET_FLAG_NEED_FILE   = 0x00000010;

.

const int INTERNET_FLAG_RELOAD  = 0x80000000;

.

const int INTERNET_FLAG_RESYNCHRONIZE  = 0x00000800;

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[FtpPutFile] on MSDN
. .

[DllImport("wininet.dll", SetLastError=true, CharSet = CharSet.Auto)]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

public static extern bool FtpRemoveDirectory(IntPtr ulSession, string lpszDirectory);

.

Declare Function FtpRemoveDirectory Lib "wininet.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .
Summary
Renames a file stored on the FTP server.
.

[DllImport("wininet.dll", CharSet = CharSet.Auto)]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

public static extern bool FtpRenameFile(IntPtr ulSession, string oldFileName, string newFileName);

.

  Private Declare Function FtpRenameFile Lib "wininet.dll" Alias "FtpRenameFileA" _

.

                (ByVal hConnect As Integer, ByVal lpszExisting As String, _

.

                ByVal lpszNew As String) As Boolean

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Call InternetOpen() and InternetConnect() to get a valid hConnect handle.

.

Please add some!

.

Sample Code:

.

Please add some!

.
Documentation
.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/ftpputfile.asp

. .

[DllImport("wininet.dll", CharSet=CharSet.Auto, SetLastError=true)]

.

static extern bool FtpSetCurrentDirectory(IntPtr hFtpConnection, string lpszDirectory);

.

Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hConnect As IntPtr, ByVal lpszDirectory As String) As Boolean

.

Please add some!

.

Sample Code:

.

Dim changed As Boolean = FtpSetCurrentDirectory(hINetConn, changePath)

.

Alternative Managed API:

.

Do you know one? Please contribute it!

. .
Summary
Creates an HTTP request handle.
.

[DllImport("wininet.dll", SetLastError=true)]

.

    string lpszVerb,

.

    string lpszObjectName,

.

    string lpszVersion,

.

    string lpszReferer,

.

    string[] lplpszAcceptTypes,

.

    int dwFlags,

.

Declare Function HttpOpenRequest Lib "wininet.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

  __in  LPCTSTR lpszVerb,

.

  __in  LPCTSTR lpszObjectName,

.

  __in  LPCTSTR lpszVersion,

.

  __in  LPCTSTR lpszReferer,

.

  __in  LPCTSTR *lplpszAcceptTypes,

.

  __in  DWORD dwFlags,

.

Please add some!

.

Sample Code:

.

Please add some!

. .

[DllImport("wininet.dll", SetLastError=true)]

.

static extern bool HttpQueryInfo(IntPtr hInternet, int dwInfoLevel, ref long lpBuffer, ref long lpdwBufferLength, ref long lpdwIndex);

.

Public Declare Function HttpQueryInfo Lib "wininet.dll" Alias "HttpQueryInfoA" (ByVal hHttpRequest As Integer, ByVal lInfoLevel As Integer, ByVal sBuffer As String, ByRef lBufferLength As Integer, ByRef lIndex As Integer) As Integer

.

Declare Function HttpQueryInfo Lib "wininet.dll" (TODO) As TODO

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

        long lLength = 0; long lBufferLen = 4; long lHeaderIndex = 0;

.

        HttpQueryInfo(hRequest, 536870917, ref lLength, ref lBufferLen, ref lHeaderIndex);

.
Documentation
. .

Sends the specified request to the HTTP server, allowing callers to send extra data beyond what is normally passed to HttpSendRequestEx.

.

[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

extern public static bool HttpSendRequest(

.

    [In] string lpszHeaders,

.

    [In] uint dwHeadersLength,

.

    [In] IntPtr lpOptional,

.

    [In] uint dwOptionalLength);

.

Please add some!

.

Sample Code:

.

Please add some!

. .

[DllImport("wininet.dll", SetLastError=true)]

.

Public Declare Function InternetAttemptConnect Lib "wininet" (Optional ByVal dwReserved As Long = 0) As Long

.

If the computer is already connected, the function may hang.

.

Please add some!

.

Sample Code:

.

  ' and False if it doesn't.

.

  ' This code is for VB 2002 or newer. For VB 6, replace "Integer" with "Long".

.

  Private Declare Function InternetAttemptConnect Lib "wininet" (Optional ByVal dwReserved As Integer = 0) As Integer

.

  Public Function ConnectToInternet() As Boolean

.

    Else

.

      Return False

.

Alternative Managed API:

.

Do you know one? Please contribute it!

. .

[DllImport("wininet.dll", SetLastError=true)]

.

static extern bool InternetAutodialHangup(int dwReserved);

.

Declare Function InternetAutodialHangup Lib "wininet.dll" ( _

.

   dwReserved As Integer) As Boolean

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[InternetAutoDialHangup] on MSDN
. .

[DllImport("wininet.dll", SetLastError=true)]

.

static extern bool InternetAutoDialHangup(int dwReserved);

.

Declare Function InternetAutoDialHangup Lib "wininet.dll" ( _

.

   dwReserved As Integer) As Boolean

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[InternetAutoDialHangup] on MSDN
.
Summary
Allows an application to check if a connection to the Internet can be established.
.

[DllImport("wininet.dll", SetLastError = true)]

.

static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);

.

Declare Function InternetCheckConnection Lib "wininet.dll" (ByVal lpszUrl As String, ByVal dwFlags As Integer, ByVal dwReserved As Integer) As Boolean

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

There are noted problems from some users using this function when the computer is behind a proxy.

.

Please add some!

.

Sample Code:

.

[DllImport("wininet.dll", SetLastError = true)]

.

private static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);

.

bool connectivity;

.

if (InternetCheckConnection("http://www.google.com/", 1, 0))

.
Documentation
. .

[DllImport("wininet.dll", SetLastError=true)]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

static extern bool InternetCloseHandle(IntPtr hInternet);

.

    Public Declare Function InternetCloseHandle Lib "wininet.dll" ( _

.

    ByVal hInet As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

See the HttpRequest and HttpResponse classes for alternate Managed Code methodologies.

.
Documentation
[InternetCloseHandle] on MSDN
. .

    * Returns a valid handle to the FTP, Gopher, or HTTP session if the connection is successful, or NULL otherwise. To get extended error information, call GetLastError. An application can also use InternetGetLastResponseInfo to determine why access to the service was denied.

.

const short INTERNET_INVALID_PORT_NUMBER = 0;

.

const short INTERNET_DEFAULT_FTP_PORT = 21;

.

const short INTERNET_DEFAULT_GOPHER_PORT = 70;

.

const short INTERNET_DEFAULT_HTTP_PORT = 80;

.

const short INTERNET_DEFAULT_HTTPS_PORT = 443;

.

const short INTERNET_DEFAULT_SOCKS_PORT = 1080;

.

[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)]

.

   IntPtr hInternet, string lpszServerName, short nServerPort,

.

   string lpszUsername, string lpszPassword, int dwService,

.

   int dwFlags, IntPtr dwContext);

.

Declare Auto Function InternetConnect Lib "wininet.dll" (

.

    ByVal hInternetSession As System.IntPtr,

.

    ByVal sServerName As String,

.

    ByVal nServerPort As Integer,

.

    ByVal sUsername As String,

.

    ByVal sPassword As String,

.

    ByVal lService As Int32,

.

    ByVal lFlags As Int32,

.

    ByVal lContext As System.IntPtr) As System.IntPtr

.

    Handle of the current Internet session. The handle must have been returned by a previous call to InternetOpen.

.

lpszServerName

.

    Address of a null-terminated string that contains the host name of an Internet server. Alternately, the string can contain the IP number of the site in ASCII dotted-decimal format (for example, 11.0.1.45).

.

    Number of the TCP/IP port on the server to connect to. Can be one of the values in the following list. If this parameter is set to INTERNET_INVALID_PORT_NUMBER, the function uses the default port for the specified service. These values do not cause the function to use this protocol. The value sets the port to be used. A flag must be used to set the service.

.

    Value     Meaning

.

    INTERNET_DEFAULT_FTP_PORT     Use the default port for FTP servers (port 21).

.

    INTERNET_DEFAULT_GOPHER_PORT     Use the default port for Gopher servers (port 70).

.

    INTERNET_DEFAULT_HTTP_PORT     Use the default port for HTTP servers (port 80).

.

    INTERNET_DEFAULT_HTTPS_PORT     Use the default port for HTTPS servers (port 443).

.

lpszUsername

.

    Address of a null-terminated string that contains the name of the user to log on. If this parameter is NULL, the function uses an appropriate default, except for HTTP. A NULL parameter in HTTP causes the server to return an error. For the FTP protocol, the default is anonymous.

.

lpszPassword

.

    Address of a null-terminated string that contains the password to use to log on. If both lpszPassword and lpszUsername are NULL, the function uses the default anonymous password. In the case of FTP, the default anonymous password is the user's e-mail name. If lpszPassword is NULL, but lpszUsername is not NULL, the function uses a blank password. The following table describes the behavior for the four possible settings of lpszUsername and lpszPassword:

.

    lpszUsername     lpszPassword     User name sent to FTP server     Password sent to FTP server

.

    NULL     NULL     "anonymous"     User's e-mail name

.

    Non-NULL string     NULL     lpszUsername     ""

.

    NULL     Non-NULL string     ERROR     ERROR

.

    Non-NULL string     Non-NULL string     lpszUsername     lpszPassword

.

    Type of service to access. Can be one of these values:

.

    Value     Meaning

.

dwFlags

.

    Flags specific to the service used. Can be one of these values:

.

    If dwService is:     dwFlags supported

.

    INTERNET_SERVICE_FTP     INTERNET_CONNECT_FLAG_PASSIVE (Use passive mode in all data connections for this FTP session.)

.

    An application-defined value that is used to identify the application context for the returned handle in callbacks.

.

Having a connect function for all protocols, even those that do not use persistent connections, lets an application communicate common information about several requests using a single function call. In addition, this allows for future versions of Internet protocols that do not require a connection to be established for every client request.

.

For FTP sites, InternetConnect actually establishes a connection with the server; for others, such as Gopher, the actual connection is not established until the application requests a specific transaction.

.

For maximum efficiency, applications using the Gopher and HTTP protocols should try to minimize calls to InternetConnect and avoid calling this function for every transaction requested by the user. One way to accomplish this is to keep a small cache of handles returned from InternetConnect; when the user makes a request to a previously accessed server, that session handle is still available.

.

An application that needs to display multiline text information sent by an FTP server can use InternetGetLastResponseInfo to retrieve the text.

.

For FTP connections, if lpszUsername is NULL, InternetConnect sends the string "anonymous" as the user name. If lpszPassword is NULL, InternetConnect attempts to use the user's e-mail name as the password.

.

To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection.

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

Do you know one? Please contribute it!

. .

public enum INTERNET_SCHEME

.

{ // Ref: http://msdn.microsoft.com/en-us/library/aa385149(VS.85).aspx

.

    INTERNET_SCHEME_PARTIAL = -2,

.

    INTERNET_SCHEME_DEFAULT = 0,

.

    INTERNET_SCHEME_FILE,

.

    INTERNET_SCHEME_MAILTO,

.

    INTERNET_SCHEME_LAST = INTERNET_SCHEME_VBSCRIPT

.

public struct URL_COMPONENTS

.

{ // Ref: http://msdn.microsoft.com/en-us/library/aa385420(VS.85).aspx

.

    public int dwStructSize;

.

    public string lpszScheme;

.

    public int dwSchemeLength;

.

    public INTERNET_SCHEME nScheme;

.

    public string lpszHostName;

.

    public int dwHostNameLength;

.

    public int nPort;

.

    public string lpszUserName;

.

    public int dwUserNameLength;

.

    public string lpszPassword;

.

    public int dwPasswordLength;

.

    public string lpszUrlPath;

.

    public int dwUrlPathLength;

.

    public string lpszExtraInfo;

.

    public int dwExtraInfoLength;

.

[DllImport("wininet.dll")]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

public static extern bool InternetCrackUrl( // Ref: http://msdn.microsoft.com/en-us/library/aa384376(VS.85).aspx

.

    // (in) Pointer to a string that contains the canonical URL to be cracked

.

    string lpszUrl,

.

    // (in) Size of the lpszUrl string, in TCHARs, or zero if lpszUrl is an ASCIIZ string

.

    int dwUrlLength,

.

    // (in) Controls the operation. This parameter can be one of the following values

.

    int dwFlags,

.

    // (out) Pointer to a URL_COMPONENTS structure that receives the URL components

.

    ref URL_COMPONENTS lpUrlComponents);

.

Declare Function InternetCrackUrl Lib "wininet.dll" (ByVal lpszUrl As String, ByVal dwUrlLength As Integer, ByVal dwFlags As Integer, ByRef lpUrlComponents As URL_COMPONENTS) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

URL_COMPONENTS

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

.
Documentation
[InternetCrackUrl] on MSDN
. .

[System.Runtime.InteropServices.DllImport("Wininet.dll")]

.

private static extern Int32 InternetDial(IntPtr hwndParent, string lpszConnectoid, Int32 dwFlags, ref Int32 lpdwConnection, Int32 dwReserved);

.

Declare Function InternetDial Lib "wininet.dll" () As Integer

.

Please add some!

.

Sample Code:

.

int nResult = InternetDial(IntPtr.Zero ,"Your connection",(int)InternetDialFlags.INTERNET_DIAL_UNATTENDED ,ref nConnection , 0);

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[InternetDial] on MSDN
. .
Summary
.

[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

static extern bool InternetFindNextFile(IntPtr hFind,

.

   out WIN32_FIND_DATA findFileData);

.

Declare Function InternetFindNextFile Lib "wininet.dll" _

.

   (ByVal hFind As IntPtr, ByRef findFileData As WIN32_FIND_DATA) _

.

   As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Please add some!

.

Sample Code:

.

Please add some!

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[InternetFindNextFile] on MSDN
.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/InternetFindNextFile.asp

. .

///     Retrieves the connected state of the local system.

.

///     https://msdn.microsoft.com/en-us/library/windows/desktop/aa384702%28v=vs.85%29.aspx

.

///     C++ ( lpdwFlags [out]. Type: LPDWORD )<br />Pointer to a variable that receives the connection description. This

.

///     parameter may return a valid flag even when the function returns FALSE. This parameter can be one or more of the

.

///     following values.

.

///     <list type="table">

.

///     <listheader>

.

///         <term>Internet Connection State Possible Flags</term>

.

///     </listheader>

.

///         Local system has a valid connection to the Internet, but it might or might not be currently

.

///         <term>INTERNET_CONNECTION_LAN (0x02)</term>

.

///         <description>Local system uses a local area network to connect to the Internet.</description>

.

///         <description>Local system uses a modem to connect to the Internet.</description>

.

///         <description>No longer used.</description>

.

///         <term>INTERNET_CONNECTION_OFFLINE (0x20)</term>

.

///         <description>Local system is in offline mode.</description>

.

///         <description>Local system uses a proxy server to connect to the Internet.</description>

.

///         <term>INTERNET_RAS_INSTALLED (0x10)</term>

.

///         <description>Local system has RAS installed.</description>

.

///     </list>

.

/// <param name="reservedValue">C++ ( dwReserved [in].Type: )<br />This parameter is reserved and must be 0.</param>

.

///     <c>true</c> if there is an active modem or a LAN Internet connection, <c>false</c> if there is no Internet

.

///     connection, or if all possible Internet connections are not currently active.

.

///     A return value of TRUE from InternetGetConnectedState indicates that at least one connection to the Internet is

.

///     available. It does not guarantee that a connection to a specific host can be established. Applications should

.

///     always check for errors returned from API calls that connect to a server. InternetCheckConnection can be called to

.

///     determine if a connection to a specific destination can be established.

.

///     <br />A return value of TRUE indicates that either the modem connection is active, or a LAN connection is active

.

///     and a proxy is properly configured for the LAN.A return value of FALSE indicates that neither the modem nor the LAN

.

///     is connected.If FALSE is returned, the INTERNET_CONNECTION_CONFIGURED flag may be set to indicate that autodial is

.

///     configured to "always dial" but is not currently active.If autodial is not configured, the function returns FALSE.

.

///     <br />Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the

.

///     constructors and destructors of global objects.

.

///     <br />Note WinINet does not support server implementations. In addition, it should not be used from a service. For

.

///     server implementations or services use Microsoft Windows HTTP Services (WinHTTP).

.

[DllImport("wininet.dll", SetLastError=true)]

.

extern static bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);

.

[Flags]

.

    LAN = 0x2,

.

    RasInstalled = 0x10,

.

    Offline = 0x20,

.

  Private Declare Function InternetGetConnectedState Lib "wininet.dll" _

.

  (ByRef lpdwFlags As Int32, ByVal dwReserved As Int32) As Boolean

.

    LAN = &H2

.

    RasInstalled = &H10

.

    Offline = &H20

.

InternetGetConnectedStateFlags

.

Please add some!

.

Sample Code:

.

C: http://support.microsoft.com/default.aspx?scid=kb;EN-US;242558

.

namespace ConsoleApplication2

.

  internal class Program

.

   [DllImport("wininet.dll", SetLastError = true)]

.

   private static extern bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);

.

    int flags;

.

    bool isConnected = InternetGetConnectedState(out flags, 0);

.

    Console.WriteLine(string.Format("Is connected :{0} Flags:{1}", isConnected, flags));

.

Function Get_InternetConnectedState(ByRef p_lngFlags As Long, Optional ByRef p_return_str As String = "") As Boolean

.

   Dim lngFlags As Long

.

      lngFlags = 0

.

      Get_InternetConnectedState = False

.

      If InternetGetConnectedState(lngFlags, 0) Then

.

     If lngFlags And ConnectionStates.LAN Then

.

        'LAN connection.

.

        p_return_str = "LAN connection."

.

     ElseIf lngFlags And ConnectionStates.Modem Then

.

     ElseIf lngFlags And ConnectionStates.Proxy Then

.

      Else

.

     Get_InternetConnectedState = False

.

      p_lngFlags = lngFlags

.

Alternative Managed API:

.

Try NetworkInterface.GetIsNetworkAvailable() in the the System.Net.NetworkInformation namespace. It returns true when a network is available and false otherwise. See also: http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.networkinterface.getisnetworkavailable(VS.80).aspx. NOTE: this is all new in .NET 2.0!

.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetgetconnectedstate.asp

. .

[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);

.

Declare Function InternetGetCookieEx Lib "wininet.dll" Alias "InternetGetCookieExA" (ByVal pchURL As String, ByVal pchCookieName As String, _

.

    ByVal pchCookieData As System.Text.StringBuilder, ByRef pcchCookieData As Integer, ByVal flags As Integer, ByVal reserved As Integer) As _

.

    <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)> Boolean

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

    [DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

    static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);

.

    private static string GetCookieString(string url)

.

        StringBuilder cookieData = new StringBuilder(Convert.ToInt32(datasize));

.

        if (!InternetGetCookieEx(url, null, cookieData, ref datasize, 0x00002000, IntPtr.Zero))

.

            return null;

.

        // Allocate stringbuilder large enough to hold the cookie    

.

        cookieData = new StringBuilder(Convert.ToInt32(datasize));

.

        if (!InternetGetCookieEx(url, null, cookieData, ref datasize, 0x00002000, IntPtr.Zero))

.

            return null;

. .

[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]

.

static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);

.

Declare Function InternetGetCookieEx Lib "wininet.dll" Alias "InternetGetCookieExA" (ByVal pchURL As String, ByVal pchCookieName As String, _

.

    ByVal pchCookieData As System.Text.StringBuilder, ByRef pcchCookieData As Integer, ByVal flags As Integer, ByVal reserved As Integer) As _

.

    <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)> Boolean

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.

Please add some!

.

Sample Code:

.

Please add some!

. .
Summary
Retrieves the last error description or server response on the thread calling this function.
.

[DllImport("wininet.dll")]

.

[return: MarshalAs(UnmanagedType.Bool)]

.

static extern bool InternetGetLastResponseInfo(

.

   out int errorCode, StringBuilder buffer, ref int bufferLength);

.

Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" _

.

   (ByRef errorCode As Integer, ByVal buffer As String, ByRef bufferLength As Integer) _

.

   As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Please add some!

.

Sample Code:

.

  Private Function getLastResponse() As String

.

    'Call in once to get the size of the buffer we will need

.

    InternetGetLastResponseInfo(_errorCode, vbNullString, _buffSize)

.

    'Allocate space for the message

.

    InternetGetLastResponseInfo(_errorCode, message, _buffSize)

.

Alternative Managed API:

.

Do you know one? Please contribute it!

.
Documentation
[InternetGetLastResponseInfo] on MSDN
.

Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/InternetGetLastResponseInfo.asp

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: