当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: //=============================
 

 

    摘要:以下内容为程序代码: function confirmer(temptext,tempint){if (confirm("提示:确定要删除用户:["+temptext+"]?")){window.location.href=´lt_del.asp?id=´+tempint;}} 然后要在原先“删除”的链接里加上“onclick=´confirmer()´”,如下: 以下......
 ·j2ee还是.net,这是一个问题    »显示摘要«
    摘要: 用户对web服务平台各对立阵营的争夺还没有感觉,但软件开发商已经在为跟随哪一个平台而感到困惑了。微软公司的.net和sun公司的j2ee,正打得不可开交。从历史沿革上看,.net和j2 ee的战争,实际上是windows平台和unix平台斗争的延续。因为.net的所有相关应用,都要以windows平台为依托;而j2ee的所有应用,也毫无疑问地建立在unix基础上。对于软件开发商的cto或用户的cio来说,在j2ee与.net之间进行抉择,是一个痛苦的问题......


一个碎片整理程序的实现

申明: 代码是网上收集的,原则上只供学习使用

// 【相关文章:WebWork2与Struts比较

//==================================================================== 【扩展阅读:企业开发的发展趋势

// 【扩展信息:WebWork2教程(中文版)(1)

// defrag.h

// copyright (c) 1997 mark russinovich

//

// header file for defragmentation demonstration program. this file

// includes definitions for defragmentation file system control

// commands, as well as the undocumented ntfscontrol call.

//

//====================================================================

 

//--------------------------------------------------------------------

//                     d e f i n e s

//--------------------------------------------------------------------

 

 

//

// file system control commands related to defragging

//

#define fsctl_read_mft_record                0x90068

#define fsctl_get_volume_bitmap            0x9006f

#define fsctl_get_retrieval_pointers    0x90073

#define fsctl_move_file                            0x90074

 

//

// return code type

//

typedef uint ntstatus;

 

//

// error codes returned by ntfscontrolfile (see ntstatus.h)

//

#define status_success                          ((ntstatus)0x00000000l)

#define status_buffer_overflow           ((ntstatus)0x80000005l)

#define status_invalid_parameter         ((ntstatus)0xc000000dl)

#define status_buffer_too_small          ((ntstatus)0xc0000023l)

#define status_already_committed         ((ntstatus)0xc0000021l)

#define status_invalid_device_request    ((ntstatus)0xc0000010l)

 

 

//--------------------------------------------------------------------

//       f s c t l  s p e c i f i c   t y p e d e f s 

//--------------------------------------------------------------------

 

 

//

// this is the definition for a vcn/lcn (virtual cluster/logical cluster)

// mapping pair that is returned in the buffer passed to

// fsctl_get_retrieval_pointers

//

typedef struct {

      ulonglong               vcn;

      ulonglong               lcn;

} mapping_pair, *pmapping_pair;

 

//

// this is the definition for the buffer that fsctl_get_retrieval_pointers

// returns. it consists of a header followed by mapping pairs

//

typedef struct {

      ulong                  numberofpairs;

      ulonglong               startvcn;

      mapping_pair      pair[1];

} get_retrieval_descriptor, *pget_retrieval_descriptor;

 

 

//

// this is the definition of the buffer that fsctl_get_volume_bitmap

// returns. it consists of a header followed by the actual bitmap data

//

typedef struct {

      ulonglong               startlcn;

      ulonglong               clusterstoendofvol;

      byte                     map[1];

} bitmap_descriptor, *pbitmap_descriptor;

 

 

//

// this is the definition for the data structure that is passed in to

// fsctl_move_file

//

typedef struct {

     handle            filehandle;

     ulong             reserved;  

     large_integer     startvcn;

     large_integer     targetlcn;

     ulong             numvcns;

     ulong             reserved1;    

} movefile_descriptor, *pmovefile_descriptor;

 

 

//--------------------------------------------------------------------

//     n t f s c o n t r o l f i l e   d e f i n i t i o n s

//--------------------------------------------------------------------

 

//

// prototype for ntfscontrolfile and data structures

// used in its definition

//

 

//

// io status block (see ntddk.h)

//

typedef struct _io_status_block {

    ntstatus status;

    ulong information;

} io_status_block, *pio_status_block;

 

 

//

// apc routine (see ntddk.h)

//

typedef void (*pio_apc_routine) (

                      pvoid apccontext,

                      pio_status_block iostatusblock,

                      ulong reserved

                 );

 

 

//

// the undocumented ntfscontrolfile

//

// this function is used to send file system control (fsctl)

// commands into file system drivers. its definition is

// in ntdll.dll (ntdll.lib), a file shipped with the ntddk.

//

ntstatus (__stdcall *ntfscontrolfile)(

                            handle filehandle,

                            handle event,                       // optional

                            pio_apc_routine apcroutine,          // optional

                            pvoid apccontext,                 // optional

                            pio_status_block iostatusblock,   

                            ulong fscontrolcode,

                            pvoid inputbuffer,                 // optional


...   下一页
 ·必须认清楚blog的两个方向?    »显示摘要«
    摘要:题目似是而非,也不想改了。 csdn的blog开张已假有时日,许多blog元老,前辈,长者,智者也都探讨过blog本质论,看得我也激奋不已,于是乎动笔也写一小文向大家一吐为快。这里主要是针对“聚合站点”讲一下我自已的一些想法。 两个方向: 1. 聚合排名? 动不动就是topx,只要有惊奇的题目,便可吸引民众的眼球,尽情吸引我等善良之人推门而入,进去后才发现屋中空空如也,诸如此类文章在聚合站点blog.csdn.net上迅速走红 - 可谓是点击成名!每每看去......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE