본문 바로가기

13 Security Lab

검색하기
13 Security Lab
프로필사진 Maj0r Tom

  • 분류 전체보기 (137)
    • Articles (12)
    • Computer Science (79)
      • Study (2)
      • Projects (9)
      • Programming (28)
      • Windows Externals (31)
      • linux - wiki (2)
      • Tools (7)
    • Computer Security (43)
      • Security Articles (17)
      • Projects (0)
      • Analysis (22)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • FORENSIC-PROOF
  • MalwareTech
  • gentilkiwi
  • Ero Carrera's blog
  • Root Me
«   2025/09   »
일 월 화 수 목 금 토
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 29 30
Tags
  • Rat
  • malware
  • svn update
  • open office xml
  • MySQL
  • 포인터 매핑
  • Ransomware
  • data distribution
  • Injection
  • Python
  • idb2pat
  • hex-rays
  • NumPy Unicode Error
  • ida
  • error
  • TensorFlow
  • h5py.File
  • why error
  • debugging
  • error fix
  • javascript
  • commandline
  • idapython
  • Analysis
  • ida pro
  • ecma
  • mock.patch
  • idapro
  • pytest
  • x64
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록EOF (1)

13 Security Lab

[API] SetEndOfFile(), Set "EOF" where Current FilePointer indicates

http://msdn.microsoft.com/en-us/library/windows/desktop/aa365531(v=vs.85).aspx Do refer MSDN, It's enough to understand. "It works only when you got handle using CreateFile()" typedef uint64_t fsize_t; int file_resize(const char* path, fsize_t newsize) { HANDLE hFile = CreateFile(path, GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, 0, NULL); if (hFile == INVALID_HANDLE_VALUE) return -1; LARGE_INTEGER liDi..

Computer Science/Programming 2014. 4. 15. 23:40
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바