局域网中文件夹的共享 Windows NT/2000/XP[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 smandhgx 的 blog

  lpwstr    shi502_path;        //pwidechar;

  lpwstr    shi502_passwd;     // pwidechar;

  dword     shi502_reserved;  // dword ;

  // psecurity_descriptor ;一般设为 nil

  psecurity_descriptor  shi502_security_descriptor;

} share_info_502, *pshare_info_502, *lpshare_info_502;

 

对应 delphi 纪录声明如下:一定要注意参数类型的正确对应,如果你把pwidechar 声明为 pchar 函数将无法实现此功能,我已经尝试了,你可以再试试,至于原因是什么,我也不太清楚。

type

  tshare_info_502 = record

    shi502_netname: pwidechar;

    shi502_type: dword;

    shi502_remark: pwidechar;

    shi502_permissions: dword;

    shi502_max_uses: dword;

    shi502_current_uses: dword;

本文关键:delphi api 共享
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top