/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v1.6.0
src/ScriptEngine.NativeApi/DetectUnionOffset.cpp
32 строки
2 KB
lintest
Поддержка внешних компонент Native API (#1041)
20 ноя 2020, 14:49
Не верифицирован
20 ноя 2020, 14:49
84e1804
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ #include <windows.h> #include "include/types.h" #include "include/ComponentBase.h" #include "include/AddInDefBase.h" #include "include/IMemoryManager.h" #include <stdio.h> #include <stddef.h> int main() { tVariant variant; printf("offsetof(struct tVariant, lVal) is %d\n", (int)offsetof(struct tVariant, lVal)); printf("offsetof(struct tVariant, bVal) is %d\n", (int)offsetof(struct tVariant, bVal)); printf("offsetof(struct tVariant, dblVal) is %d\n", (int)offsetof(struct tVariant, dblVal)); printf("offsetof(struct tVariant, date) is %d\n", (int)offsetof(struct tVariant, date)); printf("offsetof(struct tVariant, tmVal) is %d\n", (int)offsetof(struct tVariant, tmVal)); printf("offsetof(struct tVariant, pstrVal) is %d\n", (int)offsetof(struct tVariant, pstrVal)); printf("offsetof(struct tVariant, strLen) is %d\n", (int)offsetof(struct tVariant, strLen)); printf("offsetof(struct tVariant, pwstrVal) is %d\n", (int)offsetof(struct tVariant, pwstrVal)); printf("offsetof(struct tVariant, wstrLen) is %d\n", (int)offsetof(struct tVariant, wstrLen)); printf("offsetof(struct tVariant, vt) is %d\n", (int)offsetof(struct tVariant, vt)); printf("sizeof(struct tVariant) is %d\n", (int)sizeof(tVariant)); return 0; }