일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Button
- keras
- mariadb
- synology
- mean
- index
- GT-S80
- Lotto
- Series
- SciPy
- pycharm
- CNN
- LSTM
- pandas
- dataframe
- DFS
- Splunk
- Numpy
- 알고리즘
- RNN
- E-P1
- pip
- imread
- install
- 삼성소프트웨어멤버십
- javascript
- SPL
- Python
- ipad
- GitHub
Archives
- Today
- Total
잠토의 잠망경
MMF 기본 본문
#undef UNICODE #include#include int main(void) { //파일의 핸들을 얻어온다. HANDLE hFile = CreateFileA("c:\\love.txt",GENERIC_READ, 0,NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,NULL); if(NULL==hFile) printf("error\n"); //파일의 핸들을 기반으로 memorymapping을 한다. HANDLE hFileMaped=CreateFileMapping(hFile,NULL,PAGE_READONLY,0,0,NULL); if(NULL==hFileMaped) printf("error\n"); //파일 멥을 메모리에 올리자. char* pfile=(char*)MapViewOfFile(hFileMaped, FILE_MAP_READ, 0,0,0); if(NULL==pfile) printf("error\n"); printf(pfile); UnmapViewOfFile(pfile); CloseHandle(hFileMaped); CloseHandle(hFile); return 0; }
Comments