非常感谢!
解决方案 »
- 关于FTP客户端程序,发送PASV命令后的LIST -al命令如何进行..?
- 关于DirectShow SDK总是缺少文件
- visual c++ 6.0我想生成一个可执行程序(release)而不是调试(debug)一个,怎么生成出来的程序没有出现在release文件夹里面,甚至根本就没
- 100分求windows核心编程一书源代码。在线等,马上揭帖
- 请问在VC++ 6.0 DEVELOP STUDIO中如何在一个C++(MFC EXE)项目文件中的类中添加一个ACTIVEX控件,如MSCOMM32,而不是在资源编辑器中。
- 不知道有没有人知道???
- 请问如何加入lib文件?
- 关于PDF文件格式的问题
- 在自己的程序里编程实现点击一个已打开的应用程序的按钮可以实现吗?如何实现?求指教!!!我用的不是MFC是WIN32
- WinHTTP设置HTTP请求超时时间(请大神回答)
- 一个简单的ctreectrl的问题
- 散分,多谢各位帮助提高我的VC水平
This function creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory. A remote application interface (RAPI) version of this function exists, and it is named CeCreateDirectory. BOOL CreateDirectory(
LPCTSTR lpPathName,
LPSECURITY_ATTRIBUTES lpSecurityAttributes );
Parameters
lpPathName
[in] Long pointer to a null-terminated string that specifies the path of the directory to be created.
There is a default string size limit for paths of MAX_PATH characters. This limit is related to how the CreateDirectory function parses paths. lpSecurityAttributes
[in] Ignored; set to NULL.
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError. Res
Some file systems, such as NTFS, support compression or encryption for individual files and directories. On volumes formatted for such a file system, a new directory inherits the compression and encryption attributes of its parent directory. 给你贴出来算了,你自己看一下吧。
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
能不能建文件夹我不知道。
::{208D2C60-3AEA-1069-A2D7-08002B30309D}我的文档
::{450D8FBA-AD25-11D0-98A8-0800361B1103}这些可以输在资源管理器的地址栏里。还有一个函数可以做到。
SHGetSpecialFolderPathCSIDL_DESKTOPDIRECTORY 桌面
还有很多,可以到MSDN里查“CSIDL Values”if(FAILED(SHGetSpecialFolderLocation(NULL,CSIDL_DESKTOPDIRECTORY,&DesktopPidl))) return;
if(!SHGetPathFromIDList(DesktopPidl, DesktopDir))//获得桌面路径
{
ShellMalloc->Free(DesktopPidl);
ShellMalloc->Release();
return;
}
ShellMalloc->Free(DesktopPidl);
ShellMalloc->Release();
subst x: c:\windows
然后在c:\windows\winstart.bat加上这句,每次开机就有了,隐蔽。
vb: mkdir()
Q178665 HOWTO: RegView.exe Contains Shell Namespace Extension Example