Skip to content

Commit

Permalink
Relocated version number definition into version.h file, added licens…
Browse files Browse the repository at this point in the history
…e headers
  • Loading branch information
aabmets committed Oct 19, 2024
1 parent e9084a2 commit 38ce026
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
16 changes: 13 additions & 3 deletions dpapi-cli/dpapi-cli.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
#include <windows.h>
/*
* MIT License
*
* Copyright (c) 2024, Mattias Aabmets
*
* The contents of this file are subject to the terms and conditions defined in the License.
* You may not use, modify, or distribute this file except in compliance with the License.
*
* SPDX-License-Identifier: MIT
*/

#include <windows.h>
#include <wincrypt.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cstring>
#include <filesystem>
#include "version.h"


std::string PROGRAM_VERSION = "1.0.0";

enum Scope {
CurrentUser,
LocalMachine
Expand Down
17 changes: 17 additions & 0 deletions dpapi-cli/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* MIT License
*
* Copyright (c) 2024, Mattias Aabmets
*
* The contents of this file are subject to the terms and conditions defined in the License.
* You may not use, modify, or distribute this file except in compliance with the License.
*
* SPDX-License-Identifier: MIT
*/

#ifndef VERSION_H
#define VERSION_H

#define PROGRAM_VERSION "1.0.1"

#endif // VERSION_H

0 comments on commit 38ce026

Please # to comment.