Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // smoketime.cpp : Defines the exported functions for the DLL.
- // credits to BIS, kk and all others
- #include "pch.h"
- #include "framework.h"
- #include "smoketime.h"
- #include <chrono>
- #include <ctime>
- #define _CRT_SECURE_NO_WARNINGS
- #define fn_smoketime extern "C" __declspec (dllexport)
- fn_smoketime void __stdcall RVExtension(char *output, int outputSize, const char *function);
- void __stdcall RVExtension(char *output, int outputSize, const char *function)
- {
- std::time_t ct = std::time(0);
- char* cc = ctime(&ct);
- strncpy_s(output, outputSize, cc, _TRUNCATE);
- }
Advertisement
Add Comment
Please, Sign In to add comment