锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美成人精品在线播放,欧美精品午夜,国产专区欧美精品http://www.shnenglu.com/longshen/zh-cnSat, 29 Nov 2025 12:46:43 GMTSat, 29 Nov 2025 12:46:43 GMT60銆愬洖杞︺佹崲琛屻戞葷粨http://www.shnenglu.com/longshen/archive/2011/10/31/159399.htmllongshenlongshenMon, 31 Oct 2011 10:25:00 GMThttp://www.shnenglu.com/longshen/archive/2011/10/31/159399.htmlhttp://www.shnenglu.com/longshen/comments/159399.htmlhttp://www.shnenglu.com/longshen/archive/2011/10/31/159399.html#Feedback0http://www.shnenglu.com/longshen/comments/commentRss/159399.htmlhttp://www.shnenglu.com/longshen/services/trackbacks/159399.html鈥濓紝鍗斥淺n鈥濓紱
Windows緋葷粺閲岄潰錛屾瘡琛岀粨灝炬槸鈥?鍥炶濺><鎹㈣>鈥濓紝鍗斥淺r\n鈥濓紱
Mac緋葷粺閲岋紝姣忚緇撳熬鏄?鍥炶濺>鈥?錛屽嵆鈥淺r鈥濓紱  闃呰鍏ㄦ枃

longshen 2011-10-31 18:25 鍙戣〃璇勮
]]>
銆愯漿銆慡TL涓璼ort鐨勭敤娉曚婦渚?/title><link>http://www.shnenglu.com/longshen/archive/2010/12/08/135831.html</link><dc:creator>longshen</dc:creator><author>longshen</author><pubDate>Wed, 08 Dec 2010 12:46:00 GMT</pubDate><guid>http://www.shnenglu.com/longshen/archive/2010/12/08/135831.html</guid><wfw:comment>http://www.shnenglu.com/longshen/comments/135831.html</wfw:comment><comments>http://www.shnenglu.com/longshen/archive/2010/12/08/135831.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/longshen/comments/commentRss/135831.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/longshen/services/trackbacks/135831.html</trackback:ping><description><![CDATA[     鎽樿: STL涓璼ort鐨勭敤娉曚婦渚? 濡備綍璋冩暣鍗囧簭榪樻槸闄嶅簭  <a href='http://www.shnenglu.com/longshen/archive/2010/12/08/135831.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/longshen/aggbug/135831.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/longshen/" target="_blank">longshen</a> 2010-12-08 20:46 <a href="http://www.shnenglu.com/longshen/archive/2010/12/08/135831.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>VC++鐨勬枃浠剁畝浠?/title><link>http://www.shnenglu.com/longshen/archive/2010/09/11/126398.html</link><dc:creator>longshen</dc:creator><author>longshen</author><pubDate>Sat, 11 Sep 2010 03:59:00 GMT</pubDate><guid>http://www.shnenglu.com/longshen/archive/2010/09/11/126398.html</guid><wfw:comment>http://www.shnenglu.com/longshen/comments/126398.html</wfw:comment><comments>http://www.shnenglu.com/longshen/archive/2010/09/11/126398.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/longshen/comments/commentRss/126398.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/longshen/services/trackbacks/126398.html</trackback:ping><description><![CDATA[     鎽樿: VC++鐨勬枃浠訛紝 pdb鏂囦歡錛?cod鏂囦歡錛?map鏂囦歡錛宒sp鏂囦歡錛宒sw鏂囦歡錛宑lw鏂囦歡錛宺c鏂囦歡錛宲ch鏂囦歡錛?sln鏂囦歡錛?vcproj鏂囦歡絳?nbsp; <a href='http://www.shnenglu.com/longshen/archive/2010/09/11/126398.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/longshen/aggbug/126398.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/longshen/" target="_blank">longshen</a> 2010-09-11 11:59 <a href="http://www.shnenglu.com/longshen/archive/2010/09/11/126398.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>win7涓嬭繍琛岃蔣浠舵煇浜涘姛鑳藉悗鏃犲搷搴旈棶棰?/title><link>http://www.shnenglu.com/longshen/archive/2010/04/22/113273.html</link><dc:creator>longshen</dc:creator><author>longshen</author><pubDate>Thu, 22 Apr 2010 13:02:00 GMT</pubDate><guid>http://www.shnenglu.com/longshen/archive/2010/04/22/113273.html</guid><wfw:comment>http://www.shnenglu.com/longshen/comments/113273.html</wfw:comment><comments>http://www.shnenglu.com/longshen/archive/2010/04/22/113273.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/longshen/comments/commentRss/113273.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/longshen/services/trackbacks/113273.html</trackback:ping><description><![CDATA[     鎽樿: 鏈夋椂榪愯杞歡鐨勬煇浜涘姛鑳藉悗錛岀▼搴忔棤鍝嶅簲.... <br>渚嬪榪愯vs2003鐨勬煡鎵懼姛鑳藉悗錛岀▼搴忔棤鍝嶅簲  <a href='http://www.shnenglu.com/longshen/archive/2010/04/22/113273.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/longshen/aggbug/113273.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/longshen/" target="_blank">longshen</a> 2010-04-22 21:02 <a href="http://www.shnenglu.com/longshen/archive/2010/04/22/113273.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>璁捐妯″紡綺捐В絎旇 -- 鎻愪緵浠g爜鍜岀被鍥?/title><link>http://www.shnenglu.com/longshen/archive/2010/04/08/112004.html</link><dc:creator>longshen</dc:creator><author>longshen</author><pubDate>Thu, 08 Apr 2010 13:17:00 GMT</pubDate><guid>http://www.shnenglu.com/longshen/archive/2010/04/08/112004.html</guid><wfw:comment>http://www.shnenglu.com/longshen/comments/112004.html</wfw:comment><comments>http://www.shnenglu.com/longshen/archive/2010/04/08/112004.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/longshen/comments/commentRss/112004.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/longshen/services/trackbacks/112004.html</trackback:ping><description><![CDATA[     鎽樿: 璁捐妯″紡綺捐В璇諱功絎旇錛屽涔犱功綾嶇殑鍚屾椂錛屾寜鐫鑷繁鐨勭悊瑙g紪鍐欎唬鐮佸拰綾誨浘銆傛湁璇箣澶勮緗戝弸鎸囧嚭錛宼hanks銆?nbsp; <a href='http://www.shnenglu.com/longshen/archive/2010/04/08/112004.html'>闃呰鍏ㄦ枃</a><img src ="http://www.shnenglu.com/longshen/aggbug/112004.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/longshen/" target="_blank">longshen</a> 2010-04-08 21:17 <a href="http://www.shnenglu.com/longshen/archive/2010/04/08/112004.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎴愬姛緙栬瘧emule Xtreme modhttp://www.shnenglu.com/longshen/archive/2010/04/07/111830.htmllongshenlongshenWed, 07 Apr 2010 02:10:00 GMThttp://www.shnenglu.com/longshen/archive/2010/04/07/111830.htmlhttp://www.shnenglu.com/longshen/comments/111830.htmlhttp://www.shnenglu.com/longshen/archive/2010/04/07/111830.html#Feedback0http://www.shnenglu.com/longshen/comments/commentRss/111830.htmlhttp://www.shnenglu.com/longshen/services/trackbacks/111830.html闃呰鍏ㄦ枃

longshen 2010-04-07 10:10 鍙戣〃璇勮
]]>
瑙e喅 error LNK2019: 鏃犳硶瑙f瀽鐨勫閮ㄧ鍙?闂http://www.shnenglu.com/longshen/archive/2010/04/02/111418.htmllongshenlongshenFri, 02 Apr 2010 04:51:00 GMThttp://www.shnenglu.com/longshen/archive/2010/04/02/111418.htmlhttp://www.shnenglu.com/longshen/comments/111418.htmlhttp://www.shnenglu.com/longshen/archive/2010/04/02/111418.html#Feedback1http://www.shnenglu.com/longshen/comments/commentRss/111418.htmlhttp://www.shnenglu.com/longshen/services/trackbacks/111418.html闃呰鍏ㄦ枃

longshen 2010-04-02 12:51 鍙戣〃璇勮
]]>
鏈嶅姟鍣ㄥ簲鐢ㄧ▼搴忎笉鍙敤瑙e喅鏂規http://www.shnenglu.com/longshen/archive/2009/11/27/102060.htmllongshenlongshenFri, 27 Nov 2009 06:38:00 GMThttp://www.shnenglu.com/longshen/archive/2009/11/27/102060.htmlhttp://www.shnenglu.com/longshen/comments/102060.htmlhttp://www.shnenglu.com/longshen/archive/2009/11/27/102060.html#Feedback0http://www.shnenglu.com/longshen/comments/commentRss/102060.htmlhttp://www.shnenglu.com/longshen/services/trackbacks/102060.htmlFailed to execute request because the App-Domain could not be created瑙e喅鍔炴硶  闃呰鍏ㄦ枃

longshen 2009-11-27 14:38 鍙戣〃璇勮
]]>
絎?绔?鍐呮牳瀵硅薄 -- Windows鏍稿績緙栫▼http://www.shnenglu.com/longshen/archive/2009/11/26/101961.htmllongshenlongshenThu, 26 Nov 2009 03:06:00 GMThttp://www.shnenglu.com/longshen/archive/2009/11/26/101961.htmlhttp://www.shnenglu.com/longshen/comments/101961.htmlhttp://www.shnenglu.com/longshen/archive/2009/11/26/101961.html#Feedback0http://www.shnenglu.com/longshen/comments/commentRss/101961.htmlhttp://www.shnenglu.com/longshen/services/trackbacks/101961.html 

1銆佷綍涓哄唴鏍稿璞?/strong>
      姣忎釜鍐呮牳瀵硅薄閮?span style="COLOR: red">鍙槸涓涓唴瀛樺潡錛屽畠鐢辨搷浣滅郴緇熷唴鏍稿垎閰嶏紝騫跺彧鑳界敱鎿嶄綔緋葷粺鍐呮牳璁塊棶銆?span style="COLOR: red">榪欎釜鍐呭瓨鍧楁槸涓涓暟鎹粨鏋?/span>錛屽叾鎴愬憳緇存姢鐫浜庡璞$浉鍏崇殑淇℃伅銆傚皯鏁版垚鍛?瀹夊叏鎻忚堪絎︿綍浣跨敤璁℃暟絳?鏄墍鏈夊璞¢兘鏈夌殑錛屼絾鍏朵粬澶у鏁版垚鍛橀兘鏄笉鍚岀被鍨嬬殑瀵硅薄鐗規湁鐨勩?br>      e.g. 璁塊棶浠ょ墝(access token)瀵硅薄銆佷簨浠跺璞°佹枃浠跺璞°佹枃浠舵槧灝勫璞°両/O瀹屾垚绔彛瀵硅薄銆佷綔涓氬璞°侀偖浠舵Ы(mailsolt)瀵硅薄銆佷簰鏂ラ噺(mutex)瀵硅薄銆佺閬?pipe)瀵硅薄絳?br>      *鍙埄鐢⊿ysintenals鐨刉inObj(http://technet.microsoft.com/zh-cn/sysinternals/bb896657.aspx)宸ュ叿鏌ョ湅鍐呮牳瀵硅薄綾誨瀷鐨勫垪琛ㄣ?br>1.1銆佷嬌鐢ㄨ鏁?br>      浣跨敤璁℃暟浜嬫墍鏈夊唴鏍稿璞$被鍨嬮兘鏈夌殑涓涓暟鎹垚鍛樸傚垵嬈″垱寤哄璞′簨錛屽叾浣跨敤璁℃暟琚涓?span style="COLOR: red">1銆傚鏋滃彟涓榪涚▼鑾峰緱瀵圭幇鏈夊唴鏍稿璞$殑璁塊棶鍚庯紝浣跨敤璁℃暟浼?span style="COLOR: red">閫掑銆傝繘紼嬬粓姝㈣繍琛屽悗錛屾搷浣滅郴緇熷唴鏍稿皢鑷姩閫掑噺榪涚▼浠嶇劧鎵撳紑鐨勬墍鏈夊唴鏍稿璞$殑浣跨敤璁℃暟銆備竴鏃﹀璞$殑浣跨敤璁℃暟鍙樹負0錛屾搷浣滅郴緇熷唴鏍稿氨浼氶攢姣佽瀵硅薄銆?br>1.2銆佸唴鏍稿璞$殑瀹夊叏鎬?br>      鍐呮牳瀵硅薄鍙互鐢ㄤ竴涓畨鍏ㄦ弿榪?security descriptor, SD)絎︽潵淇濇姢銆傚畠鎻忚堪浜嗚皝鎷ユ湁瀵硅薄錛涘摢浜涚粍鍜岀敤鎴瘋鍏佽璁塊棶鎴栦嬌鐢ㄦ瀵硅薄錛涘摢浜涚粍浣曠敤鎴瘋鎷掔粷璁塊棶姝ゅ璞°?br>      鐢ㄤ簬鍒涘緩鍐呮牳瀵硅薄鐨勬墍鏈夊嚱鏁板嚑涔庨兘鏈夋寚鍚戜竴涓?span style="COLOR: #0000ff">SECURITY_ATTRIBUTES緇撴瀯鐨勬寚閽?br>                      typedef struct _SECURITY_ATTRIBUTES { 
                          DWORD  nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID nLength;                         //Specifies the size, in bytes, of this structure錛屼竴鑸負sizeof(姝ょ粨鏋勫彉閲?
                          LPVOID lpSecurityDescriptor;       //鍜屽畨鍏ㄦф湁鍏崇殑鎴愬憳
                          BOOL   lpSecurityDescriptor;       //鍜屽畨鍏ㄦф湁鍏崇殑鎴愬憳
                          BOOL   lpSecurityDescriptor;       //鍜屽畨鍏ㄦф湁鍏崇殑鎴愬憳
                          BOOL   lpSecurityDescriptor;       //鍜屽畨鍏ㄦф湁鍏崇殑鎴愬憳
                          BOOL   lpSecurityDescriptor;       //鍜屽畨鍏ㄦф湁鍏崇殑鎴愬憳
                          BOOL   lpSecurityDescriptor;       //鍜屽畨鍏ㄦф湁鍏崇殑鎴愬憳
                          BOOL   lpSecurityDescriptor;       //鍜屽畨鍏ㄦф湁鍏崇殑鎴愬憳
                          BOOL   bInheritHandle
                     } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES;    

2銆佽繘紼嬪唴鏍稿璞″彞鏌勮〃
         榪涚▼鐨勫彞鏌勮〃緇撴瀯

绱㈠紩

鎸囧悜鍐呮牳瀵硅薄鍐呭瓨鍧楃殑鎸囬拡

璁塊棶鎺╃爜錛堝寘鍚爣蹇椾綅鐨勪竴涓?/span>DWORD錛?/span>

鏍囧織

1

0x?????????

0x?????????

0x?????????

2

0x?????????

0x?????????

0x?????????

2.1銆佸垱寤轟竴涓唴鏍稿璞?br>      鐢ㄤ簬鍒涘緩鍐呮牳瀵硅薄鐨勪換浣曞嚱鏁伴兘浼氳繑鍥炰竴涓笌榪涚▼鐩稿叧鐨勫彞鏌勶紝榪欎釜鍙ユ焺鍙敱鍚屼竴涓繘紼嬩腑榪愯鐨勬墍鏈夌嚎紼嬩嬌鐢ㄣ?span style="COLOR: red">鐢變簬鍙ユ焺鍊煎疄闄呬簨浣滀負榪涚▼鍙ユ焺琛ㄧ殑绱㈠紩鏉ヤ嬌鐢ㄧ殑錛岀儲寮曡繖浜涘彞鏌勬槸涓庡綋鍓嶈繖涓繘紼嬬浉鍏崇殑錛屾棤娉曚緵鍏朵粬榪涚▼浣跨敤銆?br>       璋冪敤鍑芥暟鏉ュ垱寤轟竴涓唴鏍稿璞℃椂錛屽鏋滆皟鐢ㄥけ璐ワ紝澶氭暟榪斿洖鐨勫彞鏌勫兼槸0(NULL)錛屼絾鏈夊嚑涓嚱鏁頒細榪斿洖-1(涔熷氨鏄湪Winbase.h涓畾涔夌殑INVALID_HANDLE_VALUE)銆傛鏌ュ畠浠殑榪斿洖鍊兼槸錛屽姟蹇呯浉褰撲粩緇嗐?br>2.2銆佸叧闂唴鏍稿璞?br>   鏃犺浠ヤ粈涔堟柟寮忓垱寤哄唴鏍稿璞★紝鎴戜滑閮借璋冪敤CloseHandle鍚戠郴緇熻〃鏄庢垜浠凡緇忕粨鏉熶嬌鐢ㄥ璞°?br>         BOOL CloseHandle(
                 HANDLE
hObject   // handle to object
          );            
   鍦ㄥ唴閮紝璇ュ嚱鏁伴鍏堟鏌ヤ富璋冭繘紼嬬殑鍙ユ焺琛紝楠岃瘉“浼犵粰鍑芥暟鐨勫彞鏌勫?#8221;鏍囪瘑鐨勬槸“榪涚▼紜疄鏈夋潈璁塊棶鐨勪竴涓璞?#8221;銆?br>   1)濡傛灉鍙ユ焺鏄湁鏁堢殑錛岀郴緇熷氨灝嗚幏寰楀唴鏍稿璞$殑鏁版嵁緇撴瀯鐨勫湴鍧錛屽茍灝嗙粨鏋勪腑鐨?#8220;浣跨敤璁℃暟”鎴愬憳閫掑噺錛屽鏋滀嬌鐢ㄨ鏁板彉鎴?錛屽唴鏍稿璞″皢琚攢姣侊紝騫朵粠鍐呭瓨涓幓闄ゃ?br>   2)濡傛灉鍙ユ焺鏄棤鏁堢殑錛?br>         濡傛灉榪涚▼鏄甯歌繍琛岀殑錛?strong>CloseHandle
灝嗚繑鍥濬ALSE錛岃?strong>GetLastError榪斿洖ERROR_INVALID_HANDLE銆?br>         濡傛灉榪涚▼姝e湪琚皟璇曪紝閭d箞緋葷粺灝嗘姏鍑?xC0000008寮傚父(“鎸囧畾浜嗘棤鏁堢殑鍙ユ焺”)銆?br>hObject   // handle to object
          );            
   鍦ㄥ唴閮紝璇ュ嚱鏁伴鍏堟鏌ヤ富璋冭繘紼嬬殑鍙ユ焺琛紝楠岃瘉“浼犵粰鍑芥暟鐨勫彞鏌勫?#8221;鏍囪瘑鐨勬槸“榪涚▼紜疄鏈夋潈璁塊棶鐨勪竴涓璞?#8221;銆?br>   1)濡傛灉鍙ユ焺鏄湁鏁堢殑錛岀郴緇熷氨灝嗚幏寰楀唴鏍稿璞$殑鏁版嵁緇撴瀯鐨勫湴鍧錛屽茍灝嗙粨鏋勪腑鐨?#8220;浣跨敤璁℃暟”鎴愬憳閫掑噺錛屽鏋滀嬌鐢ㄨ鏁板彉鎴?錛屽唴鏍稿璞″皢琚攢姣侊紝騫朵粠鍐呭瓨涓幓闄ゃ?br>   2)濡傛灉鍙ユ焺鏄棤鏁堢殑錛?br>         濡傛灉榪涚▼鏄甯歌繍琛岀殑錛?strong>CloseHandle灝嗚繑鍥濬ALSE錛岃?strong>GetLastError榪斿洖ERROR_INVALID_HANDLE銆?br>         濡傛灉榪涚▼姝e湪琚皟璇曪紝閭d箞緋葷粺灝嗘姏鍑?xC0000008寮傚父(“鎸囧畾浜嗘棤鏁堢殑鍙ユ焺”)銆?br>   *媯嫻嬪唴鏍稿璞℃硠闇?/span>錛?br>       鐢╓indows浠誨姟綆$悊鍣紝閫夋嫨(鏌ョ湅)->(閫夋嫨鍒?錛岀劧鍚庨夋嫨鏄劇ず(鍙ユ焺鏁?銆備究鍙湪榪涚▼鍑虹洃瑙嗕換浣曚竴涓簲鐢ㄧ▼搴忕殑鍐呮牳瀵硅薄鏁頒簡銆?br>        浣跨敤Sysinternals鎻愪緵鐨凱rocess Explorer宸ュ叿(http://technet.microsoft.com/zh-cn/sysinternals/bb896653.aspx)錛岄夋嫨(View)->(Select Columns)錛岄夋嫨(Handle)錛岄変腑鎵鏈夊垪鏍囬銆?鍦ㄩ《閮ㄩ夋嫨鎯寵媯鏌ョ殑榪涚▼錛屾寜F5鏉ヨ幏寰椾竴浠芥渶鏂扮殑鍐呮牳瀵硅薄鍒楄〃銆?鐒跺悗鍚姩搴旂敤紼嬪簭騫跺紑濮嬫寚鍚戜竴涓緟鏌ョ殑宸ヤ綔嫻併傚畬鎴愪箣鍚庯紝鍐嶆鎸塅5銆傚湪姝ゆ湡闂寸敓鎴愮殑姣忎釜鍐呮牳瀵硅薄閮芥樉紺轟負緇胯壊銆?br>
3銆佽法榪涚▼杈圭晫鍏變韓鍐呮牳瀵硅薄
      鍐呮牳瀵硅薄鐨勫彞鏌勬槸涓庢瘡涓涓繘紼嬬浉鍏崇殑錛屾槸涓虹‘淇濆仴澹?鍙潬鎬?鍜屽畨鍏ㄦс?br>3.1銆佷嬌鐢ㄥ璞″彞鏌勭戶鎵?br>   鍙湁鍦?span style="COLOR: #ff0000">榪涚▼涔嬮棿鏈変竴涓埗-瀛愬叧緋?/span>鐨勬椂鍊欙紝鎵嶅彲浠ヤ嬌鐢ㄥ璞″彞鏌勭戶鎵褲?nbsp;  
   棣栧厛錛岀埗榪涚▼蹇呴』鍚戠郴緇熸寚鍑哄畠甯屾湜榪欎釜瀵硅薄鐨勫彞鏌勬槸鍙戶鎵跨殑銆?br>            e.g.

    SECURITY_ATTRIBUTES sa;
    sa.nLength 
= siezof(sa);
    sa.lpSecurityDescriptor 
= NULL;
    sa.bInheritHandle 
= TRUE;        //Make the returned handle inheritable

    HANDLE hMutex 
= CreateMutex(&sa, FALSE, NULL);
   鐒跺悗錛岀敱鐖惰繘紼嬬敓鎴愬瓙榪涚▼錛岄氳繃CreateProcess鍑芥暟瀹屾垚    
BOOL CreateProcess(
  LPCTSTR lpApplicationName,
  LPTSTR lpCommandLine,
  LPSECURITY_ATTRIBUTES lpProcessAttributes,
  LPSECURITY_ATTRIBUTES lpThreadAttributes,
  BOOL bInheritHandles,            
//閫氬父鎯呭喌涓嬭涓篎ALSE錛堣〃鏄庢垜浠笉甯屾湜瀛愯繘紼嬬戶鎵跨埗榪涚▼鍙ユ焺琛ㄤ腑鐨?#8220;鍙戶鎵垮彞鏌?#8221;錛?br>                                                       //濡傛灉浼犻扵RUE錛屽瓙榪涚▼灝變細緇ф壙鐖惰繘紼嬬殑“鍙戶鎵垮彞鏌?#8221;鐨勫箋?br>                                                                //錛堢郴緇熶細閬嶅巻絎﹁繘紼嬬殑鍙ユ焺琛紝瀵瑰畠鐨勬瘡涓涓褰曢」榪涜媯鏌ワ紝鍑℃槸鍖呭惈涓涓?br>                                                                //鏈夋晥鐨?#8220;鍙戶鎵垮彞鏌?#8221;鐨勯」錛岄兘浼氳瀹屾暣鍦板鍒跺埌瀛愯繘紼嬬殑鍙ユ焺琛級
  DWORD dwCreationFlags,
  LPVOID lpEnvironment,
  LPCTSTR lpCurrentDirectory,
  LPSTARTUPINFO lpStartupInfo,
  LPPROCESS_INFORMATION lpProcessInformation
);
        闄や簡澶嶅埗鍙ユ焺琛ㄧ殑璁板綍欏癸紝緋葷粺榪樹細閫掑鍐呮牳瀵硅薄鐨勪嬌鐢ㄨ鏁幫紝寮曟搸涓や釜榪涚▼鐜板湪閮藉湪浣跨敤榪欎釜瀵硅薄銆?br>3.2鏀瑰彉鍙ユ焺鐨勬爣蹇?br>     1)鐖惰繘紼嬫兂鎺у埗鍝簺瀛愯繘紼嬭兘緇ф壙鍐呮牳瀵硅薄鍙ユ焺銆傚彲浠ヨ皟鐢?strong>SetHandleInformation鍑芥暟鏉ユ敼鍙樺唴鏍稿璞″彞鏌勭殑緇ф壙鏍囧織銆?br>
BOOL SetHandleInformation(
  HANDLE hObject,        
//鏈夋晥鍙ユ焺鏍囧織
  DWORD dwMask,            //鎯寵鏇存敼閭d釜鎴栧摢浜涙爣蹇?/span>
  DWORD dwFlags            //甯屾湜鎶婃爣蹇楄涓轟粈涔?/span>
);
   姣忎釜鍙ユ焺閮藉叧鑱斾簡涓や釜鏍囧織錛?br>
#define HANDLE_FLAG_INHERIT                                       0x00000001
#define HANDLE_FLAG_PROTECT_FROM_CLOSE        0x00000002
   濡傛灉鎯蟲墦寮涓涓唴鏍稿璞″彞鏌勭殑緇ф壙鏍囧織
SetHandleInformation(hObj, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT);
   濡傛灉鎯沖叧闂繖涓爣蹇?br>
SetHandleInformation(hObj, HANDLE_FLAG_INHERIT, 0);
   濡傛灉鍛婅瘔緋葷粺涓嶅厑璁稿叧闂彞鏌?
SetHandleInformation(hObj,,HANDLE_FLAG_PROTECT_FROM_CLOSE, HANDLE_FLAG_PROTECT_FROM_CLOSE);
CloseHandle(hObj);    
//浼氬紩鍙戝紓甯?/span>
   2)浣跨敤GetHandleInformation鍑芥暟榪斿洖鍙ユ焺鏍囧織
BOOL GetHandleInformation(
  HANDLE hObject,
  LPDWORD lpdwFlags
);
   e.g.媯鏌ュ彞鏌勬槸鍚﹀彲緇ф壙
DWORD dwFlags;
GetHandleInformation(hObj, 
&dwFlags);
BOOL fHandleIsInheritable 
= (0 != (dwFlags & HANDLE_FLAG_INHERIT));
3.3涓哄璞″懡鍚?br>
HANDLE CreateMutex(
  LPSECURITY_ATTRIBUTES lpMutexAttributes,
  BOOL bInitialOwner,
  LPCTSTR lpName
);

HANDLE CreateEvent(
  LPSECURITY_ATTRIBUTES lpEventAttributes,
  BOOL bManualReset,
  BOOL bInitialState,
  LPCTSTR lpName
);

HANDLE CreateEvent(
  LPSECURITY_ATTRIBUTES lpEventAttributes,
  BOOL bManualReset,
  BOOL bInitialState,
  LPCTSTR lpName
);
   鎵鏈夎繖浜涘嚱鏁扮殑鏈鍚庝竴涓弬鏁伴兘鏄痯szName銆備紶鍏ULL錛岀浉褰撲簬鍚戠郴緇熻〃鏄庢垜浠鍒涘緩涓涓湭鍛藉悕鐨?鍗沖尶鍚?鍐呮牳瀵硅薄銆?br>   瑕佹牴鎹璞″悕縐版潵鍏變韓涓涓璞★紝鎴戜滑蹇呴』涓烘瀵硅薄鎸囧畾涓涓悕縐般備紶鍏ヤ竴涓?#8220;浠?涓虹粓姝㈢殑鍚嶇О瀛楃涓?#8221;鐨勫湴鍧銆?
//榪涚▼A
HANDLE hMutexProcessA = CreateMutex(NULL, FALSE, TEXT錛?/span>"JeffMutex"));

//榪涚▼B
HANDLE hMutexProcessB = CreateMutex(NULL, FALSE, TEXT錛?/span>"JeffMutex"));
      褰撹繘紼婤璋冪敤CreateMutex鏃訛紝緋葷粺浼氭煡鐪嬫槸鍚﹀瓨鍦ㄤ竴涓悕涓?"JeffMutex "("JeffMutex "鐨勫璞℃槸涓涓簰鏂ラ噺瀵硅薄)鐨勫唴鏍稿璞°傚鏋滃瓨鍦紝鎺ョ潃媯鏌ュ璞$殑綾誨瀷錛屽拰璋冪敤鑰呮槸鍚︽嫢鏈夎瀵硅薄鐨勫畬鍏ㄨ闂潈闄愩?濡傛灉絳旀鏄偗瀹氱殑錛岀郴緇熷氨浼氬湪榪涚▼B鐨勫彞鏌勮〃涓煡鎵句竴涓┖鐧借褰曢」錛屽茍灝嗗叾鍒濆鍖栦負鎸囧悜鐜版湁鐨勫唴鏍稿璞★紱鍚﹀垯錛岃繑鍥濶ULL(澶辮觸)銆?br>       涔熷彲浠ヨ皟鐢∣pen*鍑芥暟錛?br>

longshen 2009-11-26 11:06 鍙戣〃璇勮
]]>
Unicode涓庡瀛楄妭鐨勫熀鏈繍鐢?-- Windows緙栫▼http://www.shnenglu.com/longshen/archive/2009/11/21/101548.htmllongshenlongshenSat, 21 Nov 2009 03:48:00 GMThttp://www.shnenglu.com/longshen/archive/2009/11/21/101548.htmlhttp://www.shnenglu.com/longshen/comments/101548.htmlhttp://www.shnenglu.com/longshen/archive/2009/11/21/101548.html#Feedback0http://www.shnenglu.com/longshen/comments/commentRss/101548.htmlhttp://www.shnenglu.com/longshen/services/trackbacks/101548.html錛堜婦渚嬶級WinNt涓璗CHAR鍜孴EXT鐨勪嬌鐢ㄣ乼char涓嚱鏁扮殑榪愮敤銆乻afe鍑芥暟鐨勪嬌鐢?nbsp; 闃呰鍏ㄦ枃

longshen 2009-11-21 11:48 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲国产一区二区三区a毛片 | 免费黄网站欧美| 国产精品视区| 亚洲欧美在线网| 午夜精品久久久久久久白皮肤 | 欧美影院在线| 国产一区清纯| 久久免费视频网| 久久人人97超碰人人澡爱香蕉| 国产一区二区精品在线观看| 久久精品免费看| 久久免费视频网| 亚洲精华国产欧美| 99精品国产热久久91蜜凸| 国产精品久久久一区二区三区| 欧美一区二区三区免费观看| 欧美在线国产精品| 亚洲电影免费在线观看| 亚洲人屁股眼子交8| 欧美色视频日本高清在线观看| 欧美一级播放| 久久久久国产精品厨房| 99精品欧美一区二区三区 | 久久精品国产欧美亚洲人人爽| 久久精品一区二区三区四区| 亚洲激情二区| 亚洲校园激情| 亚洲激情视频网站| 亚洲午夜视频在线观看| 在线日韩日本国产亚洲| 亚洲剧情一区二区| 国产性猛交xxxx免费看久久| 亚洲国产精品久久久| 国产精品一二三四区| 亚洲国产天堂网精品网站| 国产精品视频内| 亚洲欧洲日本mm| 国产一区美女| 中日韩男男gay无套| 在线观看免费视频综合| 亚洲一区二区精品视频| 亚洲伦伦在线| 久久精品免费| 亚洲欧美日韩在线播放| 欧美承认网站| 久久综合久久美利坚合众国| 国产精品theporn88| 欧美激情亚洲| 一区二区在线观看av| 亚洲一区二区四区| 一区二区三区精品久久久| 久久久午夜电影| 久久国产精品久久久| 欧美视频日韩视频| 亚洲国产精品一区二区久| 伊人婷婷欧美激情| 欧美在线视频免费| 午夜国产精品视频| 欧美午夜片在线观看| 最近看过的日韩成人| 亚洲国产精品悠悠久久琪琪| 亚洲一区久久| 午夜视频精品| 国产精品a级| 一本色道久久综合亚洲二区三区 | 欧美日韩一区二区免费视频| 欧美激情va永久在线播放| 一区二区三区自拍| 久久久久国产精品一区三寸 | 亚洲国产精品v| 久久久久久亚洲精品中文字幕 | 亚洲人线精品午夜| 久久男人资源视频| 欧美成人自拍| 91久久精品美女| 免费视频最近日韩| 欧美国产精品专区| 日韩视频免费观看| 欧美日韩亚洲在线| 99精品国产热久久91蜜凸| 亚洲天堂男人| 国产乱子伦一区二区三区国色天香| 亚洲视频日本| 欧美在线观看一区二区三区| 国产无一区二区| 久久国产精品网站| 欧美电影资源| 一道本一区二区| 国产精品久久久久久影院8一贰佰| 亚洲网站视频福利| 久久久久看片| 亚洲欧洲一区| 国产精品国产三级国产普通话99| 亚洲制服欧美中文字幕中文字幕| 欧美资源在线观看| 激情久久综合| 欧美日韩1234| 亚洲欧美国产va在线影院| 久久精品一区四区| 日韩亚洲欧美一区| 国产精品视频一区二区三区| 欧美一区二区免费观在线| 久久久久亚洲综合| 夜夜嗨av一区二区三区| 国产日韩欧美中文在线播放| 久久综合狠狠综合久久综合88| 亚洲精品四区| 久久免费午夜影院| 夜夜夜久久久| 精品91在线| 欧美日韩一区在线| 久久精品亚洲一区二区| 日韩午夜中文字幕| 免费成人高清视频| 亚洲欧美日韩另类精品一区二区三区| 黄色工厂这里只有精品| 欧美日韩一区二区在线视频| 欧美在线影院| 亚洲无线视频| 亚洲激情不卡| 裸体一区二区三区| 欧美一区二区三区视频在线| 亚洲精品影院| 一区二区三区自拍| 国产麻豆一精品一av一免费| 欧美精品久久天天躁| 久久亚洲高清| 久久爱91午夜羞羞| 亚洲综合色婷婷| 99re成人精品视频| 亚洲国产成人精品视频| 久久乐国产精品| 欧美一区二区三区日韩视频| 一本色道久久综合亚洲精品小说 | 国产日韩精品一区二区| 欧美精品自拍| 欧美成人一区二区三区片免费| 欧美一区二区成人| 亚洲你懂的在线视频| 亚洲精品中文字幕有码专区| 亚洲第一区中文99精品| 久久综合99re88久久爱| 性欧美超级视频| 亚洲欧美日韩一区二区在线 | 国产一区二区在线观看免费播放| 国产精品xxx在线观看www| 欧美激情一区二区三区在线视频| 久久频这里精品99香蕉| 久久久久久91香蕉国产| 欧美在线一区二区三区| 欧美伊人久久| 久久本道综合色狠狠五月| 午夜久久久久久久久久一区二区| 亚洲午夜激情网站| 亚洲网站在线播放| 一区二区三区欧美日韩| 亚洲午夜久久久久久尤物 | 久久av红桃一区二区小说| 午夜在线精品偷拍| 午夜精品国产| 久久er99精品| 久久夜色撩人精品| 欧美第一黄色网| 亚洲激情六月丁香| 一区二区日韩免费看| 中国成人在线视频| 欧美在线观看视频一区二区三区| 久久精品国产欧美激情| 久久综合亚州| 欧美日韩第一页| 国产精品日韩二区| 国产一区二区精品在线观看| 在线电影一区| 在线视频日韩| 欧美亚洲网站| 欧美r片在线| 夜夜嗨av一区二区三区四区| 亚洲欧美日韩精品久久亚洲区 | 亚洲国产日韩综合一区| 一本一本久久a久久精品综合麻豆| 亚洲一区二区三区久久| 久久国内精品视频| 欧美精品国产| 国产午夜精品视频| 亚洲免费精彩视频| 欧美中文在线字幕| 亚洲精品国产品国语在线app| 中文日韩欧美| 免费一级欧美在线大片| 国产精品私房写真福利视频| 亚洲黄色免费电影| 性欧美超级视频| 欧美激情中文字幕在线| 亚洲欧美综合精品久久成人| 久热国产精品| 国产日本欧洲亚洲| 一区二区三区高清不卡| 麻豆精品一区二区综合av| 在线综合视频| 欧美精品97|