#include #include int main() { // Open a handle to the file HANDLE hFile = CreateFile( L"C:\\NewFile.txt", // Filename GENERIC_WRITE, // Desired access FILE_SHARE_READ, // Share mode NULL, // Security attributes CREATE_NEW, // Creates a new file, only if it doesn't already exist FILE_ATTRIBUTE_NORMAL, // Flags and attributes NULL); // Template file handle if (hFile == INVALID_HANDLE_VALUE) { // ..
#include DWORD WINAPI DoStuff(LPVOID lpParameter) { // The new thread will start here return 0; } int main() { // Create a new thread which will start at the DoStuff function HANDLE hThread = CreateThread( NULL, // Thread attributes 0, // Stack size (0 = use default) DoStuff, // Thread start address NULL, // Parameter to pass to the thread 0, // Creation flags NULL); // Thread id if (hThread == ..
#include int main() { STARTUPINFOW si = { 0 }; si.cb = sizeof(si); PROCESS_INFORMATION pi = { 0 }; // Create the child process BOOL success = CreateProcessW( L"C:\\Windows\\system32\\notepad.exe", // Path to executable NULL, // Command line arguments NULL, // Process attributes NULL, // Thread attributes FALSE, // Inherit handles 0, // Creation flags NULL, // Environment NULL, // Working directo..
- Total
- Today
- Yesterday
- WinAPI
- SWiFT
- HTML
- JSX
- 투자
- reactjs
- Java
- 주식
- Linux
- 파이썬
- 트렌드
- JavaScript
- Windows
- CSS
- Backend
- ChatGPT
- frida
- Frontend
- 예제
- Spring
- 커널드라이버
- 유튜브
- go
- 스핀락
- 생각
- react
- golang
- Python
- 부동산
- ios
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
| 31 |