#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
- CSS
- HTML
- Linux
- frida
- Spring
- golang
- 트렌드
- 투자
- reactjs
- SWiFT
- WinAPI
- ios
- Backend
- 커널드라이버
- 유튜브
- Windows
- go
- 생각
- Frontend
- 예제
- 주식
- JSX
- 파이썬
- JavaScript
- 스핀락
- Python
- 부동산
- Java
- react
- ChatGPT
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |