hPipe = CreateFile(
lpszPipename, // pipe name
GENERIC_READ | // read and write access
GENERIC_WRITE,
0, // no sharing
NULL, // default security attributes
OPEN_EXISTING, // opens existing pipe
0, // default attributes
NULL); // no template file
如何將上述轉換爲ATL
的方式,以便在COM組件被銷燬時管道自動關閉?ATL在C++的windows中打開命名管道的方式是什麼?
什麼時候COM組件被銷燬? – 2010-09-09 15:00:02