Converting a simple folder to shared folder in Qt C++ -


i made program in qt creates folder in specific diretory.

the code is:

qdir directory;      directory.mkdir("sample"); 

my problem how convert folder shared folder using qt codes?

or there way create shared folder using qt??

you can share directory using netshareadd. far know, qt doesn't provide same basic capability netshareadd.

edit: here's quite bit of demo code:

#include <windows.h> #include <lm.h>  int main() {       share_info_2 info = {0};      info.shi2_netname = l"test_share";     info.shi2_type = stype_disktree;     info.shi2_permissions = access_all;     info.shi2_max_uses = -1;     info.shi2_path = l"c:\\a\\b\\c";      netshareadd(null, 2, (byte *)&info, null);      return 0; } 

note netshareadd (like of net* functions) available in "wide" version uses wide character strings.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -