For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > May 2005 > Storage Code









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Storage Code
Sneha

2005-05-28, 8:57 am

Hi

SHGetSpecialFolderPath(hwnd,szPath,CSIDL
_WINDOWS,NULL);
wcscat(pszFileName, L"\\setting.txt");
hFile =
CreateFile(pszFileName,GENERIC_WRITE,FIL
E_SHARE_WRITE,NULL,OPEN_ALWAYS,FILE_
FLAG_WRITE_THROUGH,NULL);
if(WriteFile(hFile,b,1,&dwWritten,NULL))
bSuccess = TRUE;
GlobalFree(index);
CloseHandle(hFile);


thnx in advance

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com