|
[原创]第2题_jwh51
90分====== |
|
|
|
|
|
[原创]第3题_jwh51
100分==== |
|
[原创]E01
40分 ====== |
|
|
|
[求助]windows 的进程权限 学习资料
必须获得shutdown权限 使用下面代码: BOOL EnableShutdownPrivilege() { HANDLE hToken; BOOL fOk=FALSE; if(OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES,&hToken)) { TOKEN_PRIVILEGES tp; tp.PrivilegeCount=1; if(!LookupPrivilegeValue(NULL,SE_SHUTDOWN_NAME,&tp.Privileges[0].Luid)) OutputDebugString("Can't lookup privilege value.\n"); tp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED; if(!AdjustTokenPrivileges(hToken,FALSE,&tp,sizeof(tp),NULL,NULL)) OutputDebugString("Can't adjust privilege value.\n"); fOk=(GetLastError()==ERROR_SUCCESS); CloseHandle(hToken); } return fOk; } |
|
[求助]请教一个windows内部函数的问题(RtlTimeFieldsToTime)
BOOLEAN RtlTimeFieldsToTime ( IN PTIME_FIELDS TimeFields, OUT PLARGE_INTEGER Time ) /*++ Routine Description: This routine converts an input Time Field variable to a 64-bit NT time value. It ignores the WeekDay of the time field. Arguments: TimeFields - Supplies the time field record to use Time - Receives the NT Time corresponding to TimeFields Return Value: BOOLEAN - TRUE if the Time Fields is well formed and within the range of time expressible by LARGE_INTEGER and FALSE otherwise. --*/ { ULONG Year; ULONG Month; ULONG Day; ULONG Hour; ULONG Minute; ULONG Second; ULONG Milliseconds; ULONG ElapsedDays; ULONG ElapsedMilliseconds; // // Load the time field elements into local variables. This should // ensure that the compiler will only load the input elements // once, even if there are alias problems. It will also make // everything (except the year) zero based. We cannot zero base the // year because then we can't recognize cases where we're given a year // before 1601. // Year = TimeFields->Year; Month = TimeFields->Month - 1; Day = TimeFields->Day - 1; Hour = TimeFields->Hour; Minute = TimeFields->Minute; Second = TimeFields->Second; Milliseconds = TimeFields->Milliseconds; // // Check that the time field input variable contains // proper values. // // // Year 30827 check: Time (in 100ns units) is stored in a // 64-bit integer, rooted at 1/1/1601. // // 2^63 / (10^7 * 86400) = 10675199 days // 10675199 / 146097 = 73 400-year chunks, 10118 days // 10118 / 1461 = 6 4-year chunks, 1352 days // 1352 / 365 = 3 years, some residual days // 1600 + 73*400 + 6*4 + 3 = 30827 is last year fully // supported. // // I'm guessing it's undesirable to support part of the // year 30828. // if ((TimeFields->Month < 1) || (TimeFields->Day < 1) || (Year < 1601) || (Year > 30827) || (Month > 11) || ((CSHORT)Day >= MaxDaysInMonth(Year, Month)) || (Hour > 23) || (Minute > 59) || (Second > 59) || (Milliseconds > 999)) { return FALSE; } // // Compute the total number of elapsed days represented by the // input time field variable // ElapsedDays = ElapsedYearsToDays( Year - 1601 ); if (IsLeapYear( Year - 1600 )) { ElapsedDays += LeapYearDaysPrecedingMonth[ Month ]; } else { ElapsedDays += NormalYearDaysPrecedingMonth[ Month ]; } ElapsedDays += Day; // // Now compute the total number of milliseconds in the fractional // part of the day // ElapsedMilliseconds = (((Hour*60) + Minute)*60 + Second)*1000 + Milliseconds; // // Given the elapsed days and milliseconds we can now build // the output time variable // DaysAndFractionToTime( ElapsedDays, ElapsedMilliseconds, Time ); // // And return to our caller // return TRUE; } |
|
[原创]第5题
100分==== |
|
[原创]第3题
100分===== |
|
[讨论]E05[
80分==== |
|
[讨论]E02
100分===== |
|
[讨论]E03
100分====== |
|
[答题]4_曾定国_
100分===== |
|
第五题答案
100分====== |
|
[原创]第三题答案
100分=== |
|
[原创]借贵宝地诚聘-360安全卫士,期待你来华山论剑![实时更新,请随时关注]
请这位同学联系我,hr@360.cn,再叙~~~~ |
|
[原创]借贵宝地诚聘-360安全卫士,期待你来华山论剑![实时更新,请随时关注]
练好内功,明年欢迎来这里再修炼。 |
|
[原创]借贵宝地诚聘-360安全卫士,期待你来华山论剑![实时更新,请随时关注]
对,奇虎360是在北京办公的,地点是在大望路这边,发个链接大家看看:http://tech.163.com/06/0824/08/2P9CFHP9000920RL.html |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值