| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#include "windows.h" |
| 5 |
|
| 6 |
#include "azure_c_shared_utility/xlogging.h" |
| 7 |
|
| 8 |
int main(void) |
| 9 |
{ |
| 10 |
|
| 11 |
LogError("Hello World from LogError, here's a value: %d", 42); |
| 12 |
|
| 13 |
LogInfo("Hello World from LogInfo, here's a value: %d", 0x42); |
| 14 |
|
| 15 |
SetLastError(ERROR_ACCESS_DENIED); |
| 16 |
|
| 17 |
LogLastError("Hello World from LogLastError, some access was denied! here's a value: 0x%x", '3'); |
| 18 |
|
| 19 |
SetLastError(ERROR_SUCCESS); |
| 20 |
|
| 21 |
LogLastError("Hello World from LogLastError, everything is fine now! here's a value: 0x%x", '3'); |
| 22 |
|
| 23 |
return 0; |
| 24 |
} |